cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tomoff123
Level 2

Expanding and repacking setup.exe

Hi,

Is there any way to extract the MSI embedded within a setup.exe, modify it and put it back into the setup.exe?

I am using Basic MSI project.

Thanks.
~Tom
Labels (1)
0 Kudos

(3) Replies
RobertDickau
Flexera Alumni

You (anyone) can expand setup.exe with the /a switch, but there's no built-in tool for recompressing it. If it's just a matter of passing along modifications to the MSI database, a transform (.mst file) will do the trick.
0 Kudos
rcatwork
Level 4

With the /a switch, is there a way to specific the directory to extract to?

I'm working on a script that will take a setup.exe as input, extract the msi, and read some information from the msi file.

Thanks.
0 Kudos
RobertDickau
Flexera Alumni

I think passing a value for TARGETDIR will do it, as in:

setup.exe /a /V"TARGETDIR=C:\RightHere"
0 Kudos