|
| 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 "DiffScope" |
| 5 | +#define MyAppVersion "0.0.1.0" |
| 6 | +#define MyAppPublisher "Team OpenVPI" |
| 7 | +#define MyAppURL "https://www.example.com/" |
| 8 | + |
| 9 | +#define MyAppExeName "bin\DiffScope.exe" |
| 10 | + |
| 11 | +#define MyAppProjectAssocName MyAppName + " Project File" |
| 12 | +#define MyAppProjectAssocExt ".dspx" |
| 13 | +#define MyAppProjectAssocKey StringChange(MyAppProjectAssocName, " ", "") + MyAppProjectAssocExt |
| 14 | + |
| 15 | +#define MyAppSoundBankAssocName MyAppName + " Sound Bank" |
| 16 | +#define MyAppSoundBankAssocExt ".aaa" |
| 17 | +#define MyAppSoundBankAssocKey StringChange(MyAppProjectAssocName, " ", "") + MyAppProjectAssocExt |
| 18 | + |
| 19 | +#define MyAppInstalledDir "C:\Users\Crs_1\diffscope\cmake-build-release\installed" |
| 20 | + |
| 21 | +#define MyAppBridgeArtefactsDir "C:\Users\Crs_1\diffscope-bridge\cmake-build-release\DiffScopeBridge_artefacts\Release" |
| 22 | + |
| 23 | +[Setup] |
| 24 | +; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. |
| 25 | +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) |
| 26 | +AppId={{E777B852-937C-42A1-930F-C1CD1FF5C07E} |
| 27 | +AppName={#MyAppName} |
| 28 | +AppVersion={#MyAppVersion} |
| 29 | +;AppVerName={#MyAppName} {#MyAppVersion} |
| 30 | +AppPublisher={#MyAppPublisher} |
| 31 | +AppPublisherURL={#MyAppURL} |
| 32 | +AppSupportURL={#MyAppURL} |
| 33 | +AppUpdatesURL={#MyAppURL} |
| 34 | +DefaultDirName={autopf}\OpenVPI\{#MyAppName} |
| 35 | +ChangesAssociations=yes |
| 36 | +DisableProgramGroupPage=yes |
| 37 | +LicenseFile={#MyAppInstalledDir}\share\doc\DiffScope\license-en.txt |
| 38 | +; Uncomment the following line to run in non administrative install mode (install for current user only.) |
| 39 | +;PrivilegesRequired=lowest |
| 40 | +PrivilegesRequiredOverridesAllowed=dialog |
| 41 | +OutputBaseFilename=diffscope_setup |
| 42 | +Compression=lzma |
| 43 | +SolidCompression=yes |
| 44 | +WizardStyle=modern |
| 45 | +ArchitecturesInstallIn64BitMode=x64 |
| 46 | + |
| 47 | +[Languages] |
| 48 | +Name: "english"; MessagesFile: "compiler:Default.isl" |
| 49 | +Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl" |
| 50 | + |
| 51 | +[Tasks] |
| 52 | +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked |
| 53 | + |
| 54 | +[Code] |
| 55 | +function FullInstallationMessage(Param: String): String; begin Result := SetupMessage(msgFullInstallation); end; |
| 56 | +function CompactInstallationMessage(Param: String): String; begin Result := SetupMessage(msgCompactInstallation); end; |
| 57 | +function CustomInstallationMessage(Param: String): String; begin Result := SetupMessage(msgCustomInstallation); end; |
| 58 | +
|
| 59 | +[Types] |
| 60 | +Name: "full"; Description: "{code:FullInstallationMessage}" |
| 61 | +Name: "compact"; Description: "{code:CompactInstallationMessage}" |
| 62 | +Name: "custom"; Description: "{code:CustomInstallationMessage}"; Flags: iscustom |
| 63 | + |
| 64 | +[Components] |
| 65 | +Name: "program"; Description: "{#MyAppName}"; Types: full compact custom; Flags: fixed |
| 66 | +Name: "vst"; Description: "{#MyAppName} Bridge (VST3)"; Types: full |
| 67 | +Name: "lv2"; Description: "{#MyAppName} Bridge (LV2)"; Types: full |
| 68 | + |
| 69 | +[Files] |
| 70 | +Source: "{#MyAppInstalledDir}\*"; DestDir: "{app}"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs |
| 71 | +Source: "{#MyAppBridgeArtefactsDir}\VST3\*.vst3"; DestDir: "{autocf}\VST3"; Components: vst; Flags: ignoreversion recursesubdirs createallsubdirs |
| 72 | +Source: "{#MyAppBridgeArtefactsDir}\LV2\*.lv2"; DestDir: "{autocf}\LV2"; Components: lv2; Flags: ignoreversion recursesubdirs createallsubdirs |
| 73 | + |
| 74 | +; NOTE: Don't use "Flags: ignoreversion" on any shared system files |
| 75 | + |
| 76 | +[Registry] |
| 77 | +Root: HKA; Subkey: "Software\Classes\{#MyAppProjectAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppProjectAssocKey}"; ValueData: ""; Flags: uninsdeletevalue |
| 78 | +Root: HKA; Subkey: "Software\Classes\{#MyAppProjectAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppProjectAssocName}"; Flags: uninsdeletekey |
| 79 | +Root: HKA; Subkey: "Software\Classes\{#MyAppProjectAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},1" |
| 80 | +Root: HKA; Subkey: "Software\Classes\{#MyAppProjectAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" |
| 81 | +Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: "{#MyAppProjectAssocExt}"; ValueData: "" |
| 82 | + |
| 83 | +Root: HKA; Subkey: "Software\Classes\{#MyAppSoundBankAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppSoundBankAssocKey}"; ValueData: ""; Flags: uninsdeletevalue |
| 84 | +Root: HKA; Subkey: "Software\Classes\{#MyAppSoundBankAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppSoundBankAssocName}"; Flags: uninsdeletekey |
| 85 | +Root: HKA; Subkey: "Software\Classes\{#MyAppSoundBankAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},2" |
| 86 | +Root: HKA; Subkey: "Software\Classes\{#MyAppSoundBankAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" |
| 87 | +Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: "{#MyAppSoundBankAssocExt}"; ValueData: "" |
| 88 | + |
| 89 | +[Icons] |
| 90 | +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" |
| 91 | +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon |
| 92 | + |
| 93 | +[Run] |
| 94 | +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent |
| 95 | + |
0 commit comments