Forum Discussion
MSIX Command Line Argument
I have been thinking about your scenario further, and have a suggestion for your consideration.
If I understand the problem correctly, in the end, your request is one about modifying the behavior of the application based on information that is only available at the time of installation. Before MSIX, this was accomplished by building a specialized shortcut at the time of the installation that added command line parameters with the required information obtained from the query string.
We have been discussing ways to get the equivalent using the Psf, but this might not be the best way. While it is "nice" to think about keeping everything inside the package, you should consider having the package be generic and having the installation experience configure an external reference with the needed data.
For this to work, the package shortcut would go to a launcher program that would read this data and start the app with appropriate command line arguments. This could be an special exe someone writes, or you could use PsfLauncher to start a cmd file with that logic.
As to the data, that could be placed in a native file or registry. Your installation experience would be one that creates the data file/reg from the query string and then just runs AppInstaller to install the app. This might not be a pure "MSIX" approach, but it might get the job done.