|
| 1 | +; Cabbage Installer Script, Copyright Rory Walsh 2017. |
| 2 | + |
| 3 | +;swap this with plugin name |
| 4 | +#define MyAppName "Csound Plugins" |
| 5 | +#define Manufacturer "Csound" |
| 6 | +#define OPVERSION "1.0" |
| 7 | + |
| 8 | +[Setup] |
| 9 | +; NOTE: The value of AppId uniquely identifies this application. |
| 10 | +; Do not use the same AppId value in installers for other applications. |
| 11 | +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) |
| 12 | +AppId={{0E50FA48-4C41-4D27-A742-C77D1A3A3905} |
| 13 | +AppName={#MyAppName} |
| 14 | +AppVersion={#OPVERSION} |
| 15 | +DefaultDirName={localappdata}\csound\6.0\plugins64 |
| 16 | +DisableDirPage=no |
| 17 | +DisableProgramGroupPage=yes |
| 18 | +UsePreviousAppDir=no |
| 19 | + |
| 20 | +;if you want to add a license.. |
| 21 | +;LicenseFile= "../LICENSE" |
| 22 | + |
| 23 | +;swap this with plugin name |
| 24 | +OutputBaseFilename=Csound6-Plugins-Windows_x86_64-{#OPVERSION} |
| 25 | + |
| 26 | +;to add install icon |
| 27 | +;SetupIconFile=icon.ico |
| 28 | +Compression=lzma |
| 29 | +SolidCompression=yes |
| 30 | +ChangesEnvironment=yes |
| 31 | + |
| 32 | + |
| 33 | +[Components] |
| 34 | +Name: "core"; Description: "Install all plugins"; Types: full custom; Flags: fixed |
| 35 | + |
| 36 | +[Languages] |
| 37 | +Name: "english"; MessagesFile: "compiler:Default.isl" |
| 38 | +Name: "french"; MessagesFile: "compiler:Languages\French.isl" |
| 39 | +Name: "german"; MessagesFile: "compiler:Languages\German.isl" |
| 40 | +Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl" |
| 41 | + |
| 42 | +; add files - dlls go standard location, or one of the users choosing, csd and other reousrce go to program data |
| 43 | +[Files] |
| 44 | +Source: "../../build\AbletonLinkOpcodes\Release\ableton_link_opcodes.dll"; DestDir: "{app}\plugins64\"; Flags: ignoreversion; Components: core; Permissions: users-full; |
| 45 | +Source: "../../build\chua\Release\chua.dll"; DestDir: "{app}\plugins64\"; Flags: ignoreversion; Components: core; Permissions: users-full; |
| 46 | +Source: "../../build\faustcsound\Release\faustcsound.dll"; DestDir: "{app}\plugins64\"; Flags: ignoreversion; Components: core; Permissions: users-full; |
| 47 | +Source: "../../build\image\Release\image.dll"; DestDir: "{app}\plugins64\"; Flags: ignoreversion; Components: core; Permissions: users-full; |
| 48 | +Source: "../../build\py\Release\py.dll"; DestDir: "{app}\plugins64"; Flags: ignoreversion; Components: core; Permissions: users-full; |
| 49 | +Source: "../../build\widgets\Release\widgets.dll"; DestDir: "{app}\plugins64\"; Flags: ignoreversion; Components: core; Permissions: users-full; |
| 50 | +Source: "C:\Program Files\Faust\lib\faust.dll"; DestDir: "{autopf64}\Csound6_x64\bin\"; Flags: ignoreversion; Components: core; Permissions: users-full; |
| 51 | + |
| 52 | + |
| 53 | +[Tasks] |
| 54 | +;Name: modifypath; Description: &Add application directory to your PATH environment variable (recommended); |
| 55 | + |
| 56 | +[Code] |
| 57 | +var |
| 58 | + NewPage: TWizardPage; |
| 59 | +
|
| 60 | +const |
| 61 | + installerMessage = |
| 62 | +'This installer will install the Python, Faust, Image, Chua, FLTK and Ableton Link ' + #13#10 + |
| 63 | +'plugin opcodes for Csound.' + #13#10 + #13#10 + |
| 64 | +'Opcodes will be installed to C:\Users\<name>\AppData\Local\csound\6.0\plugins64' + #13#10 + |
| 65 | +'' + #13#10 + |
| 66 | +'Csound should detect and load these plugins whenever it runs. The Faust library will' + #13#10 + |
| 67 | +'be installed to C:/Program Files/Csound_x64/bin. If you do not have Csound installed' + #13#10 + |
| 68 | +'at this location, please move the faust.dll file after installation'; |
| 69 | +
|
| 70 | +
|
| 71 | +procedure InitializeWizard(); |
| 72 | +var |
| 73 | + DescLabel: TNewStaticText ; |
| 74 | +begin |
| 75 | + NewPage := CreateCustomPage(wpWelcome, 'Csound Plugins Installer', |
| 76 | + '') |
| 77 | + DescLabel := TNewStaticText .Create(NewPage); |
| 78 | + DescLabel.AutoSize := True |
| 79 | + DescLabel.Width := NewPage.SurfaceWidth; |
| 80 | + DescLabel.WordWrap := True |
| 81 | + DescLabel.Parent := NewPage.Surface; |
| 82 | + DescLabel.Caption := installerMessage; |
| 83 | +end; |
| 84 | +
|
0 commit comments