Skip to content

Commit

Permalink
Fix unistall processs to remove environment variable
Browse files Browse the repository at this point in the history
Fix unistall processs to remove environment variable from PATH by remove unnecessary underscores.
  • Loading branch information
UnaNancyOwen committed Sep 3, 2019
1 parent b2212ef commit d624cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ Section "Uninstall"
DeleteRegValue SHCTX "Software\Kitware\CMake\Packages\@CPACK_PACKAGE_NAME@" "@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@"

Push $INSTDIR\bin
StrCmp $DO_NOT_ADD_TO_PATH_ "1" doNotRemoveFromPath 0
StrCmp $DO_NOT_ADD_TO_PATH "1" doNotRemoveFromPath 0
Call un.RemoveFromPath
doNotRemoveFromPath:
SectionEnd
Expand Down

0 comments on commit d624cb1

Please sign in to comment.