Advertisement
Guest User

UWP_Helper.bat

a guest
Nov 4th, 2021
2,118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. @echo off
  2. color 2
  3. echo UWP Helper & echo.
  4.  
  5. :begin
  6. echo 1. Install game
  7. echo 2. Enable Developer Mode
  8. echo 3. Disable Developer Mode
  9. echo 4. Exit
  10.  
  11. set /p action="Choose action: "
  12.  
  13. IF NOT "%action%" == "1" ( IF NOT "%action%" == "2" ( IF NOT "%action%" == "3" ( IF NOT "%action%" == "4" ( goto begin ) ) ) )
  14.  
  15. IF "%action%" == "1" ( goto gameinstall )
  16. IF "%action%" == "2" ( goto developeron )
  17. IF "%action%" == "3" ( goto developeroff )
  18. IF "%action%" == "4" ( goto exit )
  19.  
  20. :developeron
  21. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
  22. goto begin
  23.  
  24. :developeroff
  25. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "0"
  26. goto begin
  27.  
  28. :gameinstall
  29. set file_check = "%~dp0AppxSignature.p7x"
  30. set file_check_new = "AppxSignature.tmp"
  31.  
  32. IF EXIST %file_check% ( REN %file_check% %file_check_new% )
  33.  
  34. powershell Add-AppxPackage "%~dp0AppxManifest.xml" -Register
  35. goto begin
  36.  
  37. :exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement