Dec 01, 2014
08:44 AM
If your custom action is deferred, you'll need to use the CustomActionData property to obtain the value of a property such as ProductVersion. To learn more, see Accessing or Setting Windows Installer Properties Through Deferred, Commit, and Rollback Custom Actions.
... View more
Feb 27, 2013
08:51 AM
Some of this might be of interest to you if you want to avoid transforms (finite number of instances) and just let the installation run like new every time you launch it. Keep in mind that this solution would require you to come up with your own way to uninstall: Adding and Removing an Application and Leaving No Trace in the Registry What makes a windows service unique is the service name. This is quite literally a namespace issue. If you want your install to be super dynamic, you could write a custom action that modifies the msi at runtime. You would want to maybe create a loop to query the SCM for ServiceName , and when you find a value for n that is not already in use, change the name of the service in the ServiceInstall table to that name, and then continue as normal. That said, on each of these installations, are you installing a new set of files, or is this just to create multiple instances of a service from the exact same set of files? If it is the latter, then I think you're going about it all wrong. Adding instances of the service is something that could more easily be integrated in a GUI provided by your product rather than the installation itself. So I would say, install the product with the initial copy of the service. Write a quick little gui or command line app that creates new copies of the service. I've seen this done inside the service executable itself, calling it with a "--install" argument tells it to find a unique name for itself, and create a new service instance. If this is a .NET service, maybe look into TopShelf. That's what the devs use here. The trick then is to make deleting one service delete all the other ones. I'll leave that up to you. I hope I have given you enough information to solve the problem a couple different ways. Good luck!
... View more
Feb 13, 2012
08:35 AM
Now I have created a new dialog with an edit field on it. I called its property STARTMENUFOLDER. The default value of the property is my company name. The dialog works fine but I still want to customize the start menu path with this property. The following attempt failed: In Short Cuts menu in InstallShield add [STARTMENUFOLDER] as display name. Now the program gets installed under "[STARTMENUFOLDER]/Program Name/" in the start menu. How can I access the property to create the proper start menu short cut? Thanks in advance Christoph
... View more
Latest posts by san_bsw
Subject | Views | Posted |
---|---|---|
985 | Nov 27, 2014 04:36 AM | |
965 | Sep 28, 2012 04:31 AM | |
3785 | Sep 27, 2012 08:29 AM | |
501 | Feb 24, 2012 02:40 AM | |
1100 | Feb 22, 2012 04:13 AM | |
683 | Feb 13, 2012 08:35 AM | |
683 | Feb 13, 2012 02:24 AM | |
1873 | Feb 10, 2012 03:04 AM |
Activity Feed
- Posted Get ProductVersion in BasicMSI Custom Action on InstallShield Forum. Nov 27, 2014 04:36 AM
- Posted Re: Install the same service multiple times under different names on InstallShield Forum. Sep 28, 2012 04:31 AM
- Posted Install the same service multiple times under different names on InstallShield Forum. Sep 27, 2012 08:29 AM
- Posted Re: SdLogonUserInformation and LocalSystem on InstallShield Forum. Feb 24, 2012 02:40 AM
- Posted SdLogonUserInformation and LocalSystem on InstallShield Forum. Feb 22, 2012 04:13 AM
- Posted Re: Let the end user change the start menu path on InstallShield Forum. Feb 13, 2012 08:35 AM
- Posted Re: Let the end user change the start menu path on InstallShield Forum. Feb 13, 2012 02:24 AM
- Posted Let the end user change the start menu path on InstallShield Forum. Feb 10, 2012 03:04 AM