MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

Optional desktop shortcuts for Win32/64 installer.

I've been working on a combined Win32/64 installer and so far I have been able to create a system that installs the correct 32 or 64 bit version depending on the OS. The start menu shortcuts also work correctly based on operating system. However, Desktop shortcuts don't appear to be working.

My basic approach was the same as in the start menu shortcuts system - Add a 'Win64' folder to the Desktop folder in AI, tell it to install to its parent, and place inside it a shortcut that installs only for VersionNT64. In the Desktop folder itself is a shortcut to the Win32 version, set to install only if NOT VersionNT64.

When I run the installer on a 64 bit system, my 64 bit shortcut is installed regardless of whether the Shortcuts UI page has the option to install desktop shortcuts or not - On 32 bit systems the 32 bit shortcut correctly installs or not based upon that option.

Is there a way I can get the Desktop shortcuts for my two executables to respect the Desktop Shortcut checkbox in the Shortcuts UI Panel?

To add to the confusion, I turned off the option to install desktop shortcuts, removed the shortcuts and rebuilt the installer and it's still installing a shortcut so maybe there's something else going on...
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Optional desktop shortcuts for Win32/64 installer.

Hi Matt,
Add a 'Win64' folder to the Desktop folder in AI, tell it to install to its parent, and place inside it a shortcut that installs only for VersionNT64.
Unfortunately ShortcutDlg only conditions shortcuts that have Source Directory the Desktop folder.
Is there a way I can get the Desktop shortcuts for my two executables to respect the Desktop Shortcut checkbox in the Shortcuts UI Panel?
In order to achive this you can create both shortcuts in the Desktop from Files and Folders Page folder with a diferrent name. This is a Windows Installer limitation to install two files with the same name in the same location. You can take a look on the How do I install resources based on the Operating System version? article which may be useful to you.
To add to the confusion, I turned off the option to install desktop shortcuts, removed the shortcuts and rebuilt the installer and it's still installing a shortcut so maybe there's something else going on...
In order to have a better view about this, can you please send us the .AIP (project file) and a verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

Re: Optional desktop shortcuts for Win32/64 installer.

I forgot to update my post before - The problem appears to have been solved by restarting Windows... Despite the fact that I was running a newly built installer each time, the desktop shortcut was being installed during testing multiple different installers when I asked it not to until I rebooted, at which point the installer exe that had been previously failing worked.

I am now installing a shortcut to a specific executable name, which triggers either the 32 or 64 bit executable depending on which was installed, and it appears to be working correctly.

Return to “Building Installers”