|
| 1 | +; 脚本由 Inno Setup 脚本向导生成。 |
| 2 | +; 有关创建 Inno Setup 脚本文件的详细信息,请参阅帮助文档! |
| 3 | +; 仅供非商业使用 |
| 4 | + |
| 5 | +#define MyAppName "SecRandom" |
| 6 | +#define MyAppVersion "2.2.0" |
| 7 | +#define MyAppPublisher "SECTL" |
| 8 | +#define MyAppURL "https://secrandom.netlify.app/" |
| 9 | +#define MyAppExeName "SecRandom.exe" |
| 10 | + |
| 11 | +[Setup] |
| 12 | +; 注意:AppId 的值唯一标识此应用程序。不要在其他应用程序的安装程序中使用相同的 AppId 值。 |
| 13 | +; (若要生成新的 GUID,请在 IDE 中单击 "工具|生成 GUID"。) |
| 14 | +AppId={{821CBF9D-8984-4F58-84B9-320941EF31CB} |
| 15 | +AppName={#MyAppName} |
| 16 | +AppVersion={#MyAppVersion} |
| 17 | +;AppVerName={#MyAppName} {#MyAppVersion} |
| 18 | +AppPublisher={#MyAppPublisher} |
| 19 | +AppPublisherURL={#MyAppURL} |
| 20 | +AppSupportURL={#MyAppURL} |
| 21 | +AppUpdatesURL={#MyAppURL} |
| 22 | +DefaultDirName={autopf}\{#MyAppName} |
| 23 | +UninstallDisplayIcon={app}\{#MyAppExeName} |
| 24 | +; "ArchitecturesAllowed=x64compatible" 指定 |
| 25 | +; 安装程序只能在 x64 和 Windows 11 on Arm 上运行。 |
| 26 | +ArchitecturesAllowed=x64compatible |
| 27 | +; "ArchitecturesInstallIn64BitMode=x64compatible" 要求 |
| 28 | +; 在 X64 或 Windows 11 on Arm 上以 "64-位模式" 进行安装, |
| 29 | +; 这意味着它应该使用本地 64 位 Program Files 目录 |
| 30 | +; 和注册表的 64 位视图。 |
| 31 | +ArchitecturesInstallIn64BitMode=x64compatible |
| 32 | +DefaultGroupName={#MyAppName} |
| 33 | +AllowNoIcons=yes |
| 34 | +; 取消注释以下行以在非管理安装模式下运行 (仅为当前用户安装)。 |
| 35 | +;PrivilegesRequired=lowest |
| 36 | +PrivilegesRequiredOverridesAllowed=dialog |
| 37 | +OutputDir=build |
| 38 | +OutputBaseFilename=SecRandom setup x64 |
| 39 | +SetupIconFile=resources\secrandom-icon-paper.ico |
| 40 | +SolidCompression=yes |
| 41 | +WizardStyle=modern dynamic windows11 |
| 42 | + |
| 43 | +[Languages] |
| 44 | +Name: "chinesesimp"; MessagesFile: "compiler:Default.isl" |
| 45 | + |
| 46 | +[Tasks] |
| 47 | +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked |
| 48 | + |
| 49 | +[Files] |
| 50 | +Source: "dist\SecRandom\SecRandom.exe"; DestDir: "{app}"; Flags: ignoreversion |
| 51 | +Source: "dist\SecRandom\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 52 | +; 注意:不要在任何共享系统文件上使用 "Flags: ignoreversion" |
| 53 | + |
| 54 | +[Icons] |
| 55 | +Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" |
| 56 | +Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}" |
| 57 | +Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" |
| 58 | +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon |
| 59 | + |
| 60 | +[Run] |
| 61 | +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent |
| 62 | + |
0 commit comments