Multiple desktop shortcuts with ClickOnce
I’m looking for a way to deploy a WPF application using ClickOnce with multiple icons being created on desktop. I found a way for having only one so far. The idea is to have a shortcut for the production and test mode of the application, so the single executable would be referenced by two shortcuts with different parameters. So after the installation the desktop should contain two shortcut’s with next arguments for underlying exe file:
- AppName prod (with argument \prod).
- AppName test (with argument \test).
Is there a way to achieve this (having setup to create 2 shortcuts with different arguments)?
Maybe some trick with application manifest? I also saw a solution somewhere to create shortcuts manually during the first application startup, but it would be great to give users an opportunity to launch the instance they want just after the installation finished.
Another option is to go for a fully custom installer like described here https://docs.microsoft.com/en-gb/visualstudio/deployment/walkthrough-creating-a-custom-installer-for-a-clickonce-application?view=vs-2015&redirectedfrom=MSDN but that looks a bit excessive IMO for such a simple requirement.
If ClickOnce is not capable of this, any suggestions for a free alternate installer with auto-update functionality?
Thank you in advance.