Two shortcuts to the same file ? - Advanced Installer Community
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Two shortcuts to the same file ?

Hello,

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.

How can I fix this ?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Two shortcuts to the same file ?

Hello,

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.

Please let us know if that helped.

Best regards,
Dan
Attachments
SampleApp.zip
(864.57 KiB) Downloaded 320 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Re: Two shortcuts to the same file ?

Hello,

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

Thanks again

Return to “Common Problems”