managementvur.blogg.se

Advanced installer custom action with do action
Advanced installer custom action with do action













advanced installer custom action with do action

The code in the Installer class uses the Windows Script Host to create the shortcuts. The solution provided here uses an Installer class that is added to the application being deployed. While that works, I preferred a solution that was included every time I rebuilt the solution in Visual Studio. Most answers were to use Orca to edit the MSI. However, after investigating this further it turned out what he was doing only gave the appearance of working due to the order in which the two shortcuts with the same name were being created by the installer.Ī bit of searching showed that many others have found this technique does not work and asked for a solution. After I initially posted this article, djm181 posted a comment titled "It doesn't have to be so complex", where he claimed these conditions do work. So while the IDE allows the conditions to be defined, nothing is done with them. There are no Windows Installer conditions like that. NET IDE gives you the impression that you can have conditions on folders where files are deployed, but that is misleading. Then I had set the Condition property of the User's Desktop folder to the appropriate checkbox (there is no Condition property for the actual shortcut in this folder). I had added a Checkboxes dialog to my installer with an option to create the Desktop shortcut. I thought this would be easy, but soon found out it was harder than I thought. Recently I was asked to modify the installer for an application so that the user could choose whether to add a shortcut on their Desktop. These only provide the location of the current user's Desktop, not the location of the All Users' Desktop, required for an "Everyone" install. While developing this solution, I also needed to overcome a limitation with the method and the enumeration. This article shows you how you can allow the user to choose whether to add these shortcuts.

advanced installer custom action with do action

Also, adding a shortcut in the Quick Launch bar is not supported.

advanced installer custom action with do action

But creating a shortcut based on a condition is not supported. NET 2003 it is easy to add a Desktop shortcut to your application.

advanced installer custom action with do action

With a Setup project created using Visual Studio.















Advanced installer custom action with do action