Desktop Shortcut Win7 problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MBonevil
Posts: 45
Joined: Fri Jan 22, 2010 4:48 pm

Desktop Shortcut Win7 problem

Hi,

I create a desktop shortcut with the installer.
Screen01.png
Screen01.png (14.71 KiB) Viewed 6004 times
When I install my application, the shortcut appear on the desktop... all it's ok for now.

If I Copy/Paste the shortcut, another one appear with the same name... this is strange but both shortcut are working.
Screen02.png
Screen02.png (42.39 KiB) Viewed 6004 times
If I try to rename the bottom one, the top shortcut is renamed instead.
Screen03.png
Screen03.png (32.77 KiB) Viewed 6004 times
Now, the renamed shortcut is working but not the other one.

If I right-click on the second shortcut (With the original name), I have the option "Troubleshoot compatibility".
The properties dialog have somes strange informations:
Size: 0 bytes
Size on disk: 0 bytes
The security tab show an error: The requested security information is either unavailable or can't be displayed.
MBonevil
Posts: 45
Joined: Fri Jan 22, 2010 4:48 pm

Re: Desktop Shortcut Win7 problem

Another detail... If I uninstall my application, the shortcut stay on the desktop.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Desktop Shortcut Win7 problem

Hello,

This is what I believe is happening:
- your package is per-machine, therefore the shortcut is installed in All Users\Desktop. Those shortcuts are visible on your desktop too. It's how windows works.
- when you copy paste it, another copy of the shortcut is created on <your_user>\Desktop. Now, two shortcuts with the same name can exist on your desktop because one is actually in All Users\Desktop. You can check it this way. Open your desktop location in an explorer windows. You most likely won't see both shortcuts, only one of them.
- when you rename the bottom shortcut, I'm guessing that the actual bottom shortcut really is renamed. But then auto-sort kicks in and sorts it to be the first, making it seem like the first one was renamed.
- I did test this myself, indeed the auto-sort placed it first. However, both shortcuts were functional even after renaming.

The shortcuts stays on desktop because you copied it and it is not registered with Windows Installer.

Could you give me more details on how to reproduce this issue? Operating system, type of shortcut created (external or installed), perhaps other details too, which you find relevant?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
MBonevil
Posts: 45
Joined: Fri Jan 22, 2010 4:48 pm

Re: Desktop Shortcut Win7 problem

Hi,

I'm installing on Win7 32bits english.

The installed shortcut is in Public\Public Desktop.

I don'T have the option "Auto arrange icons", and If I place the installed icon on the left side of the screen and
the copy on the right side of the screen, when I rename the right one, the left icon is renamed. All icons stay in place.

After the rename, the left icon is working, but the right is not working.

I will send you my AIP by E-mail.

Best regards,

Martin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Desktop Shortcut Win7 problem

Hello,

I could not reproduce the issue with the .aip you sent either. But this is probably because the project had to be modified so that it could be built. Please send a buildable project reproducing the issue, so we can further study the matter.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
MBonevil
Posts: 45
Joined: Fri Jan 22, 2010 4:48 pm

Re: Desktop Shortcut Win7 problem

Hi,

I can send you the installer via FTP.

If it's ok for you, I will send you the FTP information via E-mail.

Best regards,

Martin

Return to “Common Problems”