Skip to content

Commit

Permalink
Create devmode.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas authored Jul 27, 2022
1 parent 6a699cc commit 25f3d0f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions devmode.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@echo off
:: ==
:: Kjør som admin
:: ==
if not "%1"=="am_admin" (
powershell -Command "Start-Process -Verb RunAs -FilePath '%0' -ArgumentList 'am_admin'"
exit /b
)
:: ==
:: Skru på devmode
:: ==
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"

:: ==
:: Løs opp ExecutionPolicy for å tillate Python Venv
:: Obs: Kan være farlig da dette gir ukjente kilder tillatelse til å kjøre ekstra koder
:: ==
:: Fjern :: for å løse opp ExecutionPolicy.
:: Set-ExecutionPolicy Unrestricted -Force

0 comments on commit 25f3d0f

Please sign in to comment.