随笔分类 -  Inno Setup

Inno Setup 添加版权信息
摘要:有以上一句,即可在右键 --> Property --> Details 里看见版本信息。 目前没有发现 Inno 自带的可以获取 EXE 版权信息的函数。所以会出现版权信息的字符串,在程序代码里有一份,在 Inno 脚本里又有一份。 还有 VersionInfoCopyright, Default 阅读全文

posted @ 2019-09-25 11:09 liujx2019 阅读(1286) 评论(0) 推荐(0)

如何给 Inno Setup 生成的安装包添加版本信息
摘要:使用 Inno 已有的函数 GetFileVersion 获取 EXE 文件的版本 这样,右键 Property --> Details 能看到版本信息。 程序的版本号会在 Welcome Page 里显示。如果 Disable 了 Welcome Page, 可以用修改程序显示名字的办法来显示出版 阅读全文

posted @ 2019-09-25 11:04 liujx2019 阅读(2993) 评论(0) 推荐(0)

如何调试 Inno Setup
摘要:从命令行运行安装包,并加上 阅读全文

posted @ 2019-09-24 09:42 liujx2019 阅读(832) 评论(0) 推荐(0)

[Inno Setup] 卸载 重启之后 删除文件
摘要:某些系统文件,例如驱动,不重启无法删除。 利用windows注册表里的 RunOnce。注意必须在HKLM下,否则可能权限不够。 不能直接填cmd命令,要以cmd的参数形式填写。 阅读全文

posted @ 2019-06-18 17:14 liujx2019 阅读(818) 评论(0) 推荐(0)

Inno Setup 升级时不再询问用户安装路径
摘要:UsePreviousAppDir Description: When this directive is yes, the default, at startup Setup will look in the registry to see if the same application is a 阅读全文

posted @ 2019-06-13 11:01 liujx2019 阅读(451) 评论(0) 推荐(0)

Inno Script - How to make “I Accept the Agreement” radio button on EULA page selected by Default
摘要:出处: https://stackoverflow.com/questions/11187022/inno-script-how-to-make-i-accept-the-agreement-radio-button-on-eula-page-sel 阅读全文

posted @ 2019-06-13 10:22 liujx2019 阅读(233) 评论(0) 推荐(0)

[Inno Setup] How to create a OuterNotebook/welcome page in the uninstaller
摘要:By Martin Prikryl https://stackoverflow.com/questions/42625626/inno-setup-how-to-create-a-outernotebook-welcome-page-in-the-uninstaller You create the 阅读全文

posted @ 2019-05-22 11:20 liujx2019 阅读(488) 评论(0) 推荐(0)

[Inno Setup] 开机自启动
摘要:[icons] Name: "{userstartup}\My Program"; Filename: "{app}\MyProg.exe"; Tasks:StartMenuEntry; Name: "{commonstartup}\My Program"; Filename: "{app}\MyProg.exe"; Tasks:StartMenuEntry; 阅读全文

posted @ 2019-04-01 10:16 liujx2019 阅读(1118) 评论(0) 推荐(0)

[Inno Setup] 在 File Section 之前解压文件
摘要:Prototype: procedure ExtractTemporaryFile(const FileName: String); Description: Extracts the specified file from the [Files] section to a temporary di 阅读全文

posted @ 2019-03-14 17:41 liujx2019 阅读(702) 评论(0) 推荐(0)

[Inno Setup] 对比字符串
摘要:[Code] var MD5Comp: string; procedure ExitProcess(uExitCode:UINT); external 'ExitProcess@kernel32.dll stdcall'; procedure CurStepChanged(CurStep: TSetupStep); begin MD5Comp := '32297BCBF4D8... 阅读全文

posted @ 2019-03-14 17:38 liujx2019 阅读(940) 评论(0) 推荐(0)

[Inno Setup] 退出安装程序的两种方式
摘要:1. 完全静默的退出 2. 询问用户之后再退出 另外: https://stackoverflow.com/questions/21737462/how-to-properly-close-out-of-inno-setup-wizard-without-prompt 未试验过 阅读全文

posted @ 2019-03-14 10:37 liujx2019 阅读(2512) 评论(1) 推荐(0)

[Inno Setup] 安装完成后调用函数
摘要:如果使用了通配符,每拷贝一个文件,函数都会被调用一次。 阅读全文

posted @ 2019-03-13 14:16 liujx2019 阅读(1526) 评论(0) 推荐(0)

[Inno Setup] 执行程序,返回值不为0时提示用户
摘要:procedure LoadPerfCounter(); var Ret : Integer; begin if Exec(ExpandConstant('{sys}') + '\lodctr.exe', '/m:test.man', ExpandConstant('{app}') ,SW_HIDE, ewWaitUntilTerminated, Ret) then... 阅读全文

posted @ 2019-03-13 14:12 liujx2019 阅读(439) 评论(0) 推荐(0)

[Inno Setup] Do not show application version in “Program and Features” control panel
摘要:Set AppVersion empty. But, then you have to set the AppVerName. Depending on your needs either set it to My Program 1.0; or if you do not want to see 阅读全文

posted @ 2019-03-12 17:59 liujx2019 阅读(209) 评论(0) 推荐(0)

Inno setup: check for new updates
摘要:Since you've decided to use a common version string pattern, you'll need a function which will parse and compare a version string of your setup and th 阅读全文

posted @ 2019-03-12 17:03 liujx2019 阅读(423) 评论(0) 推荐(0)

Add text to 'Ready Page' in Inno Setup
摘要:https://stackoverflow.com/questions/1218411/add-text-to-ready-page-in-inno-setup 阅读全文

posted @ 2019-03-12 14:01 liujx2019 阅读(139) 评论(0) 推荐(0)

How to skip all the wizard pages and go directly to the installation process?
摘要:https://stackoverflow.com/questions/22183811/how-to-skip-all-the-wizard-pages-and-go-directly-to-the-installation-process 阅读全文

posted @ 2019-03-12 13:59 liujx2019 阅读(152) 评论(0) 推荐(0)

Inno Setup打包之先卸载再安装
摘要:使用Inno Setup打包程序之后,如果想要在安装前先卸载,那么需要加下面代码,需要注意的是红色标注的改为你们自己的。网上看到有些说_is1前面用AppName,但是我这边验证不行。 阅读全文

posted @ 2019-03-12 13:54 liujx2019 阅读(950) 评论(0) 推荐(0)

Inno Setup: Ask for reboot after uninstall
摘要:https://stackoverflow.com/questions/36497580/inno-setup-ask-for-reboot-after-uninstall Use UninstallNeedRestart event function: It makes uninstaller a 阅读全文

posted @ 2019-01-23 15:06 liujx2019 阅读(275) 评论(0) 推荐(0)

【Inno Setup】Pascal 脚本 ---- 事件函数
摘要:转载 事件函数 Inno Setup支持以下函数和过程。 1. 【安装初始化】该函数在安装程序初始化时调用,返回False 将中断安装,True则继续安装,测试代码如下: 2. 该过程在开始的时候改变向导或者向导页,不要指望使用InitializeSetup函数实现改变向导页的功能,因为Initia 阅读全文

posted @ 2019-01-23 10:58 liujx2019 阅读(2955) 评论(0) 推荐(0)

导航