Inno Setup Pascal脚本代码集锦

本文展示了如何使用Inno Setup的Pascal脚本进行安装过程中的交互操作,包括显示消息框、自定义页面事件处理、系统尺寸获取、安装完成提示以及外部程序执行。还涉及到设置自定义消息、进度条显示、安装取消处理和注册表项检查等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[code]
procedure CurPageChanged(CurPageID: Integer);
begin
case CurPageId of
wpWelcome : MsgBox('wpWelcome ', mbInformation, MB_OK);
wpLicense : MsgBox('wpLicense', mbInformation, MB_OK);
wpPassword : MsgBox('wpPassword ', mbInformation, MB_OK);
wpInfoBefore : MsgBox('wpInfoBefore', mbInformation, MB_OK);
wpUserInfo : MsgBox('wpUserInfo ', mbInformation, MB_OK);
wpSelectDir : MsgBox('wpSelectDir', mbInformation, MB_OK);
wpSelectComponents : MsgBox('wpSelectComponents', mbInformation, MB_OK);
wpSelectProgramGroup: MsgBox('wpSelectProgramGroup', mbInformation, MB_OK);
wpSelectTasks : MsgBox('wpSelectTasks', mbInformation, MB_OK);
wpReady : MsgBox('wpReady', mbInformation, MB_OK);
wpPreparing : MsgBox('wpPreparing ', mbInformation, MB_OK);
wpInstalling : MsgBox('wpInstalling ', mbInformation, MB_OK);
wpInfoAfter : MsgBox('wpInfoAfter ', mbInformation, MB_OK);
wpFinished : MsgBox('wpFinished', mbInformation, MB_OK);
end;
end;  

 

[Languages]
Name: de; MessagesFile: compiler:Languages/German.isl

[Files]
;;Programmdteien
Source:compiler:Examples/MyProg.exe; DestDir: {app}

[CustomMessages]
;; Meldung der MsgBox bei nicht ausgewählter Installation
de.NotRun =Die Istallation ist wichtig da sonst das installiter Programm %nnicht ordnungsgemäß funktioniert.%n%n Wollen Sie die externe Installation Ausführen?

[Run]
Filename: {app}/MyProg.exe;Description: Prog st

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值