From fe2a96bb06db28fe1562f59f8c54d5d5bb7f256e Mon Sep 17 00:00:00 2001 From: Carl Kenner Date: Sat, 11 Jun 2016 01:26:28 +0930 Subject: [PATCH] Add values for the Size, Location, and Comments columns of the Programs and Features (aka Add/Remove Programs) window used to uninstall programs in Windows. Most programs fill in the Location and Size columns, but Dolphin doesn't. Most programs unfortunately don't fill in the comments column, but I find that annoying when I go to uninstall things and can't work out what half the programs are for. --- Installer/Installer.nsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Installer/Installer.nsi b/Installer/Installer.nsi index 5094053197..d2d0925832 100644 --- a/Installer/Installer.nsi +++ b/Installer/Installer.nsi @@ -14,6 +14,8 @@ SetCompressor /SOLID lzma +!include "FileFunc.nsh" + ; MUI 1.67 compatible ------ !include "MUI.nsh" @@ -169,6 +171,11 @@ Section -Post WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "InstallLocation" "$INSTDIR" + ${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2 + IntFmt $0 "0x%08X" $0 + WriteRegDWORD ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "EstimatedSize" "$0" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Comments" "GameCube and Wii emulator" SectionEnd ; Section descriptions