Skip to content

Commit fe40f62

Browse files
EXE: Add additional clean-up of pkgs dir if needed (#1214)
* Add additional clean-up of pkgs dir if needed * Add news * Remove additional REBOOTOK RMDir Co-authored-by: Marco Esters <mesters@anaconda.com> * Update comment main.nsi.tmpl --------- Co-authored-by: Marco Esters <mesters@anaconda.com>
1 parent 9ccc2c3 commit fe40f62

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

constructor/nsis/main.nsi.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,12 @@ Section "Install"
16781678
push 'Failed to clear package cache'
16791679
push 'WithLog'
16801680
call AbortRetryNSExecWait
1681+
# conda clean may leave behind .conda_trash files or locked files (e.g. vc_runtime DLLs).
1682+
# Force remove any leftovers, note that locked files may still remain
1683+
# See https://github.com/conda/constructor/issues/1213
1684+
${If} ${FileExists} "$INSTDIR\pkgs"
1685+
nsExec::Exec 'cmd.exe /D /C RMDIR /Q /S "$INSTDIR\pkgs"'
1686+
${EndIf}
16811687
${EndIf}
16821688

16831689
!if ${INIT_CONDA_OPTION} == 1

news/1214-improve-pkg-clean

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Enhancements
2+
3+
* EXE: Uninstalling with option "Clear Package Cache" now also performs additional clean-up to account for potentially left-over files. (#1213 via #1214)
4+
5+
### Bug fixes
6+
7+
* <news item>
8+
9+
### Deprecations
10+
11+
* <news item>
12+
13+
### Docs
14+
15+
* <news item>
16+
17+
### Other
18+
19+
* <news item>

0 commit comments

Comments
 (0)