I need to create two shortcuts to the same file. The second shortcut will start the application as an administrator while the first one will not.
I created two different shortcuts in the "Application shortcut folder" with different names, linking to the same file but with different options but when I run the installer, I only end up with a single shortcut.
I'm not sure why you encountered this behavior. I've tested your scenario and it worked as expected.
The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.
Thanks for your answer. unfortunately, it seems that my app is still not installing properly. I have checked your app and it seems that, while it does work when the shortcuts are placed in an arbitrary folder, as in your demo, it works. But if I use the "Application Shortcut folder" (as it should be), then only one shortcut is actually created. I've verified it with your sample and reproduced the issue.
While I'm on the topic of shortcuts, new shortcuts to executable files do not automatically pick the first icon in the exe for the shortcut but uses a blank icon. It would save a bunch of time to correct that.
edit: Just to confirm: I have copied both shortcuts from the "Application shortcuts folder" to the desktop and the installer created two shortcuts as expected.
If it makes any difference, my test machine are Windows 8.1 and Windows Server 2012R2
FOLLOW US
Get the latest news in Application Packaging