Skip to content

Commit

Permalink
On uninstall, delete the copied executables and the venv.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjansen committed Jan 18, 2025
1 parent 483eadb commit 4cb2725
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeFiles/CwipcInstallers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ elseif(WIN32)
string(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait '\\\"$INSTDIR\\\\bin\\\\cwipc_check\\\" install'\\n")
#string(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait 'powershell -ExecutionPolicy Bypass ${_hide} -File \\\"$INSTDIR\\\\bin\\\\cwipc_pymodules_install.ps1\\\"'\\n")
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "")
string(APPEND CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "ExecWait 'python3 -m pip uninstall -y cwipc_util cwipc_codec cwipw_realsense2 cwipc_kinect'\\n")
string(APPEND CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "Delete $INSTDIR\\bin\\cwipc_*.exe\\n")
string(APPEND CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "RMDir /r $INSTDIR\\libexec\\cwipc\\venv\\n")
set(CPACK_NSIS_MENU_LINKS
"libexec/cwipc/scripts/run-cwipc-view-synthetic.bat" "View a sample dynamic pointcloud"
"libexec/cwipc/scripts/run-cwipc-check-fix.bat" "Attempt to fix cwipc installation"
Expand Down

0 comments on commit 4cb2725

Please sign in to comment.