How to extract a *.msi package to an other folder

0 Comments

If you want to extract an *.msi package to a specific folder, use: msiexec /a Example.msi TARGETDIR="C:\Temp\Program Files" /qn This will extract the contents of the Example.msi to a folder "C:\Temp\Program Files"

Extract contents of msi packages in C#

0 Comments

If you want to extract the contents of a msi package to filesystem, you can use the following C# function:   public void ExtractMsiPackage() {    string parameters = string.Empty; parameters = string.Format(@"/a {0} /qb TARGETDIR=""{1}""