Skip to content

Commit

Permalink
make paths relative
Browse files Browse the repository at this point in the history
  • Loading branch information
itisrazza committed Mar 22, 2021
1 parent d585909 commit 7e575db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions BuildScripts/BuildInstaller.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

$innoPath = "C:\Program Files (x86)\Inno Setup 6"
$projectVersion = Get-ProjectVersion
$runtimeInstallerPath = "Installer/windowsdesktop-runtime-5.0.4-win-x86.exe"
$platform = "win-x86" # installer is always x86, cbf making x64 or arm64 for now

$runtimeInstallerPath = "Installer/windowsdesktop-runtime-5.0.4-$platform.exe"

# if the .net runtime isn't downloaded, download it
if (-not ( Test-Path -Path $runtimeInstallerPath )) {
Expand All @@ -15,7 +17,8 @@ if (-not ( Test-Path -Path $runtimeInstallerPath )) {
& "$innoPath/iscc.exe" `
/DMyAppVersion="$projectVersion" `
/DRuntimeInstallerPath="$runtimeInstallerPath" `
/DAppPlatform="$platform" `
Installer/Setup.iss

# move the installer to releases
mv -Force "Installer/Output/win-x86-installer.exe" "Releases/"
mv -Force "Installer/Output/$platform-installer.exe" "Releases/"
12 changes: 6 additions & 6 deletions Installer/Setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ DisableProgramGroupPage=yes
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputBaseFilename=win-x86-installer
SetupIconFile=D:\Sources\SuperSize\Assets\Logo\Installer.ico
OutputBaseFilename={#AppPlatform}-installer
SetupIconFile=..\Assets\Logo\Installer.ico
Compression=lzma
SolidCompression=yes
WizardImageFile=D:\Sources\SuperSize\Installer\WizModernImage.bmp
WizardSmallImageFile=D:\Sources\SuperSize\Installer\WizModernSmallImage.bmp
WizardImageFile=WizModernImage.bmp
WizardSmallImageFile=WizModernSmallImage.bmp

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Expand All @@ -55,7 +55,7 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: de

[Run]
Filename: "{app}\{#MyAppExeName}"; Flags: nowait postinstall skipifsilent; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"
Filename: "{app}\windowsdesktop-runtime-5.0.4-win-x86.exe"; Parameters: "/install /quiet /norestart"; Description: "Install .NET Runtime"; StatusMsg: "Installing .NET 5 Desktop Runtime"
Filename: "{app}\windowsdesktop-runtime-5.0.4-{#AppPlatform}.exe"; Parameters: "/install /quiet /norestart"; Description: "Install .NET Runtime"; StatusMsg: "Installing .NET 5 Desktop Runtime"

[InstallDelete]
Type: files; Name: "{app}\windowsdesktop-runtime-5.0.4-win-x86.exe"
Type: files; Name: "{app}\windowsdesktop-runtime-5.0.4-{#AppPlatform}.exe"

0 comments on commit 7e575db

Please sign in to comment.