Forum Discussion

mohamed96ashraf's avatar
mohamed96ashraf
Copper Contributor
Aug 28, 2020
Solved

App is not lunching after installing from MSIX package

App is not lunching after installingit from MSIX package, but if I moved it out side windowsapp folder it works well. any idea how to fix it? 

  • TIMOTHY_MANGAN's avatar
    TIMOTHY_MANGAN
    Nov 16, 2020

    mohamed96ashraf Possibly issue is working directory.  The original MSI/EXE based installer creates a shortcut which is interpreted by MSIX to add it to the start menu.  When it does this, any setting for the working directory is ignored, and even if it were not set explicitly in the lnk file, the default behavior was to use the folder of the target exe as the working directory of the new process.  If you manually launch you'd also get the exe folder to be the working directory.  But under MSIX, the working directory is set to the System32 folder.

     

    PsfLauncher may be used to solve this.  With PsfLauncher as the target of the shortcut, it doens't care about the working directory and will use a setting in the config.json file to set the working directory of the ultimate target process.  PsfTooling may be used when repackaging to add PsfLauncher and solve this.

6 Replies

  • Most likely your app crashes silently. i.e. it fails to read some config file/registry or to write some user data.

     

    You can use the Package Support Framework to trace the crash and try to fix it. Here is an MS Ignite where I made a demo on this topic: https://youtu.be/f3Z7j1XEPgs?t=725

     

    You can use the Advanced Installer Express edition., it's free and gives you the PSF integration shown in the video above.

     

    p.s. I work on the team building Advanced Installer.

    • mohamed96ashraf's avatar
      mohamed96ashraf
      Copper Contributor

      Bogdan Mitrache I followed the Task manger and I can see the app runs for less than a minute then stops this happen If I started it from the start menu, but If I started it from the windowsapp folder it works well, any Idea? 

      thanks 

      • Bogdan Mitrache's avatar
        Bogdan Mitrache
        Iron Contributor

        Hi mohamed96ashraf 

         

        As I said above, you need to trace the app and see what is failing upon launch. The Task manager will not provide that info.

         

        If you don't want to use the free Express edition from Advanced Installer you can try the leveraging the PsfTooling  built by TIMOTHY_MANGAN, along with the MSIX Packaging Tool.

Resources