大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全家桶1年46,售后保障稳定
Inno Setup简介
Inno Setup 是一个免费的 Windows 安装程序制作软件。第一次发表是在 1997 年,Inno Setup 今天在功能设置和稳定性上的竞争力可能已经超过一些商业的安装程序制作软件。
-
Functionality
- Translating Inno Setup’s Text
- Does it support MBCS (multi-byte character sets)?
- Will it support Windows Installer in the future?
- How do I change the icon of Setup.exe?
- Can Inno Setup do a conditional installation – for example, proceed only if a certain registry key or file exists?
- Is it possible to do a silent install without using the /SILENT or /VERYSILENT command-line parameters?
- Can Setup use the value of a registry entry as the default directory name?
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?
- 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…?
- OCX Files
- Visual Basic System Files
- Visual C++ System Files (e.g. MFC)
- COMCTL32.DLL
- BDE (Borland Database Engine)
- MDAC, ADO, Jet, etc.
Compatibility
Miscellaneous
示例解读
下面是我维护过的真实的脚本:
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(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
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/234384.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...