|
| 1 | +; Script generated by the Inno Setup Script Wizard. |
| 2 | +; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! |
| 3 | + |
| 4 | +#define MyAppName "三种操作系统简单模拟" |
| 5 | +#define MyAppVersion "1.0.1" |
| 6 | +#define MyAppPublisher "My Company, Inc." |
| 7 | +#define MyAppURL "https://www.example.com/" |
| 8 | +#define MyAppExeName "三种操作系统简单模拟.exe" |
| 9 | +#define MyJreName "jre" |
| 10 | +#define MyAppAssocName MyAppName + " File" |
| 11 | +#define MyAppAssocExt ".myp" |
| 12 | +#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt |
| 13 | + |
| 14 | +[Setup] |
| 15 | +; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. |
| 16 | +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) |
| 17 | +AppId={{AA5EB7CD-50A6-476E-B570-B1128B2603A8} |
| 18 | +AppName={#MyAppName} |
| 19 | +AppVersion={#MyAppVersion} |
| 20 | +;AppVerName={#MyAppName} {#MyAppVersion} |
| 21 | +AppPublisher={#MyAppPublisher} |
| 22 | +AppPublisherURL={#MyAppURL} |
| 23 | +AppSupportURL={#MyAppURL} |
| 24 | +AppUpdatesURL={#MyAppURL} |
| 25 | +DefaultDirName={autopf}\{#MyAppName} |
| 26 | +ChangesAssociations=yes |
| 27 | +DisableProgramGroupPage=yes |
| 28 | +; Uncomment the following line to run in non administrative install mode (install for current user only.) |
| 29 | +;PrivilegesRequired=lowest |
| 30 | +OutputDir=C:\Users\Deepcity\OneDrive\jxust\SchoolCourse\ComputerSystemCW |
| 31 | +OutputBaseFilename=三种操作系统简单模拟 |
| 32 | +Compression=lzma |
| 33 | +SolidCompression=yes |
| 34 | +WizardStyle=modern |
| 35 | + |
| 36 | +[Languages] |
| 37 | +Name: "english"; MessagesFile: "compiler:Default.isl" |
| 38 | + |
| 39 | +[Tasks] |
| 40 | +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked |
| 41 | + |
| 42 | +[Files] |
| 43 | +Source: "C:\Users\Deepcity\OneDrive\jxust\SchoolCourse\ComputerSystemCW\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion |
| 44 | +Source: "C:\Program Files\Java\jre-1.8\*"; DestDir: "{app}\{#MyJreName}"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 45 | +; NOTE: Don't use "Flags: ignoreversion" on any shared system files |
| 46 | + |
| 47 | +[Registry] |
| 48 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue |
| 49 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey |
| 50 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" |
| 51 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" |
| 52 | +Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: "" |
| 53 | + |
| 54 | +[Icons] |
| 55 | +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" |
| 56 | +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon |
| 57 | + |
| 58 | +[Run] |
| 59 | +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent |
| 60 | + |
0 commit comments