Forum Discussion
MSIX Command Line Argument
BrettBurgeson Getting the arguments is fairly straightforward using the PSF. You'll add a copy of the PsfLauncherXXX.exe to the package and configure the config.json for that application to launch your app. I haven't run this test case in a while, but the launcher should be appending any arguments listed for the app arguments in the json, plus any that were passed into the launcher. So leave the arguments out of the json file. Of course, if you don't need the PSF for other purposes, you can skip the Launcher and just target your end application as per below.
The trickier part is getting the things you need to run (PsfLauncher or target). It's bad to hard code the package path, so a powershell script to query for install packages and getting the install folder from there and appending the Psflauncher or target name for the command line and adding your query string there will do it.
TIMOTHY_MANGANI'm not having any success getting arguments passed to the installed application.
I added PsfLauncher64.exe and PsfRuntime64.dll to my InstallerPackageProject and I modified the config.json to execute my application being installed and left out the arguments. I also modified Package.appxmanifest to execute PsfLauncher64.exe.
The appx package installs my application and launches it but does not pass any arguments to the installed application when it is launched by the installer. I have run the appx package two ways. First with a shortcut containing command line arguments. The second way is from a web page link that has a query string containing my arguments using the appinstaller.
I'm really only interested in running the install from a web page using the appinstaller. I want to pass arguments as a query string. I am not interested in the install folder location.
You probably need more information to understand what I may be doing wrong.
Let me know what else I can tell you.
Thank you for your help.
Brett