惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
GRAHAM CLULEY
P
Privacy International News Feed
L
LINUX DO - 热门话题
C
Cisco Blogs
T
Tor Project blog
AWS News Blog
AWS News Blog
K
Kaspersky official blog
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
Project Zero
Project Zero
Attack and Defense Labs
Attack and Defense Labs
Latest news
Latest news
The Last Watchdog
The Last Watchdog
Apple Machine Learning Research
Apple Machine Learning Research
Simon Willison's Weblog
Simon Willison's Weblog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Cloudbric
Cloudbric
Last Week in AI
Last Week in AI
S
Security Affairs
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
有赞技术团队
有赞技术团队
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
P
Palo Alto Networks Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Security @ Cisco Blogs
V
V2EX
S
Secure Thoughts
人人都是产品经理
人人都是产品经理
月光博客
月光博客
博客园_首页
T
Troy Hunt's Blog
爱范儿
爱范儿
N
News and Events Feed by Topic
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Privacy & Cybersecurity Law Blog
V
Vulnerabilities – Threatpost

博客园 - 愚公

Bridges 虚拟化浪潮 MAGEUI的Hash问题 Lingoes的划词翻译功能极有可能泄露隐私 VSTO SaveCopyAs方法在Excel 2007下必须注意的一个问题 Vista Folders Always Shown In Details View - 让Vista文件夹总是使用详细资料视图 安装新的Oracle Instant Client后重新配置PL/SQL Developer和环境: Certificates registry key name to MMC friendly name mapping A review of the CVS SCC PLUGIN IE8.0 TAB行为悄然改善: WSS 3.0 List WebService使用点滴 Set a password textbox for Visual Studio .NET setup project 在WinForm中控制GIF动画的启停的一种方法 foobar2000绿色版在vista下的Unhandled exception: Bad allocation Virtual Server启动时自动启动每个虚机 NTFS文件及目录日期值行为 installState is missing ! .Net Framework 2.0配置工具Stopped Working VISTA BITS POLICY DESCRIPTION'S MISTAKE
用7zip制作自动解压安装程序
愚公 · 2008-06-27 · via 博客园 - 愚公

1,首先必须将需要打包的文件压成.7z格式(假设文件名为YourSetup.7z),不需要做成自解压的EXE文件。
2,用UTF-8格式(用NOTEPAD的话,选择“另存为(Save As)……”时设定Encoding编码格式)写一个config.txt文件,最好存放在与上一步的7z文件同一目录下,config.txt内容为 (假设你解压以后希望自动运行其中的setup.exe):
;!@Install@!UTF-8!
InstallPath=".\\YourSetupFolder"
RunProgram="setup.exe"
;!@InstallEnd@!
3,从http://7zsfx.solta.ru/en/ 下载一个7zSD,并将其中的7zSD.sfx文件解压到上面提到的目录中
4,启动cmd命令窗口,转到该目录,打这个命令:
copy /b 7zSD.sfx+config.txt+YourSetup.7z YourSetup.exe
这个YourSetup.exe就是我们需要的了。

特别注意:
Config.txt中的InstallPath参数很重要,在网络上搜索出来的文档一般都只写一个RunProgram参数,我照这种写法做出来的执行包解压完成后,在运行setup.exe时报错,错误信息为:
This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer Package.
百思不得其解,后来到我的Temp目录下查找,发觉解压过程还算正常,目录为7zipSfx.???,但执行setup.exe时,这个目录突然被清 空,setup.exe不见当然就出错了,因此我查了7zSD的文档,看到了InstallPath这一参数,试用了一下,成功了。或许有其他更好的方 法,但我不想在这上面花更多精力了,我非常不理解,如此重要的功能为什么不能集成到7zFM中去?目前我用的是4.58beta,还看不出官方有计划集成 这一功能,比较遗憾。