Skip to content

Commit 4d33ed6

Browse files
committed
fixed: one click install choco
1 parent 3672cd5 commit 4d33ed6

5 files changed

+10
-6
lines changed

temp.txt

+2
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@
2323

2424

2525
<div data-notify="container" class="col-xs-11 col-sm-4 alert alert-{0} d-flex align-items-center alert-dismissible fade show" role="alert"><button type="button" aria-hidden="true" class="btn-close close py-1" data-notify="dismiss"></button><span data-notify="icon"></span><span data-notify="title"><svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Warning:"><use xlink:href="#{0}"/></svg>{1}</span><span data-notify="message">{2}</span><div class="progress" data-notify="progressbar"><div class="progress-bar bg-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div></div><a href="{3}" target="{4}" data-notify="url"></a></div>
26+
27+
Set-ExecutionPolicy Bypass -Scope Process -Force;

windowCmd/installChocolatey.bat

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
@ECHO OFF
2-
PowerShell.exe -NoProfile -Command "& {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dpn0.ps1""' -WorkingDirectory '%~dp0' -Verb RunAs}"
3-
PAUSE
1+
@echo off
2+
rem powerShell.exe -NoProfile -Command "& {Start-Process powerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dpn0.ps1""' -WorkingDirectory '%~dp0' -Verb RunAs}"
3+
powershell.exe -ExecutionPolicy Bypass -File %~dp0%~n0.ps1 -Verb RunAs
4+
pause

windowCmd/uninstallChocolatey.bat

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
rem powerShell.exe -NoProfile -Command "& {Start-Process powerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dpn0.ps1""' -WorkingDirectory '%~dp0' -Verb RunAs}"
3+
powershell.exe -ExecutionPolicy Bypass -File %~dp0%~n0.ps1 -Verb RunAs
4+
pause
File renamed without changes.

windowCmd/unstallChocolatey.bat

-3
This file was deleted.

0 commit comments

Comments
 (0)