summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-01-11 21:26:10 +0000
committersr55 <[email protected]>2019-01-11 21:27:36 +0000
commit6e308d40e775c024e7f0947f79f875dacd1b509f (patch)
tree9c3e44093f9a68d226aa18cfa58ff75485f582e6 /win
parent4c7e2e65ae25d11fe5ac3732f40a66dc7899e1a6 (diff)
WinGui: Improvements to the installer. Fixed the issue where the uninstaller could appear behind the installer. Updated the Background Image on the installer to the project logo.
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/Installer/Installer64.nsi7
-rw-r--r--win/CS/HandBrakeWPF/Installer/InstallerBackground.bmpbin0 -> 52574 bytes
-rw-r--r--win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi7
-rw-r--r--win/CS/build.xml2
4 files changed, 12 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Installer/Installer64.nsi b/win/CS/HandBrakeWPF/Installer/Installer64.nsi
index 7563249e5..57714f3cf 100644
--- a/win/CS/HandBrakeWPF/Installer/Installer64.nsi
+++ b/win/CS/HandBrakeWPF/Installer/Installer64.nsi
@@ -33,6 +33,8 @@ SetCompressor lzma
!define MUI_LICENSEPAGE_BUTTON $(^NextBtn)
!define MUI_LICENSEPAGE_TEXT_BOTTOM "You are now aware of your rights. Click Next to continue."
+!define MUI_WELCOMEFINISHPAGE_BITMAP "InstallerBackground.bmp"
+
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
@@ -107,10 +109,11 @@ Function .onInit
;Run the uninstaller
uninst:
+ CopyFiles /SILENT /FILESONLY "$INSTDIR\uninst.exe" "$TEMP\uninstallhb.exe"
IfSilent +3
- ExecWait $INSTDIR\uninst.exe
+ ExecWait '"$TEMP\uninstallhb.exe" _?=$INSTDIR'
goto done
- ExecWait '"$INSTDIR\uninst.exe" /S'
+ ExecWait '"$TEMP\uninstallhb.exe" _?=$INSTDIR /S'
done:
FunctionEnd
diff --git a/win/CS/HandBrakeWPF/Installer/InstallerBackground.bmp b/win/CS/HandBrakeWPF/Installer/InstallerBackground.bmp
new file mode 100644
index 000000000..7499d028a
--- /dev/null
+++ b/win/CS/HandBrakeWPF/Installer/InstallerBackground.bmp
Binary files differ
diff --git a/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi b/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi
index b67757a95..ecd6d5b7f 100644
--- a/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi
+++ b/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi
@@ -33,6 +33,8 @@ SetCompressor lzma
!define MUI_LICENSEPAGE_BUTTON $(^NextBtn)
!define MUI_LICENSEPAGE_TEXT_BOTTOM "You are now aware of your rights. Click Next to continue."
+!define MUI_WELCOMEFINISHPAGE_BITMAP "InstallerBackground.bmp"
+
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; License page
@@ -106,10 +108,11 @@ Function .onInit
;Run the uninstaller
uninst:
+ CopyFiles /SILENT /FILESONLY "$INSTDIR\uninst.exe" "$TEMP\uninstallhb.exe"
IfSilent +3
- ExecWait $INSTDIR\uninst.exe
+ ExecWait '"$TEMP\uninstallhb.exe" _?=$INSTDIR'
goto done
- ExecWait '"$INSTDIR\uninst.exe" /S'
+ ExecWait '"$TEMP\uninstallhb.exe" _?=$INSTDIR /S'
done:
FunctionEnd
diff --git a/win/CS/build.xml b/win/CS/build.xml
index 92f199c29..716d17c2d 100644
--- a/win/CS/build.xml
+++ b/win/CS/build.xml
@@ -59,6 +59,7 @@
<!-- Post Build Events -->
<Target Name="NightlyPostBuild">
<Exec Command="copy $(MSBuildProjectDirectory)\HandBrakeWPF\Installer\MakeNightly64.nsi $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release /Y" />
+ <Exec Command="copy $(MSBuildProjectDirectory)\HandBrakeWPF\Installer\InstallerBackground.bmp $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release /Y" />
<Exec Command="copy $(MSBuildProjectDirectory)\HandBrakeWPF\handbrakepineapple.ico $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release /Y" />
<Exec Command="xcopy $(MSBuildProjectDirectory)\doc $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release\doc /I /Y" />
<Exec Command="makensis $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release\MakeNightly64.nsi" />
@@ -67,6 +68,7 @@
<Target Name="ReleasePostBuild">
<Exec Command="copy $(MSBuildProjectDirectory)\HandBrakeWPF\Installer\Installer64.nsi $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release /Y" />
+ <Exec Command="copy $(MSBuildProjectDirectory)\HandBrakeWPF\Installer\InstallerBackground.bmp $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release /Y" />
<Exec Command="copy $(MSBuildProjectDirectory)\HandBrakeWPF\handbrakepineapple.ico $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release /Y" />
<Exec Command="xcopy $(MSBuildProjectDirectory)\doc $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release\doc /I /Y" />
<Exec Command="makensis $(MSBuildProjectDirectory)\HandBrakeWPF\bin\x64\Release\Installer64.nsi" />