From e453904af127c909617966858f0a0b9220fcc11f Mon Sep 17 00:00:00 2001 From: Antoine Beauchamp Date: Fri, 12 Jan 2024 16:24:38 -0500 Subject: [PATCH] Created a shortcut for `file_explorer_renew.exe` in Start Menu. #115 Added a new dialog in the installer about instructions before uninstalling. --- CMakeLists.txt | 9 +++- wix/WixUI_FileExplorerRenewDlg.wxs | 34 +++++++++++++ wix/WixUI_ShellAnythingUI.wxs | 76 ++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 2 deletions(-) create mode 100644 wix/WixUI_FileExplorerRenewDlg.wxs create mode 100644 wix/WixUI_ShellAnythingUI.wxs diff --git a/CMakeLists.txt b/CMakeLists.txt index b87748d1..52c94060 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -448,6 +448,7 @@ set(CPACK_WIX_PROPERTY_ARPURLINFOABOUT "${CPACK_WIX_HELP_LINK}") # Define start menu shortcuts for WIX # More shortcuts are defined in file "wix/WIX.extra.in" set_property(INSTALL "bin/$" PROPERTY CPACK_START_MENU_SHORTCUTS "${PROJECT_NAME} unit tests") +set_property(INSTALL "bin/$" PROPERTY CPACK_START_MENU_SHORTCUTS "File Explorer Renew") set_property(INSTALL "${README_FILENAME}" PROPERTY CPACK_START_MENU_SHORTCUTS "${README_FILENAME}" ) set_property(INSTALL "${USERMANUAL_FILENAME}" PROPERTY CPACK_START_MENU_SHORTCUTS "${USERMANUAL_FILENAME}" ) set_property(INSTALL "${CONTRIBUTING_FILENAME}" PROPERTY CPACK_START_MENU_SHORTCUTS "${CONTRIBUTING_FILENAME}" ) @@ -461,9 +462,13 @@ set_property(INSTALL "bin/unregister.bat" PROPERTY configure_file("${CMAKE_SOURCE_DIR}/wix/WIX.patches.in" "${CMAKE_BINARY_DIR}/wix/WIX.patches.wxs") configure_file("${CMAKE_SOURCE_DIR}/wix/WIX.extra.in" "${CMAKE_BINARY_DIR}/wix/WIX.extra.wxs" ) set(CPACK_WIX_PATCH_FILE "${CMAKE_BINARY_DIR}/wix/WIX.patches.wxs") -set(CPACK_WIX_EXTRA_SOURCES "${CMAKE_BINARY_DIR}/wix/WIX.extra.wxs" ) +set(CPACK_WIX_EXTRA_SOURCES + "${CMAKE_BINARY_DIR}/wix/WIX.extra.wxs" + "${CMAKE_SOURCE_DIR}/wix/WixUI_FileExplorerRenewDlg.wxs" + "${CMAKE_SOURCE_DIR}/wix/WixUI_ShellAnythingUI.wxs" +) set(CPACK_WIX_EXTENSIONS "WiXUtilExtension") # This is required for the util:InternetShortcut in WIX.extra.in -set(CPACK_WIX_UI_REF "WixUI_FeatureTree") # To show a custom install directory and list of features. +set(CPACK_WIX_UI_REF "WixUI_ShellAnythingUI") # To show a custom install directory and list of features. # Starting from version 0.8.0 we must disable the installation of ShellAnything if an existing version is already installed. # See issues for details: diff --git a/wix/WixUI_FileExplorerRenewDlg.wxs b/wix/WixUI_FileExplorerRenewDlg.wxs new file mode 100644 index 00000000..f7146984 --- /dev/null +++ b/wix/WixUI_FileExplorerRenewDlg.wxs @@ -0,0 +1,34 @@ + + + + + + + + + 1 + + + + + + + + + + INSTALL.md, uninstall section]]> + + + + + + + + + + + diff --git a/wix/WixUI_ShellAnythingUI.wxs b/wix/WixUI_ShellAnythingUI.wxs new file mode 100644 index 00000000..8441c6f2 --- /dev/null +++ b/wix/WixUI_ShellAnythingUI.wxs @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + NOT Installed + Installed AND PATCH + + 1 + LicenseAccepted = "1" + + 1 + 1 + + Installed + NOT Installed + 1 + + NOT Installed OR WixUI_InstallMode = "Change" + Installed AND NOT PATCH + Installed AND PATCH + + 1 + + 1 + 1 + 1 + 1 + + + + +