Jul 09, 2010
08:57 PM
I've accepted that this is a limitation of Windows Installer, and made separate components per instance for the things that don't uninstall correctly, as per hidenori's comment in the thread he linked to.
... View more
Jun 10, 2010
01:16 PM
Hm, you're right, I hadn't noticed it was doing that. Not quite sure what kind of installation that behavior is intended for though; I'd imagine my situation of needing multiple independent environments (e.g. testing, training, production, etc.) to be more common. So I guess my best option is write some kind of replacement for setup.exe; luckily I don't need any of the other functionality it provides. It's a shame we don't have any way of customizing the one InstallShield creates. Anyway, I appreciate the help MichaelU. EDIT: The instance transforms get embedded in the MSI, right? I expected to be able to do something like: msiexec /i install.msi TRANSFORMS=:InstanceId1.mst, but that doesn't do it. Is there some way to list the names of all transforms embedded in an MSI? EDIT 2: Nevermind; I don't know what I was doing wrong but I can accomplish what I wanted to now. For anyone that needs to determine what transforms are embedded in an MSI, you can query the temporary table "_Storages", which will not show up in Orca/InstallShield. You can use some VBScript: Dim installer Set installer = Wscript.CreateObject("WindowsInstaller.Installer") Dim base, view, record Set base = installer.OpenDatabase(Wscript.Arguments(0), 0) Set view = base.OpenView("SELECT Name FROM _Storages") view.Execute() Do Set record = view.Fetch If record Is Nothing Then Exit Do Wscript.Echo record.StringData(1) Loop
... View more
Jun 09, 2010
12:49 PM
MichaelU wrote: We've got a work order tracking this enhancement request now: IOC-000076675. I don't have any timeframe for when this might be implemented. That's what I figured (the thread I linked to mentioned work order #IOC-000077274). Multi-instance support is the reason I recommended using InstallShield, so this is a bit disappointing. Just to make sure we're on the same page, while I think installing, e.g., Instance 3 in the major upgrade will already effectively major upgrade Instance 3 of the previous version if it's on the machine, you currently can't reasonably select to upgrade Instance 5 without installing the upgraded instances 1-4 first. Ideally the enhanced selection dialog would look for related earlier versions, and let you select to upgrade ones that are present even if it means skipping an instance. You can't upgrade any instance other than 0 unless you explicitly pass in the instance id to setup.exe because the selection dialog uses the product code to identify related earlier versions (instead of the upgrade code like it probably should), and the product code has to change between major upgrades. Now, the whole reason I wanted to use major upgrades was because RemoveExistingProducts let's me remove obsolete files without explicitly enumerating them in RemoveFile (which is a huge asset - possibly even a necessity - when using dynamic file linking). If there was some way to get it to work in a minor upgrade I'd be okay, but I haven't had any success so far.
... View more
Jun 08, 2010
10:44 AM
Yes to both. The problem is that the instance selection dialog uses the product code instead of the upgrade code to detect installed instances, so by changing the product code for a major upgrade it doesn't present the installed instances for selection. So only the first instance can every be upgraded unless end users pass the instance id to setup.exe, and asking them to do that isn't really a viable option. Thank you for responding so quickly!
... View more
Jun 08, 2010
09:01 AM
Multiple instances are critical to my installation, but support for it appears to be very lacking in InstallShield 2010. I need to be able to do major upgrades, but there doesn't seem to be any acceptable way to use them with multiple instances. The only workaround I could find was in this one-and-a-half year old thread for InstallShield 2009. Has there really not been any progress on this since then?
... View more
Labels
- Labels:
-
InstallShield 2010
Apr 09, 2010
08:43 AM
I'm also in the exact same situation as the original poster and would really like to know what the best practice for dealing with this is. I can't imagine that it's an uncommon scenario; some way of dynamically linking support files seems like an obvious and useful feature that InstallShield doesn't seem to have an answer for. So what do other people do to get around this?
... View more
Mar 31, 2010
09:53 AM
I have a basic MSI project that (so far) has a component for installing a Windows service and a component for setting a registry key. Installation works fine for any number of instances, but upon uninstallation the registry key and Windows service don't get removed if there are any other instances left installed on the system. So if I install instance 0 and 1 and then uninstall instance 0, the directory the service's executable was placed in will be removed, but the registry key and service will remain, and then everything for instance 1 will be removed correctly when it gets uninstalled. It doesn't matter which order (or how many) the instances are uninstalled; it's only the last one that ever works properly. Is there something hidden somewhere that keeps things from being uninstalled with multiple instances, or this just a very inconvenient bug? It's not that I don't have a control setting for deleting the Windows service, or have an install-only flag on the registry key -- everything works like it's supposed to when there's only one instance present. Any help would be very appreciated.
... View more
Labels
- Labels:
-
InstallShield 2010
Latest posts by ajk7c1
Subject | Views | Posted |
---|---|---|
1052 | Jul 09, 2010 08:57 PM | |
1319 | Jun 10, 2010 01:16 PM | |
1319 | Jun 09, 2010 12:49 PM | |
1319 | Jun 08, 2010 10:44 AM | |
6439 | Jun 08, 2010 09:01 AM | |
1209 | Apr 09, 2010 08:43 AM | |
5069 | Mar 31, 2010 09:53 AM |
Activity Feed
- Posted Re: Components not uninstalling with multiple instances on InstallShield Forum. Jul 09, 2010 08:57 PM
- Posted Re: Major Upgrades for multiple instances on InstallShield Forum. Jun 10, 2010 01:16 PM
- Posted Re: Major Upgrades for multiple instances on InstallShield Forum. Jun 09, 2010 12:49 PM
- Posted Re: Major Upgrades for multiple instances on InstallShield Forum. Jun 08, 2010 10:44 AM
- Posted Major Upgrades for multiple instances on InstallShield Forum. Jun 08, 2010 09:01 AM
- Posted Re: Dealing with a supporting tree on InstallShield Forum. Apr 09, 2010 08:43 AM
- Posted Components not uninstalling with multiple instances on InstallShield Forum. Mar 31, 2010 09:53 AM