Initial plugin version
This commit is contained in:
98
NeuralSynth.iss
Normal file
98
NeuralSynth.iss
Normal file
@@ -0,0 +1,98 @@
|
||||
[Setup]
|
||||
AppName=NeuralSynth
|
||||
AppVersion=1.0.0
|
||||
DefaultDirName={pf}\NeuralSynth
|
||||
DefaultGroupName=NeuralSynth
|
||||
Compression=lzma2
|
||||
SolidCompression=yes
|
||||
OutputDir=.\
|
||||
ArchitecturesInstallIn64BitMode=x64
|
||||
OutputBaseFilename=NeuralSynth Installer
|
||||
;LicenseFile=license.rtf
|
||||
SetupLogging=yes
|
||||
|
||||
[Types]
|
||||
Name: "full"; Description: "Full installation"
|
||||
Name: "custom"; Description: "Custom installation"; Flags: iscustom
|
||||
|
||||
[Components]
|
||||
Name: "app"; Description: "Standalone application (.exe)"; Types: full custom;
|
||||
;Name: "vst2_32"; Description: "32-bit VST2 Plugin (.dll)"; Types: full custom;
|
||||
;Name: "vst2_64"; Description: "64-bit VST2 Plugin (.dll)"; Types: full custom; Check: Is64BitInstallMode;
|
||||
;Name: "vst3_32"; Description: "32-bit VST3 Plugin (.vst3)"; Types: full custom;
|
||||
Name: "vst3_64"; Description: "64-bit VST3 Plugin (.vst3)"; Types: full custom; Check: Is64BitInstallMode;
|
||||
;Name: "rtas_32"; Description: "32-bit RTAS Plugin (.dpm)"; Types: full custom;
|
||||
;Name: "aax_32"; Description: "32-bit AAX Plugin (.aaxplugin)"; Types: full custom;
|
||||
;Name: "aax_64"; Description: "64-bit AAX Plugin (.aaxplugin)"; Types: full custom; Check: Is64BitInstallMode;
|
||||
;Name: "manual"; Description: "User guide"; Types: full custom; Flags: fixed
|
||||
|
||||
[Files]
|
||||
;Source: "..\build-win\app\Win32\bin\NeuralSynth.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Components:app; Flags: ignoreversion;
|
||||
Source: "Builds\VisualStudio2022\x64\Release\Standalone Plugin\NeuralSynth.exe"; DestDir: "{app}"; Check: Is64BitInstallMode; Components:app; Flags: ignoreversion;
|
||||
|
||||
;Source: "..\build-win\vst2\Win32\bin\NeuralSynth.dll"; DestDir: {code:GetVST2Dir_32}; Check: not Is64BitInstallMode; Components:vst2_32; Flags: ignoreversion;
|
||||
;Source: "..\build-win\vst2\Win32\bin\NeuralSynth.dll"; DestDir: {code:GetVST2Dir_32}; Check: Is64BitInstallMode; Components:vst2_32; Flags: ignoreversion;
|
||||
;Source: "..\build-win\vst2\x64\bin\NeuralSynth.dll"; DestDir: {code:GetVST2Dir_64}; Check: Is64BitInstallMode; Components:vst2_64; Flags: ignoreversion;
|
||||
|
||||
;Source: "..\build-win\vst3\Win32\bin\NeuralSynth.vst3"; DestDir: "{cf}\VST3\"; Check: not Is64BitInstallMode; Components:vst3_32; Flags: ignoreversion;
|
||||
;Source: "..\build-win\vst3\Win32\bin\NeuralSynth.vst3"; DestDir: "{cf32}\VST3\"; Check: Is64BitInstallMode; Components:vst3_32; Flags: ignoreversion;
|
||||
Source: "Builds\VisualStudio2022\x64\Release\VST3\NeuralSynth.vst3\Contents\x86_64-win\NeuralSynth.vst3"; DestDir: "{cf64}\VST3\"; Check: Is64BitInstallMode; Components:vst3_64; Flags: ignoreversion;
|
||||
|
||||
;Source: "..\build-win\rtas\bin\NeuralSynth.dpm"; DestDir: "{cf32}\Digidesign\DAE\Plug-Ins\"; Components:rtas_32; Flags: ignoreversion;
|
||||
;Source: "..\build-win\rtas\bin\NeuralSynth.dpm.rsr"; DestDir: "{cf32}\Digidesign\DAE\Plug-Ins\"; Components:rtas_32; Flags: ignoreversion;
|
||||
|
||||
;Source: "..\build-win\aax\bin\NeuralSynth.aaxplugin\*.*"; DestDir: "{cf32}\Avid\Audio\Plug-Ins\NeuralSynth.aaxplugin\"; Components:aax_32; Flags: ignoreversion recursesubdirs;
|
||||
;Source: "..\build-win\aax\bin\NeuralSynth.aaxplugin\*.*"; DestDir: "{cf}\Avid\Audio\Plug-Ins\NeuralSynth.aaxplugin\"; Components:aax_64; Flags: ignoreversion recursesubdirs;
|
||||
|
||||
;Source: "..\manual\NeuralSynth_manual.pdf"; DestDir: "{app}"
|
||||
;Source: "changelog.txt"; DestDir: "{app}"
|
||||
;Source: "readmewin.rtf"; DestDir: "{app}"; DestName: "readme.rtf"; Flags: isreadme
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\NeuralSynth"; Filename: "{app}\NeuralSynth.exe"
|
||||
;Name: "{group}\User guide"; Filename: "{app}\NeuralSynth_manual.pdf"
|
||||
;Name: "{group}\Changelog"; Filename: "{app}\changelog.txt"
|
||||
;Name: "{group}\readme"; Filename: "{app}\readme.rtf"
|
||||
Name: "{group}\Uninstall NeuralSynth"; Filename: "{app}\unins000.exe"
|
||||
|
||||
;[Dirs]
|
||||
;Name: {cf}\Digidesign\DAE\Plugins\
|
||||
|
||||
[Code]
|
||||
var
|
||||
OkToCopyLog : Boolean;
|
||||
VST3DirPage_32: TInputDirWizardPage;
|
||||
VST3DirPage_64: TInputDirWizardPage;
|
||||
|
||||
procedure InitializeWizard;
|
||||
begin
|
||||
if IsWin64 then begin
|
||||
VST3DirPage_64 := CreateInputDirPage(wpSelectDir,
|
||||
'Confirm 64-Bit VST3 Plugin Directory', '',
|
||||
'Select the folder in which setup should install the 64-bit VST3 Plugin, then click Next.',
|
||||
False, '');
|
||||
VST3DirPage_64.Add('');
|
||||
VST3DirPage_64.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Common Files\VST3}\');
|
||||
end;
|
||||
end;
|
||||
|
||||
function GetVST3Dir_64(Param: String): String;
|
||||
begin
|
||||
Result := VST3DirPage_64.Values[0]
|
||||
end;
|
||||
|
||||
procedure CurStepChanged(CurStep: TSetupStep);
|
||||
begin
|
||||
if CurStep = ssDone then
|
||||
OkToCopyLog := True;
|
||||
end;
|
||||
|
||||
procedure DeinitializeSetup();
|
||||
begin
|
||||
if OkToCopyLog then
|
||||
FileCopy (ExpandConstant ('{log}'), ExpandConstant ('{app}\InstallationLogFile.log'), FALSE);
|
||||
RestartReplace (ExpandConstant ('{log}'), '');
|
||||
end;
|
||||
|
||||
[UninstallDelete]
|
||||
Type: files; Name: "{app}\InstallationLogFile.log"
|
||||
Reference in New Issue
Block a user