|
| 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 "BulkStartStop" |
| 5 | +;#define MyAppVersion "1.0.1" |
| 6 | +#define MyAppPublisher "MaxBQb" |
| 7 | +#define MyAppURL "https://github.com/MBQbUtils/BulkStartStop" |
| 8 | +#define MyAppExeName "BulkStartStop.exe" |
| 9 | +#define Style "Carbon.vsf" |
| 10 | +; Dark Theme setup: https://theroadtodelphi.com/2013/12/11/vcl-styles-for-inno-setup/ |
| 11 | + |
| 12 | +[Setup] |
| 13 | +; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. |
| 14 | +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) |
| 15 | +AppId={{A167951A-77A3-4211-9DBF-D36DA5254DBB} |
| 16 | +AppName={#MyAppName} |
| 17 | +AppVersion={#MyAppVersion} |
| 18 | +VersionInfoVersion={#MyAppVersion} |
| 19 | +;AppVerName={#MyAppName} {#MyAppVersion} |
| 20 | +AppPublisher={#MyAppPublisher} |
| 21 | +AppPublisherURL={#MyAppURL} |
| 22 | +AppSupportURL={#MyAppURL} |
| 23 | +AppUpdatesURL={#MyAppURL} |
| 24 | +DefaultDirName={autopf}\{#MyAppName} |
| 25 | +DisableProgramGroupPage=yes |
| 26 | +LicenseFile=..\LICENCE.md |
| 27 | +; Uncomment the following line to run in non administrative install mode (install for current user only.) |
| 28 | +PrivilegesRequired=admin |
| 29 | +OutputDir=. |
| 30 | +OutputBaseFilename=BulkStartStop_setup |
| 31 | +Compression=lzma |
| 32 | +SolidCompression=yes |
| 33 | +WizardImageFile=WizModernImage-IS_BW.bmp |
| 34 | +WizardSmallImageFile=WizModernSmallImage-IS_BW.bmp |
| 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: .\VclStylesinno.dll; DestDir: {app}; Flags: dontcopy |
| 44 | +Source: .\Styles\{#Style}; DestDir: {app}; Flags: dontcopy |
| 45 | +Source: "..\dist\main\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 46 | +; NOTE: Don't use "Flags: ignoreversion" on any shared system files |
| 47 | + |
| 48 | +[Code] |
| 49 | +// Import the LoadVCLStyle function from VclStylesInno.DLL |
| 50 | +procedure LoadVCLStyle(VClStyleFile: String); external 'LoadVCLStyleW@files:VclStylesInno.dll stdcall'; |
| 51 | +// Import the UnLoadVCLStyles function from VclStylesInno.DLL |
| 52 | +procedure UnLoadVCLStyles; external 'UnLoadVCLStyles@files:VclStylesInno.dll stdcall'; |
| 53 | + |
| 54 | +function InitializeSetup(): Boolean; |
| 55 | +begin |
| 56 | + ExtractTemporaryFile('{#Style}'); |
| 57 | + LoadVCLStyle(ExpandConstant('{tmp}\{#Style}')); |
| 58 | + Result := True; |
| 59 | +end; |
| 60 | + |
| 61 | +procedure DeinitializeSetup(); |
| 62 | +begin |
| 63 | + UnLoadVCLStyles; |
| 64 | +end; |
| 65 | +
|
| 66 | +[Icons] |
| 67 | +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" |
| 68 | +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon |
| 69 | + |
| 70 | +[Run] |
| 71 | +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait runascurrentuser postinstall skipifsilent |
0 commit comments