Aug 13, 2015
02:45 PM
benmarty wrote: I'm not seeing the multi-instance tab in the project settings. I can't find any other way to enable multi-instance installation. What am I missing? With the "Releases" page selected (under "Media" in the Installation Designer), select a configuration node directly under the root "Releases" node in the tree. Notice that there are multiple tabs in the right-hand pane, one of them being "Multiple Instances". I totally missed the fact that there are tabs in the rightmost pane sometimes, and so I was missing a *lot* of options here! 😮
... View more
Aug 12, 2015
04:56 PM
I searched the forums for the term "MSI" and got no results, which I find hard to believe, but I guess I have no choice but to post this question, since I can't seem to find any prior discussion about MSI projects. According to a page at: http://helpnet.installshield.com/installshield22helplib/helplibrary/MultipleInst-Builds.htm, it's possible to create multi-instance installations in an MSI project, but I'm not seeing the multi-instance tab in the project settings. I can't find any other way to enable multi-instance installation. What am I missing?
... View more
- Tags:
- msi
- multi-instance
Labels
- Labels:
-
InstallShield 2015
Dec 20, 2012
07:53 AM
Finally worked through the rest of the issue, I think. I added the custom action for loading the existing IS_SQLSERVER_SVCINSTANCE and related properties to the Install UI Sequence after ValidateProductID with the condition REMOVE <> "ALL", and added it to the Install Exec Sequence after ValidateProductID with the condition REMOVE = "ALL".
... View more
Dec 19, 2012
03:19 PM
I worked out that I can use code like this in a VBScript custom action to re-establish the values of my properties on subsequent runs of the installer (works great when running a new install on a system where the service is already installed): Dim regIndex regIndex = -1 Do Dim name name = Session.Installer.RegistryValue(2, "SYSTEM\CurrentControlSet\services", regIndex) If IsNull(name) Then Exit Do If IsEmpty(name) Then Exit Do If Len(name) = 0 Then Exit Do If Len(name) >= 9 And Left(name, 9) = "MyService" Then Dim instance instance = Mid(name, 10) Session.Property("IS_SQLSERVER_SVCINSTANCE") = instance If Len(instance) > 0 Then instance = Mid(instance, 2) End If Session.Property("IS_SQLSERVER_INSTANCE") = instance If Len(instance) > 0 Then Session.Property("IS_SQLSERVER_SQLDEP") = "MSSQL$" & instance Session.Property("IS_SQLSERVER_INSTANCETITLE") = " (" & instance & ")" Session.Property("IS_SQLSERVER_SERVER") = "(local)\" & instance Else Session.Property("IS_SQLSERVER_SQLDEP") = "MSSQLSERVER" End If Exit Do End If regIndex = regIndex - 1 Loop So I set that custom action to run after ValidateProductID. But I still don't seem to be getting the service un-installed. Do custom actions run during an un-install? I only specified it for the "Install UI Sequence", not the "Install Exec Sequence" or any of the others, but I don't see an "Uninstall Sequence". Do I need to add it to one of these other sequences?
... View more
Dec 19, 2012
11:35 AM
I figured out how to prompt for a service instance name and install an instance-specific service name, similar to what SQL Server does by appending "$" and the instance name. I stored the instance name in a property called IS_SQLSERVER_SVCINSTANCE as "$MyInstance", for example. Then I made sure the service name in the tree view included [IS_SQLSERVER_SVCINSTANCE]. Indeed the service got installed with the internal name MyService$MyInstance and even had a dependency on MSSQL$MyInstance set up properly. The problem is, when I un-install, the service doesn't go away despite the fact that I have configured it to be deleted on un-install. Did it forget the value of IS_SQLSERVER_SVCINSTANCE? Do I need to prompt for it again? Can I force it to be remembered? I thought the un-install info kept some of that kind of information around.
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Latest posts by benmarty
Subject | Views | Posted |
---|---|---|
974 | Aug 13, 2015 02:45 PM | |
2042 | Aug 12, 2015 04:56 PM | |
816 | Dec 20, 2012 07:53 AM | |
816 | Dec 19, 2012 03:19 PM | |
1836 | Dec 19, 2012 11:35 AM |
Activity Feed
- Posted Found the answer on InstallShield Forum. Aug 13, 2015 02:45 PM
- Posted MSI Multi-Instance Install on InstallShield Forum. Aug 12, 2015 04:56 PM
- Tagged MSI Multi-Instance Install on InstallShield Forum. Aug 12, 2015 04:56 PM
- Tagged MSI Multi-Instance Install on InstallShield Forum. Aug 12, 2015 04:56 PM
- Posted Sequence Question Resolved on InstallShield Forum. Dec 20, 2012 07:53 AM
- Posted Re: Instance-specific install/un-install of service on InstallShield Forum. Dec 19, 2012 03:19 PM
- Posted Instance-specific install/un-install of service on InstallShield Forum. Dec 19, 2012 11:35 AM