Inno Setup 静默脚本
发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,#define MyAppName "我的程序"#define MyAppVersion "1.5"#define MyAppPublisher "我的公司"#define MyAppURL "htt
千家信息网最后更新 2026年11月02日Inno Setup 静默脚本
#define MyAppName "我的程序"#define MyAppVersion "1.5"#define MyAppPublisher "我的公司"#define MyAppURL "http://www.example.com/"#define MyAppExeName "222.txt" ;222.txt为安装后需要打开的文件名[Setup]; 注: AppId的值为单独标识该应用程序。; 不要为其他安装程序使用相同的AppId值。; (生成新的GUID,点击 工具|在IDE中生成GUID。)AppId={{9B4D1741-599A-480C-B600-584E211BED16}AppName={#MyAppName}AppVersion={#MyAppVersion};AppVerName={#MyAppName} {#MyAppVersion}AppPublisher={#MyAppPublisher}AppPublisherURL={#MyAppURL}AppSupportURL={#MyAppURL}AppUpdatesURL={#MyAppURL}DefaultDirName={pf}\TETSDefaultGroupName={#MyAppName};安装包保存的目录OutputDir=C:\Users\Administrator\Desktop ;安装包的文件名OutputBaseFilename=setupCompression=lzmaSolidCompression=yes[Languages]Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"[Tasks]Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1 ;添加文件请加在以下的文件处[Files]Source: "E:\Test\222.txt"; DestDir: "{app}"; Flags: ignoreversionSource: "E:\Test\SQL.exe"; DestDir: "{app}"; Flags: ignoreversion; 注意: 不要在任何共享系统文件上使用"Flags: ignoreversion"[Icons]Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [code][Code]//关键代码静默安装procedure InitializeWizard();begin //不显示边框,这样就能达到不会闪两下了 WizardForm.BorderStyle:=bsNone;end; procedure CurPageChanged(CurPageID: Integer);begin //因为安装过程界面隐藏不了,所以设置窗口宽高为0 WizardForm.ClientWidth := ScaleX(0) WizardForm.ClientHeight := ScaleY(0)if CurPageID = wpWelcome thenWizardForm.NextButton.OnClick(WizardForm);if CurPageID >= wpInstalling then WizardForm.Visible := False else WizardForm.Visible := True; // WizardForm.NextButton.OnClick(WizardForm);end;function ShouldSkipPage(PageID: Integer): Boolean;beginresult := true;end;[Run]Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: shellexec postinstall skipifsilent
文件
程序
文件名
相同
代码
公司
关键
工具
应用程序
标识
界面
目录
系统
边框
过程
中生
能达
应用
生成
脚本
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
广东猪兼强互联网科技有限公司
广州大一互联网络科技有限公司
互联网科技产业
蓝思科技飞鸽互联网
为想互联网科技怎么样
新华互联网科技学校
盈实互联网科技
互联网科技社
互联网科技开发公司
壕鑫互联网络科技
顺玮阁互联网科技
齐家互联网科技有限公司
北京大学互联网科技怎么样
互联网科技实习生岗位职责
搜狐科技互联网
卓翼科技产业互联网合作
区块链结合互联网科技
万物互联网智能科技
科技互联网公司两年变化
10位科技互联网大佬
互联网科技图片
互联网金融与金融科技
赫美联合互联网科技
四川狮子座互联网科技
互联网经济与金融科技
科技互联网大厂
电子商务与互联网科技的关系
昆明中奇联合互联网科技
每日互联网科技新闻
株洲百竞科技的互联网营销顾问