- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Detect MSI GUID In Running Apps
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Detect MSI GUID In Running Apps
Hello,
Is it possible to detect GUID of the MSI in running Application.exe . Which gets installed through installshield
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
An MSI will have lots of different GUID's associated with it such as: Product Code, Upgrade Code, Package Code, Component GUIDs etc.
Each one of these will be stored in a Windows Property - I'm not sure how (or why) you want to detect the GUID whilst the installer is running however you will be able to access them by calling the relevant property that stores the GUID you want.
For example the Proct Code GUID is stored in the property PRODUCTCODE:
https://docs.microsoft.com/en-us/windows/win32/msi/productcode
hope this helps...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I was looking particular GUID as during uninstall i want to check if the running process is associated with particular version of application. As i can have multiple version of same application with different GUID.
I used different approach in place of GUID.
Thanks for quick reply .
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Actually my ask was if my application is installed successfully. Now i am running my application. So is it possible for me to get the MSI guid through my application.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The following VB script returns all MSI Product Names along with their ProductCodes - you could modify it yourself to achieve what you need - and then have your application run it when it starts for the first time:
https://github.com/glytzhkof/all/blob/master/MsiRetrieveProductCode.vbs
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)