How can I run msiexec from cygwin to unpack a msi?

Posted by Stefano Borini on Super User See other posts from Super User or by Stefano Borini
Published on 2014-06-06T15:02:33Z Indexed on 2014/06/06 15:30 UTC
Read the original article Hit count: 398

Filed under:
|
|
|

I need to unpack (not execute, unpack) a msi in a cygwin makefile.

If I invoke from the windows command prompt the following

msiexec /a package.msi /qn TARGETDIR=C:\foo

The package is correctly deployed in C:\foo. However, if I try to perform the exact same operation from the cygwin prompt

msiexec /a package.msi /qn TARGETDIR=C:\\foobaz

All I get is the msiexec window stating the usage. I can solve this problem in two ways, either running successfully msiexec as above, or by starting a windows command from the makefile, and have it invoke that operation.

Any ideas?

© Super User or respective owner

Related posts about windows-7

Related posts about command-line