marksidell
Posts: 1
Joined: Mon Mar 04, 2013 11:43 pm

Different icon for windows 7

Is there some way to install my app (a simple exe) so that different taskbar and shortcut icons is used when the app is installed on Windows 7 or later?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Different icon for windows 7

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

I'm afraid we don't have predefined support for this, but as a workaround you can follow the steps below:
- go in the Files and Folders page
- use the [Shortcut to] toolbar button and create two "External File" shortcuts for the file you want (one for Windows 7 and later and one for the others)
- in the "New Shortcut" dialog choose a name for your shortcut (unfortunately you have to choose a different name for each shortcut, i.e. "Shortcut XP" and "Shortcut 7")
- in the same dialog choose the same "Shortcut Target" for both shortcuts (i.e. [APPDIR]My file.exe)
- use the [...] button and choose a different icon for each shortcut
- go in the Organization page and find the component that contains your shortcuts
- unfortunately a shortcut cannot have its own component, so you have to create 2 components containing a dummy resource (i.e. a registry or a file) and move each shortcut in a different component
- select the component that contain the "Shortcut XP" shortcut and in the "Condition" text field write: VersionNT < 601 (in this case this component will be installed for all Operating Systems earlier that Windows 7, including Windows Server 2003 and 2008)
- select the component that contain the "Shortcut 7" shortcut and in the "Condition" text field write: VersionNT >= 601 (in this case this component will be installed for Windows 7 and later, including Windows Server 2008 R2 and 2012)
- build and run the project

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”