1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 23:05:08 +00:00

fix(windows): bypass installer execution policy

Refs #612
This commit is contained in:
Tw93
2026-03-21 19:19:57 +08:00
parent 746bb2c956
commit 982aa6ecb2
4 changed files with 30 additions and 14 deletions

View File

@@ -59,10 +59,10 @@ git clone --branch windows https://github.com/tw93/Mole.git $installDir
cd $installDir
# Run the installer in place (keeps .git for mo update)
.\install.ps1 -InstallDir $installDir -AddToPath
powershell -ExecutionPolicy Bypass -File .\install.ps1 -InstallDir $installDir -AddToPath
# Optional: Create Start Menu shortcut
.\install.ps1 -InstallDir $installDir -AddToPath -CreateShortcut
powershell -ExecutionPolicy Bypass -File .\install.ps1 -InstallDir $installDir -AddToPath -CreateShortcut
```
Run:
@@ -280,10 +280,10 @@ Custom scan paths can be configured with `mo purge --paths`.
```powershell
# Install to custom location from a cloned windows branch
.\install.ps1 -InstallDir C:\Tools\Mole -AddToPath
powershell -ExecutionPolicy Bypass -File .\install.ps1 -InstallDir C:\Tools\Mole -AddToPath
# Create Start Menu shortcut
.\install.ps1 -InstallDir C:\Tools\Mole -AddToPath -CreateShortcut
powershell -ExecutionPolicy Bypass -File .\install.ps1 -InstallDir C:\Tools\Mole -AddToPath -CreateShortcut
# Refresh the source channel later
mo update
@@ -292,7 +292,7 @@ mo update
### Uninstall
```powershell
.\install.ps1 -Uninstall
powershell -ExecutionPolicy Bypass -File .\install.ps1 -Uninstall
```
## Configuration