How to un-packge an .EXE to create a transform
Having issues deploying some software using GPO. The package in question uses 'Setup.exe' which appears to have an embedded .msi file. Any ideas how to un-wrap this file, so I can get the .msi? I want to see if I can create a transform to help with the deployment. It was created using InstallShield.
I have tried going to a command prompt and running "setup.exe /a". Nothing really happens. I tried used the Appdeploy repacking tool, but half way through prompted me that this is a Windows Installer setup and it should not be repackaged.
I am pulling my hair out with this one.
ZT
Answers (7)
You can sometimes pull an MSI and the accompaning files out of a temp folder that is created when starting an install.
First you need to start the executable, and when it gets to the splash page (where you click Next for the first time) don't click anything and go to the %temp% folder. There'll be a new folder sometimes with a ~setup at the end of it. Inside there could be the MSI and other files it needs to run.
Some executables can be extracted with an archival software (7zip, WinRAR, Alzip, etc.) You can also try to open it with one of those and extract the files inside.
Have you tried "setup /?" to see what switches are available? Sometimes you can get the MSI that way with an /extract or /admin.
Even if not, it should still create its own folder in %TEMP%.. just start the install and while it's running but before you click anything in it, sort %TEMP% by date and see if any folders (or logfiles) were just dumped there with a current timestamp.
As for the setup.iss - that should only be used if you install silently, so try adding a -s ... and if setup.iss is in the same folder, you don't even need the /f1"path" part when using -s.
hth
I was able to extract the contents, but nothing was really readable. I did some reading and was able to create a response file using the following syntx:
setup.exe /R /F1"C:\Temp\Setup.iss"
Trying to run a small batch that references this response file, but it doesn't seem to be working for some reason. If I look in the event logs it is saying the package installed correctly, but nothing has been installed.
ZT
its a simple task.
First empty %temp% folder. than try to install the exe keep %temp% folder open because most of the exe dumps msi in this folder. Just copy paste that folder on some other location as that msi or msi folder will delete itself after installation. One more thing make a log of your installation by
msiexec /i "C:\MyPackage\Example.msi" /L*V "C:\log\example.log"
as you get the location of msi if exe dumpls in some other location.