diff --git a/src/vars.ps1 b/src/vars.ps1 index 38e9f6c..6fe8888 100644 --- a/src/vars.ps1 +++ b/src/vars.ps1 @@ -53,9 +53,6 @@ function checkWingetStatus { } } -# Data folder -$data = "$root\data" - # Setup Data Folder $apps = "$data\isolate" $appsAll = "$data\apps.csv" @@ -64,4 +61,7 @@ $mountsAll = "$data\mounts.csv" # GLOBAL $tempFolder = "$env:TEMP\winos"; $storage = "$env:USERPROFILE\Storage" -$autostartDir = "$data\autorun" \ No newline at end of file +$autostartDir = "$data\autorun" + +# Data folder +$data = if (Test-Path "$storage\winos\data") { "$storage\winos\data" } else { "$root\data" } \ No newline at end of file