|
| 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 "SubGPT" |
| 5 | +#define MyAppVersion "1.1.0" |
| 6 | +#define MyAppExeName "SubGPT.exe" |
| 7 | +#define MyAppAssocName MyAppName + " File" |
| 8 | +#define MyAppAssocExt ".myp" |
| 9 | +#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt |
| 10 | + |
| 11 | +[Setup] |
| 12 | +; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. |
| 13 | +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) |
| 14 | +AppId={{6E5540FA-FE20-43AD-A6D2-CF10E19A0FB3} |
| 15 | +AppName={#MyAppName} |
| 16 | +AppVersion={#MyAppVersion} |
| 17 | +AppVerName={#MyAppName} {#MyAppVersion} |
| 18 | +DefaultDirName={autopf}\{#MyAppName} |
| 19 | + |
| 20 | +; Specifies that Setup cannot run on anything but x64 and Windows 11 on Arm. |
| 21 | +ArchitecturesAllowed=x64compatible |
| 22 | + |
| 23 | +; Requests that the install be done in "64-bit mode" on x64 or Windows 11 on Arm, |
| 24 | +; meaning it should use the native 64-bit Program Files directory and |
| 25 | +; the 64-bit view of the registry. |
| 26 | +ArchitecturesInstallIn64BitMode=x64compatible |
| 27 | + |
| 28 | +ChangesAssociations=yes |
| 29 | +DisableProgramGroupPage=yes |
| 30 | +OutputBaseFilename=mysetup |
| 31 | +Compression=lzma |
| 32 | +SolidCompression=yes |
| 33 | +WizardStyle=modern |
| 34 | + |
| 35 | +; Run in non administrative install mode (install for current user only.) |
| 36 | +PrivilegesRequired=lowest |
| 37 | + |
| 38 | +SetupIconFile="C:\Users\Ali\Desktop\SubGPT\images\images\title_bar_icon_original.ico" |
| 39 | + |
| 40 | +; Used to display version in installer properties |
| 41 | +VersionInfoVersion={#MyAppVersion} |
| 42 | +UninstallDisplayIcon="C:\Users\Ali\Desktop\SubGPT\images\images\title_bar_icon_original.ico" |
| 43 | +AppPublisher=aalramadan |
| 44 | + |
| 45 | + |
| 46 | +[Languages] |
| 47 | +Name: "english"; MessagesFile: "compiler:Default.isl" |
| 48 | + |
| 49 | +[Tasks] |
| 50 | +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked |
| 51 | + |
| 52 | +[Files] |
| 53 | +Source: "C:\Users\Ali\Desktop\SubGPT\dist\main\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion |
| 54 | +Source: "C:\Users\Ali\Desktop\SubGPT\dist\main\_internal\*"; DestDir: "{app}\_internal"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 55 | +; NOTE: Don't use "Flags: ignoreversion" on any shared system files |
| 56 | + |
| 57 | +[Registry] |
| 58 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue |
| 59 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey |
| 60 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" |
| 61 | +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" |
| 62 | +Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: "" |
| 63 | + |
| 64 | +[Icons] |
| 65 | +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" |
| 66 | +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon |
| 67 | + |
| 68 | +[Run] |
| 69 | +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent runasoriginaluser |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
0 commit comments