From: Jussi Koskela Date: Tue, 11 Sep 2018 06:59:53 +0000 (+0300) Subject: Installer script for Inno Setup X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F2157%2F2;p=simantics%2Fsysdyn.git Installer script for Inno Setup TODO: configure the source and output dirs properly. gitlab #30 Change-Id: I2787ca5200aec36199b459eab865d14bc1bf9bac --- diff --git a/releng/inno-setup/README.md b/releng/inno-setup/README.md new file mode 100644 index 00000000..f0acfd78 --- /dev/null +++ b/releng/inno-setup/README.md @@ -0,0 +1,11 @@ +Use Innosetup Unicode. + +To perform a setup compilation from the command line, run: + + iscc.exe sysdyn.iss + +Source and output-directories must be adjusted to fit the build, i.e. based +on where the sysdyn build is located and where the installer shall be generated: + + OutputDir=output + Source: "sysdyn/*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs diff --git a/releng/inno-setup/sysdyn.bmp b/releng/inno-setup/sysdyn.bmp new file mode 100644 index 00000000..77172f94 Binary files /dev/null and b/releng/inno-setup/sysdyn.bmp differ diff --git a/releng/inno-setup/sysdyn.iss b/releng/inno-setup/sysdyn.iss new file mode 100644 index 00000000..bba5a8fa --- /dev/null +++ b/releng/inno-setup/sysdyn.iss @@ -0,0 +1,37 @@ +; Sysdyn setup script for Inno Setup Compiler 5.6.1 (u) + +[Setup] +AppName=Simantics System Dynamics +AppVersion=1.35.0 +DefaultDirName={sd}\Sysdyn-1.35.0 +DefaultGroupName=Simantics +Compression=lzma2 +SolidCompression=yes +OutputBaseFilename=Sysdyn-1.35.0 +AppCopyright=Copyright © 2018 Simantics Team +DisableDirPage=no +WizardSmallImageFile=sysdyn.bmp +OutputDir=output + +[Files] +Source: "sysdyn/*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs + +[Icons] +Name: "{group}\Simantics System Dynamics"; Filename: "{app}\Simantics Desktop.exe" + +[Messages] +SelectDirBrowseLabel=To continue, click Next. If you would like to select a different folder, click Browse.%nThe target path may not contain space characters or be longer than 45 characters. + +[Code] +function NextButtonClick(CurPageID: Integer): Boolean; +begin + Result := True; + if (CurPageID = wpSelectDir) then + begin + if ((Pos(' ', WizardDirValue) > 0) or (Length(WizardDirValue) > 45)) then + begin + Result := False; + MsgBox('The target installation path may not contain space characters or be longer than 45 characters.', mbError, MB_OK); + end; + end; +end; \ No newline at end of file