Compare commits

...

5 Commits

Author SHA1 Message Date
Fierelier 1f15b58baa Update version 2022-06-22 07:31:15 +02:00
Fierelier ca64aaad7e Add run-online.bat 2022-06-22 07:30:34 +02:00
Fierelier 30b007447d Update docs 2022-06-22 07:30:11 +02:00
Fierelier cc712eeace Add description to mods-online 2022-06-22 07:29:50 +02:00
Fierelier c4f289013a Add mod-pack: mods-online 2022-06-22 07:27:57 +02:00
9 changed files with 35 additions and 1 deletions

View File

@ -164,6 +164,12 @@ Mods that require System rights<br>
<tr><td>[unattend]\[6.1]\[x86]\<b>unattend-starter</b></td><td>quality</td><td>Skip certain questions in the last step of Windows setup.</td></tr>
<tr><td>[unattend]\[6.1]\[x86]\<b>unattend-ultimate</b></td><td>quality</td><td>Skip certain questions in the last step of Windows setup.</td></tr>
</table><br>
<h1 id="mods-online"><a href="#mods-online">#</a> Mods: mods-online</h1>
Mods that are applied for online deployments<br>
<table>
<tr><th>Mod</th><th>Tags</th><th>Description</th></tr>
<tr><td>\<b>run SetupComplete</b></td><td>quality</td><td>Run SetupComplete scripts when applying on an online system.</td></tr>
</table><br>
<h1 id="mods-trustedInstaller"><a href="#mods-trustedInstaller">#</a> Mods: mods-trustedInstaller</h1>
Mods that require TrustedInstaller rights<br>
<table>

View File

@ -164,6 +164,12 @@ Mods that require System rights<br>
<tr><td>[unattend]\[6.1]\[x86]\<b>unattend-starter</b></td><td>quality</td><td>Skip certain questions in the last step of Windows setup.</td></tr>
<tr><td>[unattend]\[6.1]\[x86]\<b>unattend-ultimate</b></td><td>quality</td><td>Skip certain questions in the last step of Windows setup.</td></tr>
</table><br>
<h1 id="mods-online"><a href="#mods-online">#</a> Mods: mods-online</h1>
Mods that are applied for online deployments<br>
<table>
<tr><th>Mod</th><th>Tags</th><th>Description</th></tr>
<tr><td>\<b>run SetupComplete</b></td><td>quality</td><td>Run SetupComplete scripts when applying on an online system.</td></tr>
</table><br>
<h1 id="mods-trustedInstaller"><a href="#mods-trustedInstaller">#</a> Mods: mods-trustedInstaller</h1>
Mods that require TrustedInstaller rights<br>
<table>

2
mods-online/condition.py Normal file
View File

@ -0,0 +1,2 @@
if (opusnt.target["type"] != "online"):
skip = True

View File

@ -0,0 +1 @@
Mods that are applied for online deployments

View File

@ -0,0 +1 @@
Run SetupComplete scripts when applying on an online system.

View File

@ -0,0 +1 @@
subprocess.run(["call","%SystemDrive%\\Windows\\Setup\\Scripts\\SetupComplete.cmd"],check=True,shell=True)

View File

@ -0,0 +1 @@
quality

View File

@ -1,2 +1,2 @@
@echo off
exit /b 10
exit /b 11

16
run-online.bat Normal file
View File

@ -0,0 +1,16 @@
@echo off
setlocal enabledelayedexpansion
cd /d "%~dp0"
set path=%cd%\path;%path%
REM Location to your py.exe/python.exe - If the Python launcher is installed (fairly likely), py should suffice.
REM If Python does not launch, set this to the full path if your python.exe, like so:
REM set pyexe=C:\Program Files\Python38\python.exe
set pyexe=py
echo WARNING! This will apply opus-nt to your currently running OS.
pause
advancedrun /exefilename "cmd.exe" /commandline '/c "set path=%path% & call "%pyexe%" run.py online"' /startdirectory "%cd%" /runas 4 /waitprocess 1 /run
advancedrun /exefilename "cmd.exe" /commandline '/c "set path=%path% & call "%pyexe%" run.py online modpath=mods-trustedInstaller"' /startdirectory "%cd%" /runas 8 /waitprocess 1 /run
advancedrun /exefilename "cmd.exe" /commandline '/c "set path=%path% & call "%pyexe%" run.py online modpath=mods-online"' /startdirectory "%cd%" /runas 4 /waitprocess 1 /run
pause