always remove the resources dir, make client required

This commit is contained in:
Stephen Birarda 2016-08-24 16:16:16 -07:00
parent 0e4fb51d09
commit fab2568624
2 changed files with 5 additions and 6 deletions

View file

@ -24,6 +24,9 @@ macro(GENERATE_INSTALLERS)
set(CPACK_NSIS_PACKAGE_NAME ${_DISPLAY_NAME})
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${_DISPLAY_NAME})
# make the Interface client a required component
set(CPACK_COMPONENT_${CLIENT_COMPONENT}_REQUIRED TRUE)
if (WIN32)
# include CMake module that will install compiler system libraries
# so that we have msvcr120 and msvcp120 installed with targets

View file

@ -245,12 +245,8 @@ FunctionEnd
; Installation types
Section "-Previous Install Cleanup"
${If} ${SectionIsSelected} ${@CLIENT_COMPONENT_NAME@}
; Remove the resources folder so we don't end up including removed QML files
RMDir /r "$INSTDIR\resources"
${EndIf}
; Remove the resources folder so we don't end up including removed QML files
RMDir /r "$INSTDIR\resources"
SectionEnd
@CPACK_NSIS_INSTALLATION_TYPES@