steps {
powershell '''
$ProgressPreference = "silentlyContinue"
+
wget "http://www.simantics.org/download/${Env:BRANCH}/sysdyn/products/Simantics-Sysdyn-win32.win32.x86_64.zip" -OutFile sysdyn.zip
Expand-Archive ./sysdyn.zip -DestinationPath releng/inno-setup/sysdyn
robocopy /MIR /NFL /NDL /NP C:/jenkins/jre8/win32.x86_64 releng/inno-setup/sysdyn/jre
iscc /Q releng/inno-setup/sysdyn.iss
+
+ wget "http://www.simantics.org/download/${Env:BRANCH}/sysdyn/products/Simantics-Sysdyn-OM-win32.win32.x86_64.zip" -OutFile sysdyn-om.zip
+ Expand-Archive ./sysdyn-om.zip -DestinationPath releng/inno-setup/sysdyn-om
+ robocopy /MIR /NFL /NDL /NP C:/jenkins/jre8/win32.x86_64 releng/inno-setup/sysdyn-om/jre
+ iscc /Q releng/inno-setup/sysdyn-om.iss
'''
archiveArtifacts artifacts: 'releng/inno-setup/output/*.exe', fingerprint: false
}
agent { label 'windows' }
steps {
powershell '''
- $ProgressPreference = "silentlyContinue"
- rm -Recurse releng/inno-setup/sysdyn
- rm -Recurse releng/inno-setup/output
- wget "http://www.simantics.org/download/${Env:BRANCH}/sysdyn/products/Simantics-Sysdyn-OM-win32.win32.x86_64.zip" -OutFile sysdyn-om.zip
- Expand-Archive ./sysdyn-om.zip -DestinationPath releng/inno-setup/sysdyn
- robocopy /MIR /NFL /NDL /NP C:/jenkins/jre8/win32.x86_64 releng/inno-setup/sysdyn/jre
- iscc /Q releng/inno-setup/sysdyn.iss
- move releng/inno-setup/output/Sysdyn-1.35.0.exe releng/inno-setup/output/Sysdyn-OM-1.35.0.exe
'''
archiveArtifacts artifacts: 'releng/inno-setup/output/*.exe', fingerprint: false
}
--- /dev/null
+; Sysdyn setup script for Inno Setup Compiler 5.6.1 (u)
+
+[Setup]
+AppName=Simantics System Dynamics with OpenModelica
+AppVersion=1.35.0
+DefaultDirName={sd}\Sysdyn-1.35.0
+DefaultGroupName=Simantics
+Compression=lzma2
+SolidCompression=yes
+OutputBaseFilename=Sysdyn-OM-1.35.0
+AppCopyright=Copyright © 2018 Simantics Team
+DisableDirPage=no
+WizardSmallImageFile=sysdyn.bmp
+OutputDir=output-om
+
+[Files]
+Source: "sysdyn-om/*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
+
+[Icons]
+Name: "{group}\Simantics System Dynamics"; Filename: "{app}\Simantics-Sysdyn.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;