Compare commits
2 Commits
2e32dba026
...
5293375cec
Author | SHA1 | Date |
---|---|---|
Fierelier | 5293375cec | |
Fierelier | 8d923b8d89 |
10
README.md
10
README.md
|
@ -9,10 +9,14 @@ A windows homebrew kit and collection of mods. Can mod .WIM (this is where main-
|
|||
* **colorama** (optional)**:** `py -m pip install colorama`
|
||||
* **wimlib:** https://wimlib.net/ (if working with .WIMs)
|
||||
|
||||
## How to use - Simple (Online)
|
||||
## Prep - Before applying
|
||||
1. Check which mods you want to apply. If you do not like a mod, or a category, disable it by putting a `-` in front of the name, like this: `-mod` or `-[category]`.
|
||||
2. Run `set-perms.bat` as admin. You can run `unset-perms.bat` after you're done applying, to edit the folder's contents.
|
||||
|
||||
## Applying - Simple (Online)
|
||||
Drag `run-online.bat` into `ti-shell.bat`. It will use [RunAsTI](https://github.com/AveYo/LeanAndMean/blob/main/RunAsTI.bat) to execute `run.py`, and apply all mods to your currently running system. If you want to know how it works, edit the .bat file.
|
||||
|
||||
## How to use - Simple (.WIM)
|
||||
## Applying - Simple (.WIM)
|
||||
Extract wimlib to `Path\` (the folder is only added to %path% if you use `ti-shell.bat`). `wimlib-imagex.exe` should be in the main `Path\` folder, alongside their libraries.
|
||||
|
||||
Drag `run-wim.bat` into `ti-shell.bat`. It will use [RunAsTI](https://github.com/AveYo/LeanAndMean/blob/main/RunAsTI.bat) to execute `run.py`, and apply all mods to your wished for wim file. If you want to know how it works, edit the .bat file.
|
||||
|
@ -27,7 +31,7 @@ If you want to edit offline media, or batch-process .WIMs, move on to [How to us
|
|||
Replace `wimpath` with the path to your .wim, and `1` with the index you want to modify, * for all. Both arguments are optional, though you cannot define an index without a wim. If you run the batch without any arguments, you will be asked for some.
|
||||
|
||||
|
||||
## How to use - Advanced
|
||||
## Applying - Advanced
|
||||
Execute `ti-shell.bat` to elevate to TrustedInstaller. Now execute `run.py` with some arguments, as SYSTEM or TrustedInstaller. Arguments work like this: `arg="value"`. If working with .WIMs, make sure [wimlib](https://wimlib.net/) is in your %path%.
|
||||
|
||||
### Arguments - .WIM:
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
@echo off
|
||||
setlocal
|
||||
cd /d "%~dp0"
|
||||
if "%isTrustedInstaller%" == "1" (
|
||||
echo Do not run this script as TrustedInstaller, run it as Administrator.
|
||||
pause
|
||||
goto exit
|
||||
)
|
||||
echo Setting permissions...
|
||||
icacls "%cd%" /setowner Administrators /T /C /L /Q >nul
|
||||
icacls "%cd%" /reset /T /C /L /Q >nul
|
||||
|
@ -8,4 +13,5 @@ icacls "%cd%" /inheritance:e /T /C /L /Q >nul
|
|||
icacls "%cd%" /inheritance:r /C /L /Q >nul
|
||||
icacls "%cd%" /setowner Administrators /T /C /L /Q >nul
|
||||
icacls "%cd%" /grant Users:(OI)(CI)RX /grant Administrators:(OI)(CI)F /grant "NT SERVICE\TrustedInstaller":(OI)(CI)F /grant SYSTEM:(OI)(CI)F /T /C /L /Q >nul
|
||||
pause
|
||||
pause
|
||||
:exit
|
|
@ -18,6 +18,7 @@ if not "%~1" == "-ti-run" (
|
|||
)
|
||||
|
||||
endlocal & set "pyexe=%pyexe%"
|
||||
set "isTrustedInstaller=1"
|
||||
set "pyexe=%pyexe:"=%"
|
||||
set "path=%cd%\path;%path%"
|
||||
set "cmd=%*"
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
@echo off
|
||||
setlocal
|
||||
cd /d "%~dp0"
|
||||
if "%isTrustedInstaller%" == "1" (
|
||||
echo Do not run this script as TrustedInstaller, run it as Administrator.
|
||||
pause
|
||||
goto exit
|
||||
)
|
||||
echo Setting permissions...
|
||||
icacls "%cd%" /reset /T /C /L /Q >nul
|
||||
pause
|
Loading…
Reference in New Issue