0

This question is about an installation/uninstallation framework i am writing. For uninstallation i use the following mechanism: msiexec /X {GUID} where GUID is the registrykey that is generated in the uninstall location of the registry hive : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.

For one of the softwares, when i install Microsoft Visual C++ 2008 SP1 Redistributable it generates a GUID {9A25302D-30C0-39D9-BD6F-21E6EC160475} in XP.

However the same software generates a GUID of {1F1C2DFC-2D24-3E06-BCB8-725134ADF989} in Windows 7.

If I uninstall the software and reinstall it in XP and Windows 7 i get the same above mentioned GUIDs again and again.

So why is the GUID different for XP and Windows 7? Can I be sure that it will be the same on a given operating System (i.e it will always be {9A25302D-30C0-39D9-BD6F-21E6EC160475} in XP for VC++ 2008 SP1 Redist.) ? What is the mechanism that Windows uses to generate these GUIDs (different for XP and Windows 7 in this case).?

There are a few other softwares(like Acrobat, RealVNC, etc) where the GUID is the same for Windows 7 and XP.

2
  • Are the XP and Win 7 installations you mentioned both x86? Or is Win7 running on 64-bit?
    – BigJoe714
    Feb 16, 2010 at 16:41
  • Both of them are 32 bit;
    – Santhosh
    Sep 9, 2010 at 8:44

1 Answer 1

2

Most applications that use same setup for different versions of windows will have same guid at registry hive.

While some applications use conditional installing by looking up into windows version... in result GUIDs will be different in registry hive. this may work even both windows installer is same, installer can run different setups inside main setup by conditions like windows version, etc...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.