Two installs, two start menu shortcuts, one executable - Advanced Installer Community
ElectronShepherd
Posts: 29
Joined: Thu Jun 30, 2011 11:51 am

Two installs, two start menu shortcuts, one executable

We have two different installs A and B that both install the same executable (the user can pick one install, or the other, or both to install).

These two installations share an executable. A installs a shortcut on the start menu to the executable passing in a flag. B installs a shortcut on the start menu to the executable passing in a different flag and the executable does different things based on the flag.

If we have both installed, when we for example uninstall A, A's shortcut remains. I assume this is because (correctly) the executable is still there. I can't see a way to split the executable in a component from the shortcut to it. Is there a way to do this, or ins there a better approach?

What I want is that when both are installed, uninstalling A removed A's shortcut but not the executable, but I can't see how to configure the package definition and organisation to achieve this.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Two installs, two start menu shortcuts, one executable

Hello,
I assume this is because (correctly) the executable is still there.
Yes, this is indeed the reason why this happens.

Unfortunately, it is not possbile to separate the executable shortcut (shortcut to installed file) from the executable's component.

However, as mentioned above, it is not possible to separate the shortcut from the executable's file if the shortcut is a "shortcut to installed file" type. If the shortcut is to an external file, this is possible. With that being said, you can try to create a shortcut to an external file.

If that is of no help, I believe it would be best to just treat the two executables as two different entities (their components should not be shared). This should fix the shortcut problem.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”