Skip to content

Commit cf10da8

Browse files
fix(nsis): allow $INSTDIR to be removed (#9520)
1 parent d56550f commit cf10da8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/afraid-houses-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
fix(nsis): allow $INSTDIR to be removed

packages/app-builder-lib/templates/nsis/uninstaller.nsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ Section "un.${UNINSTALL_SECTION_NAME}"
181181

182182
${endif}
183183

184+
# Move out of $INSTDIR so it can be removed
185+
SetOutPath $TEMP
184186
# Remove all files (or remaining shallow directories from the block above)
185187
RMDir /r $INSTDIR
186188
!endif

0 commit comments

Comments
 (0)