force cleanup section to be first

This commit is contained in:
Stephen Birarda 2016-08-24 11:36:36 -07:00
parent c4ec02c4bf
commit 0e4fb51d09

View file

@ -243,6 +243,16 @@ FunctionEnd
;-------------------------------- ;--------------------------------
; Installation types ; 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}
SectionEnd
@CPACK_NSIS_INSTALLATION_TYPES@ @CPACK_NSIS_INSTALLATION_TYPES@
;-------------------------------- ;--------------------------------
@ -589,9 +599,6 @@ Section "-Core installation"
Delete "$INSTDIR\version" Delete "$INSTDIR\version"
Delete "$INSTDIR\xinput1_3.dll" Delete "$INSTDIR\xinput1_3.dll"
; Remove the resources folder so we don't end up including removed QML files
RMDir /r "$INSTDIR\resources"
; Delete old desktop shortcuts before they were renamed during Sandbox rename ; Delete old desktop shortcuts before they were renamed during Sandbox rename
Delete "$DESKTOP\@PRE_SANDBOX_INTERFACE_SHORTCUT_NAME@.lnk" Delete "$DESKTOP\@PRE_SANDBOX_INTERFACE_SHORTCUT_NAME@.lnk"
Delete "$DESKTOP\@PRE_SANDBOX_CONSOLE_SHORTCUT_NAME@.lnk" Delete "$DESKTOP\@PRE_SANDBOX_CONSOLE_SHORTCUT_NAME@.lnk"