cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to pass an argument to your application inside a MSIX.

How to pass an argument to your application inside a MSIX.

Summary:

You may want to pass variables to the .exe application you are launching from the installed .msix. This can be done with the Package Support Framework. Some of those features are supported out of the box with Installshield. You will find some information on how to do this from Installshield below:

 

Description:

In the MSIX Project, you'll go under Package Payload->Applications->Package Support Framework, and add a Custom Fixup. Point the JSON Path to your custom config.json.

 An example of how the config.json would look is like:

{
"applications": [
{
"id": "ID_FROM_APPLICATION_ENTRYPOINT",
"executable": "VFS/ProgramFilesX86/My Company Name/My Product Name/YOURAPP.exe",
"arguments": "ARGUMENTPASSED",
"workingDirectory": ""
}
]

}

 

Note for example: 

ID_FROM_APPLICATION_ENTRYPOINT should match Key Name. Which should match the Id in the AppxManifest.xml contained in the .MSIX.

 

Please NOTE: Evaluation versions of Installshield do not enable the use of Custom Fixups until activated.

 

Additional Information:

Package Support Framework information may be found here:

https://docs.microsoft.com/en-us/windows/msix/psf/package-support-framework-overview

Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jul 28, 2020 01:09 PM
Updated by:
Contributors