码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • windows安装包制作工具Inno Setup简介


    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)?
      • 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

      • OS Compatibility
      • Administrative Privileges

      Miscellaneous

      • Are there any limits on how many files, etc. may be included in an installation?
      • What exactly happens when the user clicks Cancel during an installation?

    示例解读

    下面是我维护过的真实的脚本:

    [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(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

  • 相关阅读:
    C#运算符执行顺序对照表
    刷题记录:牛客NC16696[NOIP2001]统计单词个数
    数字孪生智慧工厂:电缆厂 3D 可视化管控系统
    【Python基础知识】面试基础知识
    【计算机网络】HTTP协议
    P4_toturial练习1问题:ModuleNotFoundError: No module named ‘p4.tmp‘
    嵌入式系统使用网络镜像或使用网络更新镜像
    众享比特未来融合研究院执行院长王陈慧子博士以第一作者在IEEE TCSS上发表论文
    【100天精通Python】Day67:Python可视化_Matplotlib 绘制动画,2D、3D 动画 示例+代码
    法治智能起航 | 拓世法宝AI智慧政务一体机重塑法治格局,开启智能司法新篇章
  • 原文地址:https://blog.csdn.net/stallion5632/article/details/125422068
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号