new installer 3.26.0
authorKilian Saffran <ksaffran@dks.lu>
Mon, 8 Oct 2018 15:28:48 +0000 (17:28 +0200)
committerKilian Saffran <ksaffran@dks.lu>
Mon, 8 Oct 2018 15:28:48 +0000 (17:28 +0200)
install/windows/creorga_setup.iss [new file with mode: 0644]

diff --git a/install/windows/creorga_setup.iss b/install/windows/creorga_setup.iss
new file mode 100644 (file)
index 0000000..3db1b31
--- /dev/null
@@ -0,0 +1,128 @@
+; Script generated by the Inno Setup Script Wizard.
+; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
+
+#define MyAppName "Creorga"
+#define MyAppPublisher "DKS s.à r.l."
+#define MyAppURL "http://www.dks.lu/creorga/"
+#define MyAppExeName "Creorga.exe"
+
+;#define VCmsg "Installation de Microsoft Visual C++ Redistributable...."
+
+[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={{31A01E9B-0999-4A24-8C69-B10F526961C7}
+AppName={#MyAppName} Director
+AppVersion={#MyAppVersion}
+;AppVerName={#MyAppName} {#MyAppVersion}
+AppPublisher={#MyAppPublisher}
+AppPublisherURL={#MyAppURL}
+AppSupportURL={#MyAppURL}
+AppUpdatesURL={#MyAppURL}
+DefaultDirName={pf}\{#MyAppName}
+DisableDirPage=yes
+DefaultGroupName={#MyAppName}
+LicenseFile=C:\Users\ksaff\Release\tag\License.txt
+OutputDir=C:\Users\ksaff\Release
+OutputBaseFilename=Setup_{#MyAppName}_{#MyAppVersion}
+SetupIconFile=C:\Users\ksaff\Release\tag\app_v3\chrome\icons\default\winmain.ico
+Compression=lzma
+SolidCompression=yes
+WizardImageFile=wizcreorga.bmp
+WizardSmallImageFile=wizcreorgasmall.bmp
+
+;CloseApplications=force
+
+[Languages]
+Name: "french"; MessagesFile: "compiler:Languages\French.isl"
+
+[Types]
+Name: "tdirector"; Description: "Director - (Tous les accès)"
+Name: "tlocalmanager"; Description: "Local Manager - (Version pour un gérant de crèches)"
+Name: "tstaff"; Description: "Staff - (Version pour le staff)";
+
+[Components] 
+Name: "cdirector" ; Description: "Component - Director" ; Types: tdirector
+Name: "clocalmanager"; Description: "Component - Local Manager" ; Types: tlocalmanager
+Name: "cstaff"; Description: "Component - Staff"; Types: tstaff
+
+[Tasks]
+Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
+
+[Dirs]
+Name: "{app}"; Permissions: users-modify
+Name: "{app}\Tools"; Permissions: users-modify
+Name: "{app}\defaults"; Permissions: users-modify
+[Files]
+Source: "C:\Users\ksaff\Release\dist\Creorga.exe"; DestDir: "{app}"; Flags: overwritereadonly ignoreversion ; Components: cdirector clocalmanager cstaff
+;Source: "C:\Users\ksaff\Release\dist\Tools\*"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Types: Director LocalManager Staff;
+Source: "C:\Users\ksaff\Release\dist\Tools\ovpn.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector clocalmanager cstaff
+Source: "C:\Users\ksaff\Release\dist\Tools\creorgadb.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector
+Source: "C:\Users\ksaff\Release\dist\Tools\pdfextract.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector
+Source: "C:\Users\ksaff\Release\dist\Tools\pdftotext.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector
+Source: "C:\Users\ksaff\Release\dist\xulrunner\*"; DestDir: "{app}\xulrunner"; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector clocalmanager cstaff
+Source: "C:\Users\ksaff\Release\dist\director\application.ini"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cdirector 
+Source: "C:\Users\ksaff\Release\dist\director\chrome.manifest"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cdirector 
+Source: "C:\Users\ksaff\Release\dist\director\creorga.jar"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cdirector
+
+Source: "C:\Users\ksaff\Release\dist\localmanager\application.ini"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: clocalmanager 
+Source: "C:\Users\ksaff\Release\dist\localmanager\chrome.manifest"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: clocalmanager 
+Source: "C:\Users\ksaff\Release\dist\localmanager\creorga.jar"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: clocalmanager
+
+Source: "C:\Users\ksaff\Release\dist\staff\application.ini"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cstaff
+Source: "C:\Users\ksaff\Release\dist\staff\chrome.manifest"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cstaff
+Source: "C:\Users\ksaff\Release\dist\staff\creorga.jar"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cstaff
+
+Source: "C:\Users\ksaff\Release\dist\defaults\*"; DestDir: "{app}\defaults"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector clocalmanager cstaff
+;Source: "C:\Users\ksaff\Release\dist\checkschema.txt"; DestDir: "{userappdata}\Creorga\Profiles"; Flags: overwritereadonly ignoreversion 
+;Source: "C:\Users\ksaff\Release\dist\vcredist_x86.exe"; DestDir: "{app}\Tools"; Flags: overwritereadonly ignoreversion
+; NOTE: Don't use "Flags: ignoreversion" on any shared system files
+
+
+[Icons]
+Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
+Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
+Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
+Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
+
+[Run]
+;Filename: "{app}\Tools\vcredist_x86.exe"; Parameters:"/q /passive /verysilent /norestart /q:a /c:""msiexec /i vcredist.msi /qn""" ;Check: VCRedistNeedsInstall; WorkingDir: {app}\Tools; StatusMsg: Installation Microsoft Visual C++ Redistributable ...;
+;Filename: {tmp}\vcredist_x86.exe; Parameters: "/q /passive /Q:a /c:""msiexec /q /i vcredist.msi"" "; 
+;Filename: "{app}\bin\vcredist_x86.exe"; Parameters: "/q /norestart /q:a /c:""VCREDI~3.EXE /q:a /c:""""msiexec /i vcredist.msi /qn"""" """; Check: VCRedistNeedsInstall; WorkingDir: {app}\bin;
+Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
+
+;[Code]
+;#IFDEF UNICODE
+;  #DEFINE AW "W"
+;#ELSE
+;  #DEFINE AW "A"
+;#ENDIF
+;type
+;    INSTALLSTATE = Longint;
+;const
+;    INSTALLSTATE_INVALIDARG = -2;  // An invalid parameter was passed to the function.
+;    INSTALLSTATE_UNKNOWN = -1;     // The product is neither advertised or installed.
+;    INSTALLSTATE_ADVERTISED = 1;   // The product is advertised but not installed.
+;    INSTALLSTATE_ABSENT = 2;       // The product is installed for a different user.
+;    INSTALLSTATE_DEFAULT = 5;      // The product is installed for the current user.
+
+;// Visual C++ 2015 Redistributable 14.0.23026
+;  VC_2015_REDIST_X86_MIN = '{A2563E55-3BEC-3828-8D67-E5E8B9E8B675}';
+;  VC_2015_REDIST_X64_MIN = '{0D3E9E15-DE7A-300B-96F1-B4AF12B96488}';
+
+;  VC_2015_REDIST_X86_ADD = '{BE960C1C-7BAD-3DE6-8B1A-2616FE532845}';
+;  VC_2015_REDIST_X64_ADD = '{BC958BD2-5DAC-3862-BB1A-C1BE0790438D}';
+
+;function MsiQueryProductState(szProduct: string): INSTALLSTATE;
+;    external 'MsiQueryProductState{#AW}@msi.dll stdcall';
+
+;function VCVersionInstalled(const ProductID: string): Boolean;
+;begin
+;    Result := MsiQueryProductState(ProductID) = INSTALLSTATE_DEFAULT;
+;end;
+
+;function VCRedistNeedsInstall: Boolean;
+;begin
+;    Result := not (VCVersionInstalled(VC_2015_REDIST_X86_MIN) or VCVersionInstalled(VC_2015_REDIST_X86_ADD));
+;end;