; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "repertory" #define MyAppVersion "@PROJECT_MAJOR_VERSION@.@PROJECT_MINOR_VERSION@.@PROJECT_REVISION_VERSION@-@PROJECT_RELEASE_ITER@_@PROJECT_GIT_REV@" #define MyAppPublisher "BlockStorage" #define MyAppURL "https://git.fifthgrid.com/BlockStorage/repertory" #define MyAppExeName "repertory.exe" [Setup] ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) AppId={{BD165823-1DEF-4D23-87DC-3D7A9BB73A00} AppName={#MyAppName} AppVersion={#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={autopf}\{#MyAppName} UninstallDisplayIcon={app}\{#MyAppExeName} ArchitecturesAllowed=x64compatible ArchitecturesInstallIn64BitMode=x64compatible DefaultGroupName={#MyAppName} DisableProgramGroupPage=yes LicenseFile=repertory\LICENSE.md OutputBaseFilename=repertory_{#MyAppVersion}_windows_@PROJECT_MARCH@_setup SolidCompression=yes WizardStyle=modern [code] function CheckAddPath(Param: string): boolean; var CurPath: string; begin if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'Path', CurPath) then begin Result := True; exit; end; Result := Pos(';' + Param + ';', ';' + CurPath + ';') = 0; end; [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Components] Name: "main"; Description: "Repertory Core"; Types: full compact custom; Flags: fixed Name: "winfsp"; Description: "WinFSP v@WINFSP_VERSION@"; Types: full custom [Files] Source: "repertory\*.*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: main Source: "3rd_party\winfsp-@WINFSP_VERSION@.msi"; DestDir: "{app}"; Flags: ignoreversion; Components: winfsp [Icons] Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Parameters: "-ui --hidden" Name: "{commonstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Parameters: "-ui --no-auto-open --hidden" [Run] Filename: "msiexec.exe"; WorkingDir: "{app}"; Parameters: "/a winfsp-@WINFSP_VERSION@.msi /norestart"; \ Flags: 64bit waituntilterminated; Components: winfsp [Registry] Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \ ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app};"; \ Check: CheckAddPath('{app}')