opus-nt/README.md

58 lines
3.2 KiB
Markdown
Raw Permalink Normal View History

2021-03-21 00:22:23 +00:00
## Opus-NT
2022-06-28 07:00:01 +00:00
A windows homebrew kit and collection of mods. Can mod .WIM (this is where main-support is), online and offline windows installations. Mods are written for 7 and up, but are likely to work with Vista and up. **Certain parts are still untested, so bear with me.**
2021-03-21 00:22:23 +00:00
2022-01-02 19:11:55 +00:00
## Mods
[View mod documentation](docs/index.md) - Can also be viewed locally, in a browser (index.html).
2021-03-21 00:22:23 +00:00
## Prerequisites
* **Python:** https://www.python.org/downloads/ (Get 3.8.* if you're on 7, devs are soy)
2021-12-29 21:21:04 +00:00
* **colorama** (optional)**:** `py -m pip install colorama`
2021-03-21 00:22:23 +00:00
* **wimlib:** https://wimlib.net/ (if working with .WIMs)
2022-06-28 06:55:14 +00:00
## 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)
2022-06-28 06:22:12 +00:00
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.
2021-03-25 12:31:27 +00:00
2022-06-28 06:55:14 +00:00
## Applying - Simple (.WIM)
2022-06-28 06:22:12 +00:00
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.
2021-03-21 23:21:07 +00:00
2021-05-23 10:38:57 +00:00
If Python shows no exceptions, the script likely ran successfully.
2021-03-21 23:21:07 +00:00
2022-07-05 13:39:45 +00:00
If you want to edit offline media, or batch-process .WIMs, move on to [Applying - Advanced](#applying-advanced).
2021-03-21 23:21:07 +00:00
### Arguments:
2022-06-28 06:22:12 +00:00
`run-wim.bat "wimpath" 1`
2021-03-21 23:21:07 +00:00
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.
2022-06-28 06:22:12 +00:00
2022-06-28 06:55:14 +00:00
## Applying - Advanced
2022-06-28 06:22:12 +00:00
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%.
2021-03-21 00:22:23 +00:00
### Arguments - .WIM:
* **wim:** Point to a wim file (**required**)
* **index:** Choose the index to apply to. Starts at 1, use \* for all (**required**)
* **tmp:** Set temporary folder
**Example:** `run.py wim="E:\sources\install.wim" index=*` - Applies tweaks to all indexes of `E:\sources\install.wim`.
### Arguments - Offline media:
* **path:** Point to a Windows install, likely a drive with a `Windows` folder (**required**)
2021-03-21 01:21:43 +00:00
**Example:** `run.py path="D:"` - Applies tweaks to `D:\`.
2021-03-21 00:22:23 +00:00
2022-06-28 06:22:12 +00:00
### Arguments - Online:
None.
**Example:** `run.py online`
2021-03-21 00:22:23 +00:00
### Arguments - General:
* **modpath:** Folder to source mods from.
**Example:** `run.py modpath="mods-trustedInstaller" wim="E:\sources\install.wim" index=*` - Apply mods that require to be executed by TrustedInstaller to all indexes of `E:\sources\install.wim`.