/win32_sfx

make self extracting file run on Windows

Primary LanguageGoMIT LicenseMIT

win32_sfx

make self extracting file run on Windows

资料

借助WinRAR等价实现

=> pack to sfx
<winrar.exe> -y a -afzip -ep1 -sfxzip.sfx <dst file path>
  <files to pack> -z"<comment file path>" -iicon"<icon file path>"
  
-y -> 所有回答都是 yes
a 向压缩包内添加文件
-afzip zip格式。 rar.exe 只支持 RAR 格式,winrar.exe 支持 RAR和ZIP 格式
-ep1 是压缩包内路径的处理方式,响应的有 ep2 ep 等
-z 是压缩包的注释

=> change name in zip
<winrar.exe> rn <dst file path> <src name in zip> <dst name in zip>

有了 SFX 文件,你可能需要修改 PE 文件的能力