How to extract ProductCode from msi package?
问题 How to extract ProductCode from msi package? I want to use it later to uninstall msi via msiexec as described here 回答1: I can think of dozens of ways to do it. What programming languages do you currently use and/or comfortable with? Take a look at Execute SQL Statements You could use WiRunSQL.vbs ( provided in the Platform SDK ) to run the command: cscript /nologo WiRunSQL.vbs FOO.msi "SELECT Value FROM Property WHERE Property = 'ProductCode'" 回答2: I wrote a Powershell function that I use