Duplicate shortcuts on desktop - 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!

GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Duplicate shortcuts on desktop

Hi,

My installer package produces a shortcut that goes onto the desktop. When I initially install the application using my AI produced installer onto a Windows XP environment, I run the MSI with admin privileges (due to this being rolled out remotely). This produces a single shortcut that appears on the desktop. In fact, this is located in the All Users profile desktop. When I run the auto-updater as a non-privileged user, a second shortcut is created on the desktop. On closer inspection, this is located in the profile of the User running the auto-updater. How do I ensure that only one shortcut appears on the desktop?

Glenn
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Duplicate shortcuts on desktop

Hello Glenn,

What I understand in you previous post, is that you have an upgrade that does not uninstall the previous version, hence the duplicate desktop shortcut.
This is happening because the upgrade is installed per user and the previous version is per machine.
Please try to set the upgrade package to a per machine installation type as well and see the outcome.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Re: Duplicate shortcuts on desktop

The problem with setting the application as a "per-machine" installation is that it must be run as an administrator. But this is not always the case. I appreciate that this is not a standard installation process for simple applications, but this is for an enterprise level deployment. The process is as follows:
  • Administrator rolls out MSI to a number of desktops.
    A non-privileged user runs the installed application.
    If there's an update, the application is upgraded based on the current user's credentials.
The problem with this approach is that the user does not have the privilege to uninstall the application (and the shortcuts) before installing the upgrade. Likewise, during the initial roll out, the MSI is run as a generic local admin which means that the shortcuts are placed in the profile of "All users".

This is proving to be a tricky problem to resolve, so any help with this scenario is very much appreciated.

Thanks,

Glenn
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Duplicate shortcuts on desktop

Hello Glenn,

Unfortunately you must use the credentials from the original install on all your immediate updates.

This is a Windows Installer standard -> you must preserve the installation type from a previous version on its update package as well, in order for everything to work properly.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”