From: sr55 Date: Fri, 11 Jan 2019 21:26:10 +0000 (+0000) Subject: WinGui: Improvements to the installer. Fixed the issue where the uninstaller could... X-Git-Tag: 1.2.1~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73511a8c3c65ff958e9070de881b571b583052e3;p=handbrake 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. --- diff --git a/win/CS/HandBrakeWPF/Installer/Installer64.nsi b/win/CS/HandBrakeWPF/Installer/Installer64.nsi index 50b134631..59923bb87 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 Binary files /dev/null and b/win/CS/HandBrakeWPF/Installer/InstallerBackground.bmp 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 @@ + @@ -67,6 +68,7 @@ +