]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Installer script for Inno Setup 57/2157/2
authorJussi Koskela <jussi.koskela@semantum.fi>
Tue, 11 Sep 2018 06:59:53 +0000 (09:59 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 11 Sep 2018 07:33:18 +0000 (07:33 +0000)
TODO: configure the source and output dirs properly.

gitlab #30

Change-Id: I2787ca5200aec36199b459eab865d14bc1bf9bac

releng/inno-setup/README.md [new file with mode: 0644]
releng/inno-setup/sysdyn.bmp [new file with mode: 0644]
releng/inno-setup/sysdyn.iss [new file with mode: 0644]

diff --git a/releng/inno-setup/README.md b/releng/inno-setup/README.md
new file mode 100644 (file)
index 0000000..f0acfd7
--- /dev/null
@@ -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 (file)
index 0000000..77172f9
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 (file)
index 0000000..bba5a8f
--- /dev/null
@@ -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