Codesys Installer not running after upgrading to v18

matthew
2022-08-17
2022-09-12
  • matthew - 2022-08-17

    I uninstalled CodeSys v17 to install v18. I installed v18 and the installer tool no longer runs. I then uninstalled v18 and the installer tool. Then did a clean install of v18 and the installer tool still does not work. So uninstalled them and went back to v17 and the installer no longer works with v17.

    I then setup a fresh Win10 VM and installed v18 and the installer works fine. I need CodeSys installer working again on my main machine with all my other software I use for development.

    What else can I try to get the installer running? When I open it from start menu, I get the notification whether to allow this device to make changes and I click yes and then nothing happens or opens.

     
  • matthew - 2022-08-17

    I have also downloaded the installer from here https://store.codesys.com/de/codesys-installer.html and tried to install separately and I still have the same issue.

    Is there anywhere to view the Logs etc to find out why it's not starting?

     
  • matthew - 2022-08-17

    After some digging through the system logs and errors I came across these errors relating to the CodeSys Installer

    Faulting application name: APInstaller.GUI.exe, version: 1.4.0.0, time stamp: 0x62aa687e
    Faulting module name: KERNELBASE.dll, version: 10.0.19041.1889, time stamp: 0xe9ede6d6
    Exception code: 0xe0434352
    Fault offset: 0x0000000000034fd9
    Faulting process id: 0x17a0
    Faulting application start time: 0x01d8b291afc08778
    Faulting application path: C:\Program Files (x86)\CODESYS\APInstaller\APInstaller.GUI.exe
    Faulting module path: C:\Windows\System32\KERNELBASE.dll
    Report Id: 2e32c82f-6fb1-4c63-815d-f46db68a6014
    Faulting package full name: 
    Faulting package-relative application ID: 
    

    Here is the second error in the log

    Application: APInstaller.GUI.exe
    CoreCLR Version: 4.700.22.16002
    .NET Core Version: 3.1.24
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.BadImageFormatException: Could not load file or assembly 'System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Format of the executable (.exe) or library (.dll) is invalid.
    File name: 'System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    
     
  • eschwellinger

    eschwellinger - 2022-08-18

    I would uninstall .Net Core Runtimes on your system
    then download:
    https://dotnet.microsoft.com/en-us/download/dotnet/3.1
    and install it.

     
    • matthew - 2022-08-18

      Thanks, that did the trick. Any reason why this happened in the first place? bad uninstall/removed incorrect file?

      What is the best method to upgrade in the future without running into these issues?

       
    • matthew - 2022-08-18

      When I try to update the packages I now get

      Package Download Error: Invalid content download archive.
      

      Where is the download archive located?

       
      • matthew - 2022-08-18

        This is the log I found for the issue.

        Category: CODESYS.Installer.WPF.ViewModels.InstallationProgressViewModel
        EventId: 0
        
        Package Download Error
        
        Exception: 
        Deployment.Repository.RepositoryContentException: Invalid content download archive.
         ---> System.IO.InvalidDataException: The archive entry was compressed using an unsupported compression method.
           at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
           at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
           at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
           at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
           at System.IO.Compression.DeflateStream.CopyToStream.Write(Byte[] buffer, Int32 offset, Int32 count)
           at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
           at System.IO.Compression.DeflateStream.CopyToStream.CopyFromSourceToDestination()
           at System.IO.Compression.DeflateStream.CopyTo(Stream destination, Int32 bufferSize)
           at System.IO.Stream.CopyTo(Stream destination)
           at Deployment.Repository.Package.Internal.PackageContentHandler.OpenPackage(RepositoryContentDownload download)
           --- End of inner exception stack trace ---
           at Deployment.Repository.Package.Internal.PackageContentHandler.OpenPackage(RepositoryContentDownload download)
           at CODESYS.Installer.Services.PackageRepositoryProvider.GetPackage(IPackageRepository repository, ArtifactId`2 packageId, IRepositoryProgress progress, CancellationToken cancellationToken)
           at CODESYS.Installer.WPF.Services.InstallationTaskProvider.DownloadPackageInternal(ObservableTask downloadTask, String channel, ArtifactId`2 packageId, SemaphoreSlim downloadSemaphore)
        
         
  • matthew - 2022-08-23

    I still have the download error and can't solve this. Any help on what to try?

     
  • matthew - 2022-09-12

    Am I best to report this as a bug or issue? I would like to get it going for an upcoming project. I have tried to use bulk crap uninstaller and remove all reg entries etc but still no luck.

     

Log in to post a comment.