Get Product ID GUID Directly From MSI File

less than 1 minute read

Scenario

You need to find an MSI Product ID / GUID, but don’t want to install it first.

Solution

The classic way to find an MSI Product ID / GUID is the install it first and interrogate the registry using code like this:

However, there is an easier way that doesn’t require installing the product first!

Simply update the path to your MSI file for $msiPath at the top of the following script:

I can’t take credit for the main code above, but thought I’d share as it’s so useful.

Leave a comment