14

I am looking for a replacement for InstallShield. Unfortunately we only have 1 license for InstallShield and it was installed on a developer's machine. I'm considering switching over to WiX, but after reading the documentation there is a Product ID GUID, Upgrade Code GUID and a Package GUID.

I also know GUID's were created by InstallShield. If I switch over to WiX can I start using new GUID's or do I have use some of the GUID's created by InstallShield? If an upgrade to a product is released will switching installers hose customers who had the old installer?

Kinze
  • 3,780
  • 5
  • 21
  • 15

4 Answers4

18

In order to be able to upgrade your old package, you need to use (and find out) your old upgrade code.
The Package code should be different (ie autogenerated) for every different MSI (the MSI can be cached with the guid as cache key).
The Product code should be different between major upgrade, but is important for minor upgrades and patches. I haven't used wix to do anything else than major upgrades right now, so I don't know the exact details

See the MSDN article on patching and upgrades as well as the WiX Tutorial

Sander Rijken
  • 21,376
  • 3
  • 61
  • 85
  • 7
    If you plan to not break component reference counting, you should also use the same component guids (provided you haven't changed the install locations for the components). Just use dark.exe to disassemble your existing MSI into wix format, clean up the wix source (I'd remove the UI junk from Installshield and compile in a default WIX GUI), reyank source paths and compile and you are almost there. – Stein Åsmul Sep 27 '09 at 01:06
12

It may also be interesting to know that you can decompile the msi that was generated by Installshield with the dark.exe tool (included in wix). This will recover the upgrade code among other things.

Wim Coenen
  • 66,094
  • 13
  • 157
  • 251
5

I'd also suggest getting a copy of The Definitive Guide to Windows Installer, I highly recommend the book and don't know how I would have migrated to WiX without it. It's a very low level overview of Windows Installer, if you understand the book then WiX becomes pretty easy.

saschabeaumont
  • 22,080
  • 4
  • 63
  • 85
2

I know you've already accepted an answer, but make friends with Orca if you haven't already done so.

Orca helped me understand MSI and what WiX was doing under the covers. In your case it would make finding the Upgrade (or any) GUID very easy.

This question may also save you some time and headaches :)

Community
  • 1
  • 1
si618
  • 16,580
  • 12
  • 67
  • 84