aboutsummaryrefslogtreecommitdiff
path: root/windows/install.bat
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-23 21:09:05 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-23 21:09:05 +0200
commitb451a80b5767bb4849208db659ddf506e8090e12 (patch)
tree4ddfc9d93e4e79574df95e03f00c4dee5d793be8 /windows/install.bat
parent57403da32da78683b7509f66058d7d334dfb5e58 (diff)
downloaddotfiles-b451a80b5767bb4849208db659ddf506e8090e12.tar.gz
dotfiles-b451a80b5767bb4849208db659ddf506e8090e12.zip
Minor fixes
Diffstat (limited to 'windows/install.bat')
-rw-r--r--windows/install.bat13
1 files changed, 9 insertions, 4 deletions
diff --git a/windows/install.bat b/windows/install.bat
index d5298f1..89b3ac6 100644
--- a/windows/install.bat
+++ b/windows/install.bat
@@ -1,6 +1,11 @@
-REM Installing Dotfiles
+@echo off
+REM === Installing Dotfiles ===
-powershell . $HOME\.config\powershell\Microsoft.PowerShell_profile.ps1
-powershell Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
-powershell . $HOME\.config\powershell\bootstrap.ps1
+REM Set execution policy for current user
+powershell -NoProfile -Command "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force"
+REM Run PowerShell profile (dotfiles)
+powershell -NoProfile -ExecutionPolicy Bypass -File "%USERPROFILE%\Documents\PowerShell\Microsoft.PowerShell_profile.ps1"
+
+REM Run bootstrap script
+powershell -NoProfile -ExecutionPolicy Bypass -File "%USERPROFILE%\Documents\PowerShell\bootstrap.ps1"