SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
-
- SetShellVarContext current
- StrCpy $R0 \\\"$DOCUMENTS\\\\..\\\\.bbtk\\\\doc\\\"
- RMDir /r $R0
-
!define Install_ReadEnvStr_RegKey 'HKCU \\\"Environment\\\"'
ReadRegStr $0 \\\${Install_ReadEnvStr_RegKey} 'PATH'
# WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'WXWIN' '$INSTDIR\\\\${CREA_LIBRARY_DESTINATION_PATH}\\\\${CREA_WXWIN_LYBRARY}'
SendMessage \\\${HWND_BROADCAST} \\\${WM_WININICHANGE} 0 'STR:Environment' /TIMEOUT=5000
- ")
- SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
-
SetShellVarContext current
StrCpy $R0 \\\"$DOCUMENTS\\\\..\\\\.bbtk\\\\doc\\\"
RMDir /r $R0
+
+ ")
+
+ SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
+
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete '$SMPROGRAMS\\\\$MUI_TEMP\\\\creatisNewProject.lnk'
!define Uninstall_EnvStr_RegKey 'HKLM \\\"SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment\\\"'
WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'CREATOOLS_DIRS' ''
SendMessage \\\${HWND_BROADCAST} \\\${WM_WININICHANGE} 0 'STR:Environment' /TIMEOUT=5000
+
+ SetShellVarContext current
+ StrCpy $R0 \\\"$DOCUMENTS\\\\..\\\\.bbtk\\\\doc\\\"
+ RMDir /r $R0
+
")