feat: add cleanup logic for windows installer
This commit is contained in:
parent
4f7236d72a
commit
9568ff12e8
@ -42,6 +42,11 @@
|
|||||||
${If} ${FileExists} "$INSTDIR\resources\LICENSE"
|
${If} ${FileExists} "$INSTDIR\resources\LICENSE"
|
||||||
CopyFiles /SILENT "$INSTDIR\resources\LICENSE" "$INSTDIR\LICENSE"
|
CopyFiles /SILENT "$INSTDIR\resources\LICENSE" "$INSTDIR\LICENSE"
|
||||||
DetailPrint "Copied LICENSE to install root"
|
DetailPrint "Copied LICENSE to install root"
|
||||||
|
|
||||||
|
; Optional cleanup - remove from resources folder
|
||||||
|
Delete "$INSTDIR\resources\LICENSE"
|
||||||
|
${Else}
|
||||||
|
DetailPrint "LICENSE not found at expected location: $INSTDIR\resources\LICENSE"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
; ---- Copy vulkan-1.dll to install root ----
|
; ---- Copy vulkan-1.dll to install root ----
|
||||||
@ -51,6 +56,7 @@
|
|||||||
|
|
||||||
; Optional cleanup - remove from resources folder
|
; Optional cleanup - remove from resources folder
|
||||||
Delete "$INSTDIR\resources\lib\vulkan-1.dll"
|
Delete "$INSTDIR\resources\lib\vulkan-1.dll"
|
||||||
|
|
||||||
; Only remove the lib directory if it's empty after removing both files
|
; Only remove the lib directory if it's empty after removing both files
|
||||||
RMDir "$INSTDIR\resources\lib"
|
RMDir "$INSTDIR\resources\lib"
|
||||||
${Else}
|
${Else}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user