Inno Setup简介
Inno Setup 是一个免费的 Windows 安装程序制作软件。第一次发表是在 1997 年,Inno Setup 今天在功能设置和稳定性上的竞争力可能已经超过一些商业的安装程序制作软件。
-
更多介绍
-
官
-
官方介绍和详细帮助文档
-
Frequently Asked Questions列表:
Functionality
- Translating Inno Setup’s Text
- Does it support MBCS (multi-byte character sets)/li>
- Will it support Windows Installer in the future/li>
- How do I change the icon of Setup.exe/li>
- Can Inno Setup do a conditional installation – for example, proceed only if a certain registry key or file exists/li>
- Is it possible to do a silent install without using the /SILENT or /VERYSILENT command-line parameters/li>
- Can Setup use the value of a registry entry as the default directory name/li>
Problems
- Compiler says “Mismatched or misplaced quotes on parameter”
- My application can’t find any of its files when it is started from the shortcut created by Setup. It works fine when I double-click the application’s EXE in Explorer.
- When I install a new version of my application without uninstalling the old version first, I get a second entry in Control Panel’s Add/Remove Programs.
- Why is the error message “The setup files are corrupted” displayed on some systems/li>
- Setup gives the message “Unable to register the DLL/OCX: DllRegisterServer export not found”
- After uninstalling, the directories created during installation still exist.
- [I run a batch file in the Run] section, but the window remains on the screen after it finishes executing. I’d like it to “close on exit.”
- I’ve changed DefaultDirName in my script, yet when I run Setup it defaults to the directory I had before.
- [I have two Icons] entries with the same Name, but only one of them gets installed.
- [Setup isn’t waiting for programs executed by Run] entries to finish.
- Some languages are missing on the Select Setup Language dialog, or it doesn’t show up at all.
- Mapped drives aren’t showing up on the Select Destination Location, or cannot be browsed into. wizard page.
Installation Tasks
- Creating Internet (URL) Shortcuts
- Setting the “Start In” Field on a Shortcut
- Creating File Associations
- Setting Environment Variables
- Setting the “Close on Exit” Box on a Shortcut to an MS-DOS Program
- Making Backups Before Replacing Files
- Installing Different Files Depending on Windows Version
- Settings Permissions on Files, Directories, or Registry Keys
- My installation needs to do something that Inno Setup apparently doesn’t have a feature for.
How Do I Install…/h3>
- OCX Files
- Visual Basic System Files
- Visual C++ System Files (e.g. MFC)
- COMCTL32.DLL
- BDE (Borland Database Engine)
- MDAC, ADO, Jet, etc.
Compatibility
- OS Compatibility
- Administrative Privileges
Miscellaneous
- Are there any limits on how many files, etc. may be included in an installation/li>
- What exactly happens when the user clicks Cancel during an installation/li>
示例解读
下面是我维护过的真实的脚本:
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-P9hqC4rt-1655950523678)(示例解读/1.png)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-pSst0Kqr-1655950523679)(示例解读/2.png)]
脚本程序设计
主要参考:
- 互联 软件的安装包界面设计-Inno setup
- InternetFashionedInstaller
- innodependencyinstaller以及译文
- 检测和安装vcredist_x86.exe和这个
- [How to make vcredist_x86 reinstall only if not yet installed(https://stackoverflow.com/questions/11137424/how-to-make-vcredist-x86-reinstall-only-if-not-yet-installed/11172939#11172939)
- [How can I install .NET framework as a prerequisite using InnoSetup(https://stackoverflow.com/questions/20752882/how-can-i-install-net-framework-as-a-prerequisite-using-innosetup)
- Installing .NET Framework 4.5 automatically with Inno Setup
- Inno Setup MSVC vcredist without bothering your users
- 使用Inno Setup 打包.NET程序,并自动安装.Net Framework
参考资料
https://www.cnblogs.com/kissfancy/p/5736954.html
https://www.cnblogs.com/yplong/p/4261244.html
https://github.com/stfx/innodependencyinstaller
https://stackoverflow.com/questions/11137424/how-to-make-vcredist-x86-reinstall-only-if-not-yet-installed/11172939#11172939
https://download.csdn.net/download/xbitbug/10268108
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!