关于安装:如何以静默方式解压缩WinZip自解压exe

How to extract WinZip Self-Extracting exe in silent mode

我已经使用WinZip自解压程序创建了一个exe文件。它以UI模式提取文件,即在dobule单击安装程序时,打开一个新窗口,其中显示解压缩setupname.exe。我需要在静默模式下提取相同的exe文件,该文件不应显示解压缩的UI信息。

是否可以在UI模式和静默模式下使用WinZip自解压程序提取exe?如果可以的话,请分享步骤。


对于WinZip,您可以使用/auto标志,后跟您想要将其解压缩到的目录。

例如:

1
myWinZipSelfExtract.exe /auto C:\\whereever\\you\\want

其中myWinZipSelfExtract.exe是您的自解压exe

来源:http://kb.winzip.com/kb/entry/115/


我遇到了类似的问题,但发现Powershells Expand-Archive命令有效。

例如Expand-Archive C:\\\\path_to_exe.exe -DestinationPath C:\\\\path_to_extract_to -Force


您可以使用switch -info在自解压器中查看/ auto命令。

例如:

1
myWinZipSelfExtract.exe -info

例如,您可以通过以下命令获取提示信息:

1
-win32 -le -overwrite -c".\\setup.exe"

提示信息命令


这将以静默方式提取自解压exe文件的内容。

语法:<self-extract-exe-name>.exe -unzipDir <Destination-Folder>

示例:Test.exe -unzipDir C:\\my-files\\test