Trying to execute self extracting zip file silently in command line

Dmitry R picture Dmitry R · Dec 2, 2011 · Viewed 8.9k times · Source

I have these self extracting zip files that I'm trying to extract on 2008/7 machines remotely. But they are coming in a way of .exe and it require user to double click and choose the extractions location.

On WinZip support site they saying to use the /auto flag so the command will look like that:

C:\deploy\.exe /auto C:\path\\

It starts the process in the task manager but it stuck there foever.

Self extracting exe file

When I'm opening the file in text editor it says: !This program cannot be run in DOS mode.

So maybe anyone of you know how I can automate the extraction of the self extraction file silently. Or maybe there is a way to run them with answer file.

Thanks

Answer

Ron picture Ron · Aug 16, 2012

I know this is older, but I just found this page trying to do the same thing (for a silent driver install)

What the OP put up above works fine.

For example, my line was:

UPS_319_117.exe /auto .\upstemp\

(This was after having the batch file create the upstemp folder). My guess is either the path was wrong so the self-extracting hit an error in the OP's case, or something along those lines and it just hung up waiting for input that wouldn't happen since it was in auto mode...