Skip to content

Commit 5e1e2e1

Browse files
committed
feat: Delete old AtlasFolder and AtlasModules on upgrade
1 parent 182c1f4 commit 5e1e2e1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/playbook/Configuration/custom.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ actions:
2626
weight: 10
2727
wait: true
2828

29+
-writeStatus: {status: 'Deleting old AtlasOS folders'}
30+
-powerShell:
31+
command: |
32+
$windir = [Environment]::GetFolderPath('Windows')
33+
Remove-Item -LiteralPath "$windir\AtlasDesktop" -Force -Recurse
34+
Remove-Item -LiteralPath "$windir\AtlasModules" -Force -Recurse
35+
wait: true
36+
exeDir: true
37+
onUpgrade: true
38+
2939
- !writeStatus: {status: 'Copying files'}
3040
- !powerShell:
3141
command: |

0 commit comments

Comments
 (0)