Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Conditional Advertised Desktop Shortcuts


1 reply to this topic

Catalin_Negrila

Catalin_Negrila
  • Full Members
  • 1 posts

Posted 05 February 2007 - 19:57

I'm trying to do what should be a simple thing: install an executable with an advertised shortcut on the desktop. The shortcut needs to be created only if a certain property is set (the user needs to checks a checkbox during install).

I need the shortcut to be advertised because my application needs to be able to run either local or from source.

In order to achieve this I had to create two identical components, both containing the same executable, but one also containing the extra Desktop shortcut. The 2 components have mutually exclusive conditions, based on the property that controls the creation of desktop shortcuts.

There are 2 problems here though:
1. My installer greatly increased in size since my big executable now is stored twice in the MSI.
2. I keep getting ICE30 warnings during validation, and I know that it's not good practice to install the same file in the same location by two different components.

Can this conditional installation of advertised desktop shortcuts be achieved in a different way then?

Thanks!

Catalin



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 February 2007 - 18:53

You could conditionally copy the shortcut from the start menu to the desktop.