MSIX application with required command line arguments - no stub

Brass Contributor

Just thought I'd share a method for specifying command arguments to your applications when using the msix packaging tool.

 

create package as per normal.

open up the package in the package editor after

open the "Manifest File"

find the <application> xml tag that corresponds with the executable you need to add arguments.

within the same <application> tag add in uap10:Parameters="your parameters"

ex.

<Application id="mycoolapp" Executable="VFS\ProgramFiles\MyCoolApp\App.exe" uap10:Parameters="-nogui" EntryPoint="Windows.FullTrustApplication">

 

keep in mind only the bold part is relevant to adding command parameters.  Also if you need quotes in your parameter, encase the whole thing with single quotes and it'll convert it for you to a friendly result ie: uap10:Parameters='"coolbeans" -stuff'

 

After saving/closing it will validate your xml for you which is a nice bonus. 

 

1 Reply

@mattplan8 Thanks for sharing this helpful tip!