霍雅
追求源于热爱,极致源于梦想!

把 Inno Setup 打包的 .exe 安装程序里的文件解出来到指定目录,不执行安装流程。
cd /d "安装包所在目录" dir
记下安装包文件名,例如:xxx.exe
findstr /m /i "Inno Setup" "xxx.exe" findstr /m /i "Inno Setup Module" "xxx.exe"`xxx.exe,基本可以判定是 Inno Setup(或至少包含其标识)。mkdir D:\out
mkdir D:\tools
cd /d D:\tools
curl -L -o innounp-2.zip https://www.rathlev-home.de/tools/download/innounp-2.zip
powershell -command "Expand-Archive -Force -LiteralPath 'D:\tools\innounp-2.zip' -DestinationPath 'D:\tools\innounp-2'"
dir D:\tools\innounp-2确认目录里有 innounp.exe
`D:\tools\innounp-2\innounp.exe -v "xxx.exe"`用途:确认识别到的 Inno 版本、内部有哪些文件。
`D:\tools\innounp-2\innounp.exe -x -m -y -d"D:\out" "xxx.exe"`-x:解包/提取文件-d"目录":指定输出目录-m:连同内嵌内容一起处理(常用)-y:自动覆盖(批量操作方便)dir /s D:\out