Forum Discussion
MSIX Command Line Argument
For this scenario I am thinking you could do this in a different way.
First, when your customers host the MSIX file on their servers, their should make it available for download using an .appinstaller file. It's a simple XML which they can write.
Now, at runtime, your app can detect the link used by the appinstaller. You can use a simple PowerShell script to get that link and save it into the registry. Then using the PSF launcher you can read that link from the registry (every time your app launches) and launch your app with a different command line (or whatever the customization was made by your clients), depending on the link it reads.
Is this what you would like? (I can provide a sample script and demo project in Advanced Installer if you want)
That sounds promising. Yes I would like a sample.
MSIX containers change how programs interact with the registry. This still works in a container?
How can I contact you offline?
- Bogdan MitracheApr 10, 2020Steel Contributor
You can reach me at bogdan at advancedinstaller dot com or you can reach my colleagues from the support team at support at advancedinstaller dot com. Send them a link to this thread so they can catch up.
I'll be out of the office next week, but I will get back to you with the sample ASAP.
- Bogdan MitracheApr 28, 2020Steel Contributor
For anyone else interested in this scenario, here is a download link for a sample project.
Basically, the Advanced Installer launcher runs a script that gets the URL of the MSIX appinstaller (when a user installs it from the website where your customers will host it) and saves it into a registry, before your app launches.Now your app can read that URL and customize its behavior based on the link it reads from the registry.- Ravitejaj8787Jun 29, 2020Copper Contributor
Hi Bogdan Mitrache,
Need your help to understand it is possible to edit MSIX package from command line using advanceinstaller.com?
Can you please share any document which help us to edit MSIX package from command line.
Examplea
1) Add/Delete a file from msix package.
2) ADD/Delete Registry Entries.
3) To change any property of the package.
Thanks
Raviteja