Compare commits

..

272 commits

Author SHA1 Message Date
Manuel Thalmann 91e5d860e7 Exclude unnecessary files from backup 2024-09-10 02:39:37 +02:00
Manuel Thalmann 4191d5e89d Add a word of warning after backup 2024-09-10 02:39:09 +02:00
Manuel Thalmann 513d873f0f Add a script for creating backups 2024-09-10 02:39:09 +02:00
Manuel Thalmann 61b898fdd5 Force profile selection for Windows installation actions 2024-09-10 02:39:09 +02:00
Manuel Thalmann 74273705ee Force line endings of Unix scripts 2024-09-10 02:39:09 +02:00
Manuel Thalmann 190248828d Start setup automatically 2024-09-10 02:39:09 +02:00
Manuel Thalmann c1b9674ff0 Show profile selection during setup 2024-09-10 02:39:09 +02:00
Manuel Thalmann 6962f6d323 Add a function for selecting the profile 2024-09-10 02:39:09 +02:00
Manuel Thalmann b8c8fb28f3 Use same installer script for all profiles 2024-09-10 02:39:09 +02:00
Manuel Thalmann d42320ce4a Fix non-functioning WSL installation 2024-09-10 02:39:09 +02:00
Manuel Thalmann 139cf706fc Make Oh-My-Posh theme location dynamic 2024-09-10 02:39:09 +02:00
Manuel Thalmann b74e9c632e Improve performance 2024-09-10 02:39:09 +02:00
Manuel Thalmann d1a0e38805 Update Selenium to the newest version 2024-09-10 02:39:09 +02:00
Manuel Thalmann 03c4f8012f Switch to named flakes 2024-09-10 02:39:09 +02:00
Manuel Thalmann 6e7bfed63e Store user related options properly 2024-09-10 02:39:09 +02:00
Manuel Thalmann e47e98b804 Refactor the directory structure 2024-09-10 02:39:09 +02:00
Manuel Thalmann eee70fdf2a Add code for cleaning up after installations 2024-09-10 02:39:09 +02:00
Manuel Thalmann ae0913e2ef Add functions for uninstalling packages 2024-09-10 02:39:09 +02:00
Manuel Thalmann d10dd9205c Improve assignments of groups 2024-09-10 02:39:09 +02:00
Manuel Thalmann ea3935e737 Remove unnecessary policy change 2024-09-10 02:39:09 +02:00
Manuel Thalmann 4e793a3a83 Migrate winiso script to fish 2024-09-10 02:39:09 +02:00
Manuel Thalmann d3cafda83a Ask for live scripts only once 2024-09-10 02:39:09 +02:00
Manuel Thalmann 6a852059fb Install Ubuntu automatically 2024-09-10 02:39:09 +02:00
Manuel Thalmann f410c33972 Add a backup script for reWASD 2024-09-10 02:39:09 +02:00
Manuel Thalmann 90f97848ce Add a backup script for Visual Studio 2024-09-10 02:39:09 +02:00
Manuel Thalmann 2397a1919d Allow backing up TrackMania Forever 2024-09-10 02:39:09 +02:00
Manuel Thalmann a8bc078525 Allow testing winget packages with specific scope 2024-09-10 02:39:09 +02:00
Manuel Thalmann 69a61e6002 Allow backing up RetroArch 2024-09-10 02:39:09 +02:00
Manuel Thalmann 0a83eb7e10 Add scripts for backing up PuTTY 2024-09-10 02:39:09 +02:00
Manuel Thalmann fb90448395 Add scripts for backing up osu! 2024-09-10 02:39:09 +02:00
Manuel Thalmann 7127bae277 Install osu!lazer per user 2024-09-10 02:39:09 +02:00
Manuel Thalmann 83101c8873 Add backup support for ManiaPlanet 2024-09-10 02:39:09 +02:00
Manuel Thalmann 9c6f6a85e5 Add scripts for backing up and restoring LGHub 2024-09-10 02:39:08 +02:00
Manuel Thalmann d33940c38c Allow users to restore a backup 2024-09-10 02:36:02 +02:00
Manuel Thalmann 6e6cef4392 Add scripts for backing up and restoring personal files 2024-09-10 02:36:02 +02:00
Manuel Thalmann 621e0842ed Fix non-functioning profile script 2024-09-10 02:36:02 +02:00
Manuel Thalmann 5dd9205437 Ensure 7z is installed for backups 2024-09-10 02:36:02 +02:00
Manuel Thalmann 1581ddc80c Streamline restoration of directories 2024-09-10 02:36:02 +02:00
Manuel Thalmann a107654d40 Set a default path for backup artifacts 2024-09-10 02:36:02 +02:00
Manuel Thalmann 372e75d655 Add capabilities to back up apps 2024-09-10 02:36:02 +02:00
Manuel Thalmann 678c56cf78 Allow specifying a backup action 2024-09-10 02:36:02 +02:00
Manuel Thalmann 66779b42cc Ignore unspecified backup archives 2024-09-10 02:36:02 +02:00
Manuel Thalmann 01791b293c Ignore inexistent backup artifacts 2024-09-10 02:36:02 +02:00
Manuel Thalmann 1e35fa150f Make the install script action agnostic 2024-09-10 02:36:02 +02:00
Manuel Thalmann 8c7d22a780 Rename the Windows installer script 2024-09-10 02:36:02 +02:00
Manuel Thalmann fa3e8cf821 Rename outdated script 2024-09-10 02:36:02 +02:00
Manuel Thalmann 253331ea7a Silence errors concerning empty aliae configurations 2024-09-10 02:36:02 +02:00
Manuel Thalmann afd1f38a81 Make Operations script cross platform 2024-09-10 02:36:02 +02:00
Manuel Thalmann 10a64e3424 Handle OneShot tasks only on Windows 2024-09-10 02:36:02 +02:00
Manuel Thalmann a381e0e892 Add a script for managing backups 2024-09-10 02:36:02 +02:00
Manuel Thalmann 1abc314a51 Add tools for managing aliae 2024-09-10 02:36:02 +02:00
Manuel Thalmann 597dcc9b83 Fix non-functioning aliae installation 2024-09-10 02:36:02 +02:00
Manuel Thalmann 36ae05b90d Create dedicated script for creating users 2024-09-10 02:36:02 +02:00
Manuel Thalmann 5991878f2d Create dedicated script for installing software 2024-09-10 02:36:02 +02:00
Manuel Thalmann 08b3f2d1e9 Prevent reading nix config multiple times 2024-09-10 02:36:02 +02:00
Manuel Thalmann b54ec95a7a Ensure only one user is enabled at once 2024-09-10 02:36:02 +02:00
Manuel Thalmann 6346644f76 Prevent unnecessary file creation 2024-09-10 02:36:02 +02:00
Manuel Thalmann 0a586e3323 Execute OneShot tasks in any operation 2024-09-10 02:36:02 +02:00
Manuel Thalmann ecaf4ff7b0 Use /mnt as mount directory 2024-09-10 02:36:02 +02:00
Manuel Thalmann e232b1ce9b Force the use of the managed distribution 2024-09-10 02:36:02 +02:00
Manuel Thalmann 1dcf168a9f Initialize operation for all users 2024-09-10 02:36:01 +02:00
Manuel Thalmann b1a15cfd66 Handle initialization in operation code 2024-08-27 04:15:37 +02:00
Manuel Thalmann 6a38a943c0 Execute script non-interactive during OneShot tasks 2024-08-27 03:50:08 +02:00
Manuel Thalmann 12f0b4aebe Exit script after running OneShot task 2024-08-27 03:45:44 +02:00
Manuel Thalmann 96818ef702 Modify user after first login 2024-08-27 03:27:54 +02:00
Manuel Thalmann a6a2b6331e Rearm Windows Activation before creating MSAcc 2024-08-27 03:25:19 +02:00
Manuel Thalmann 867553c479 Register MSAcc logon script early 2024-08-27 03:24:37 +02:00
Manuel Thalmann d8e31c4361 Allow rebooting without registering setup 2024-08-27 03:11:35 +02:00
Manuel Thalmann 5d89828dc4 Fix non-functioning NoProfile argument 2024-08-27 02:09:04 +02:00
Manuel Thalmann 9961690fea Prevent unnecessary installation actions 2024-08-27 01:57:46 +02:00
Manuel Thalmann 1ed75d314e Only install PowerShell module if necessary 2024-08-27 01:25:32 +02:00
Manuel Thalmann cb24c6bf17 Streamline PowerShell installation 2024-08-27 00:45:46 +02:00
Manuel Thalmann 8faaef98c9 Add further functionality to the WSL script 2024-08-27 00:38:46 +02:00
Manuel Thalmann 6f9437002a Create a separate script for WSL interaction 2024-08-26 23:33:46 +02:00
Manuel Thalmann 3b9c291689 Fix recursive configuration 2024-08-25 03:58:28 +02:00
Manuel Thalmann 171f34bd57 Fix malformed module 2024-08-24 18:35:43 +02:00
Manuel Thalmann fe63a74d88 Keep Windows fixes separate 2024-08-24 16:56:29 +02:00
Manuel Thalmann 42e9b3ddf1 Remove WSL after operation 2024-08-24 16:52:41 +02:00
Manuel Thalmann 8ddce6410a Make distribution name unique 2024-08-24 16:41:05 +02:00
Manuel Thalmann 846e3fee5a Streamline WSL distribution name 2024-08-24 16:27:34 +02:00
Manuel Thalmann 9a62c37880 Remove unused resources after user setup 2024-08-24 16:15:10 +02:00
Manuel Thalmann 85dd40fcbc Print update logs properly 2024-08-24 14:47:51 +02:00
Manuel Thalmann bf0c7abcc3 Allow overriding Windows settings 2024-08-24 14:20:22 +02:00
Manuel Thalmann d83b64608a Update incorrect path 2024-08-24 14:11:38 +02:00
Manuel Thalmann 1d4a62b7e2 Simplify osu!lazer installation 2024-08-24 14:10:02 +02:00
Manuel Thalmann 17e7699179 Determine name of setup user properly 2024-08-24 14:01:05 +02:00
Manuel Thalmann 41e79cdf07 Make OMP configuration platform independent 2024-08-24 13:27:48 +02:00
Manuel Thalmann a298518f37 Fix incorrect character in OMP theme 2024-08-24 13:27:35 +02:00
Manuel Thalmann d0fd6fcc61 Remove unnecessary code 2024-08-24 04:25:07 +02:00
Manuel Thalmann f1a3fd2f25 Remove unnecessary loop 2024-08-24 04:24:55 +02:00
Manuel Thalmann 2f82ae4544 Add missing module 2024-08-24 04:24:37 +02:00
Manuel Thalmann 2af45fbf89 Add nextcloud to the module list 2024-08-24 04:18:57 +02:00
Manuel Thalmann 0df3d90ca9 Add a function for creating shortcuts 2024-08-24 04:18:33 +02:00
Manuel Thalmann f721cd8910 Configure nextcloud syncs 2024-08-24 04:07:47 +02:00
Manuel Thalmann 4db4136aab Allow configuring nextcloud syncs 2024-08-24 04:07:35 +02:00
Manuel Thalmann 478e489911 Create separate option holding win users 2024-08-24 03:25:28 +02:00
Manuel Thalmann a93413d54f Rename Nextcloud installer 2024-08-24 01:50:07 +02:00
Manuel Thalmann 0cda6e7966 Add file system driver for dual boot 2024-08-24 01:41:09 +02:00
Manuel Thalmann 08e4d1e644 Prevent unnecessary config evaluation 2024-08-24 01:31:39 +02:00
Manuel Thalmann 40b88603c6 Fix non-functioning installer 2024-08-24 01:27:26 +02:00
Manuel Thalmann 6c9acc515d Install vscode extensions by default 2024-08-24 01:16:56 +02:00
Manuel Thalmann fcd05a87d2 Load theme file from WSL properly 2024-08-24 00:59:59 +02:00
Manuel Thalmann 588d410741 Update aliae configuration script 2024-08-24 00:42:57 +02:00
Manuel Thalmann 417db2d35b Strip duplicate variables and aliases 2024-08-24 00:08:58 +02:00
Manuel Thalmann b9f27baa9b Install posh theme automatically 2024-08-23 23:53:48 +02:00
Manuel Thalmann 682808480c Export missing function 2024-08-23 23:50:13 +02:00
Manuel Thalmann c97815f065 Install aliae by default 2024-08-23 23:46:23 +02:00
Manuel Thalmann 4b0d0afa4d Add scripts for changing aliae config 2024-08-23 23:44:51 +02:00
Manuel Thalmann 267eb3d7ec Fix compatibility with mixed new line characters 2024-08-23 23:44:23 +02:00
Manuel Thalmann 1ceb0cd8e4 Add a script for installing aliae 2024-08-23 22:38:28 +02:00
Manuel Thalmann 27064c97b5 Add desired posh theme 2024-08-23 19:43:06 +02:00
Manuel Thalmann 3aae307e2a Make option names more clear 2024-08-23 19:42:27 +02:00
Manuel Thalmann d957b98c33 Allow configuring oh-my-posh 2024-08-23 19:39:18 +02:00
Manuel Thalmann 70b3768ec2 Fetch config from proper section 2024-08-23 19:24:49 +02:00
Manuel Thalmann b2541dab68 Adjust configuration accordingly 2024-08-23 19:14:09 +02:00
Manuel Thalmann 020e592065 Refactor option descriptions 2024-08-23 19:02:06 +02:00
Manuel Thalmann 1264202a88 Clean up the Windows configuration 2024-08-23 18:59:49 +02:00
Manuel Thalmann e19429eb3a Clean up the users.nix file 2024-08-23 18:51:54 +02:00
Manuel Thalmann 971daed11f Create dedicated rclone module 2024-08-23 18:48:30 +02:00
Manuel Thalmann fc8113d2cc Move git module to separate directory 2024-08-23 18:42:16 +02:00
Manuel Thalmann cec1feaa2f Move git options to separate module 2024-08-23 18:40:24 +02:00
Manuel Thalmann 0e23435397 Fix inheritance of user config 2024-08-23 18:28:20 +02:00
Manuel Thalmann 66e5405e74 Allow OS specific settings 2024-08-23 18:11:48 +02:00
Manuel Thalmann 3f049600a4 Update archiso 2024-08-23 14:19:56 +02:00
Manuel Thalmann 9b06999370 Set user info during git setup 2024-08-23 02:01:16 +02:00
Manuel Thalmann cda5ce64c5 Make all config scripts platform independent 2024-08-23 01:57:53 +02:00
Manuel Thalmann 708f689113 Allow leaving aliases unspecified 2024-08-23 01:52:25 +02:00
Manuel Thalmann 9505d6891f Make scripts platform independent 2024-08-23 01:52:04 +02:00
Manuel Thalmann 6d74c1b6cc Add scripts for configuring git 2024-08-23 01:43:26 +02:00
Manuel Thalmann ce0473d106 Configure software implicitly 2024-08-23 01:41:32 +02:00
Manuel Thalmann eda3c967ae Skip profile creation for PinnedItem 2024-08-22 23:55:41 +02:00
Manuel Thalmann 2224796241 Allow skipping powershell module registration 2024-08-22 23:55:00 +02:00
Manuel Thalmann 44ae99f063 Add profiles to the flake 2024-08-22 23:37:53 +02:00
Manuel Thalmann f93b3697bc Remove user profile of OneShot user 2024-08-22 23:12:11 +02:00
Manuel Thalmann 63844c8cf5 Add missing OneShotTask declaration 2024-08-22 20:41:30 +02:00
Manuel Thalmann 980489a29d Fix infinite loop 2024-08-22 20:41:17 +02:00
Manuel Thalmann 91993ea2c7 Fix handling empty error messages 2024-08-22 20:12:18 +02:00
Manuel Thalmann 90fc39ef6d Add choco to the profile of the setup user 2024-08-22 13:46:55 +02:00
Manuel Thalmann 19bebca310 Fix incorrect typings 2024-08-22 11:11:12 +02:00
Manuel Thalmann dbd6e5d9d8 Fix permission issues when enabling Win hack 2024-08-22 11:11:00 +02:00
Manuel Thalmann b60c8ca60e Register setup script as admin 2024-08-22 11:10:39 +02:00
Manuel Thalmann 49b58727f2 Execute the entire installer using live scripts 2024-08-21 23:21:32 +02:00
Manuel Thalmann c0f63f7b52 Streamline the creation of users 2024-08-21 18:34:18 +02:00
Manuel Thalmann ef372f7feb Replace osk with cmd during debugging 2024-09-10 01:54:44 +02:00
Manuel Thalmann bdb4eaed80 Prevent pauses in OneShot tasks 2024-09-10 01:54:44 +02:00
Manuel Thalmann c9fbf55d52 Print commands in debug mode 2024-09-10 01:54:44 +02:00
Manuel Thalmann 1fa0a30755 Run OneShot tasks with dedicated user 2024-09-10 01:54:44 +02:00
Manuel Thalmann 43a9d867bb Add function for generating startup command 2024-09-10 01:54:44 +02:00
Manuel Thalmann bd9234e3bb Allow registering startup script for the default user 2024-09-10 01:54:44 +02:00
Manuel Thalmann b0dd02f3ce Prevent unnecessary errors during WSL execution 2024-09-10 01:54:44 +02:00
Manuel Thalmann 4157d698e3 Register WSL before running OneShot tasks 2024-09-10 01:54:43 +02:00
Manuel Thalmann 79d5b6d06c Overwrite broken module 2024-09-10 01:54:04 +02:00
Manuel Thalmann 394d06ae48 Prevent initialization of nested operations 2024-09-10 01:54:04 +02:00
Manuel Thalmann 75383437d8 Improve log messages of OneShot tasks 2024-09-10 01:54:04 +02:00
Manuel Thalmann 253fcbec6e Retry Linux path conversion for errors 2024-09-10 01:54:04 +02:00
Manuel Thalmann a23719f83b Fix typo 2024-09-10 01:54:04 +02:00
Manuel Thalmann 83cb3b33e4 Fix broken signature of Restart-Intermediate 2024-09-10 01:54:04 +02:00
Manuel Thalmann f3b83c78a0 Report unexpected path conversions 2024-09-10 01:54:04 +02:00
Manuel Thalmann 76a293d341 Load missing path 2024-09-10 01:54:04 +02:00
Manuel Thalmann 09cb18a0d5 Ensure error file can be read from 2024-09-10 01:54:04 +02:00
Manuel Thalmann 62d70c1375 Streamline OneShot task handler 2024-09-10 01:54:04 +02:00
Manuel Thalmann 1499099301 Simplify script registration 2024-09-10 01:54:04 +02:00
Manuel Thalmann 7902b864ed Fix broken regedit paths 2024-09-10 01:54:04 +02:00
Manuel Thalmann 34d9511736 Allow registering reboots for users 2024-09-10 01:54:04 +02:00
Manuel Thalmann b644ca406a Prevent users from being excluded 2024-09-10 01:54:04 +02:00
Manuel Thalmann fd9db7a4ff Force copying of Linux users to Windows 2024-09-10 01:54:04 +02:00
Manuel Thalmann a26b1fe78c Improve log messages of updates 2024-09-10 01:54:04 +02:00
Manuel Thalmann bdfc43b805 Remove unnecessary command 2024-09-10 01:54:04 +02:00
Manuel Thalmann c070bde72a Fix time for QEMU VMs 2024-09-10 01:54:04 +02:00
Manuel Thalmann 47e553ee6a Remove unnecessary desktop icons 2024-09-10 01:54:04 +02:00
Manuel Thalmann b3e8319348 Add a timeout for the reWASD downloader 2024-09-10 01:54:04 +02:00
Manuel Thalmann c32f40860c Allow setting a timeout for clicking download buttons 2024-09-10 01:54:04 +02:00
Manuel Thalmann c2e43c73df Emit errors concerning WSL commands 2024-09-10 01:54:04 +02:00
Manuel Thalmann ab95a43bdf Emit errors using Write-Error 2024-09-10 01:54:04 +02:00
Manuel Thalmann ccfe29799a Convert Argument to string explicitly 2024-09-10 01:54:04 +02:00
Manuel Thalmann ecf9e8e689 Ignore unfinished browser downloads 2024-09-10 01:54:04 +02:00
Manuel Thalmann 9ea809adfd Install powershell modules for all users 2024-09-10 01:54:04 +02:00
Manuel Thalmann bcbf53297b Fix typos 2024-09-10 01:54:04 +02:00
Manuel Thalmann 7ebf09b93f Install AutoHotkey as preparation 2024-09-10 01:54:04 +02:00
Manuel Thalmann 0e18b63853 Allow running live scripts in debug mode 2024-09-10 01:54:04 +02:00
Manuel Thalmann c6e7d2d3d5 Generate env variables using shorthand scripts 2024-09-10 01:54:04 +02:00
Manuel Thalmann 7838c7186e Allow running installation in debug mode 2024-09-10 01:54:04 +02:00
Manuel Thalmann d37f4da080 Redirect winiso exit code properly 2024-09-10 01:54:04 +02:00
Manuel Thalmann d611857375 Allow specifying winiso build type 2024-09-10 01:54:04 +02:00
Manuel Thalmann 4553548a3a Refactor winget check for rare issue 2024-09-10 01:54:04 +02:00
Manuel Thalmann 8f820297c7 Disable Windows Update reboot only as admin 2024-09-10 01:54:04 +02:00
Manuel Thalmann 11f80cda08 Add a function for queueing startup commands 2024-09-10 01:54:04 +02:00
Manuel Thalmann 2f2a3f53fb Hide output of DISM commands 2024-09-10 01:54:04 +02:00
Manuel Thalmann a5430d0298 Ensure website is loaded before download 2024-09-10 01:54:04 +02:00
Manuel Thalmann 1e3968fd0d Prevent Jellyfin from rebooting 2024-09-10 01:54:04 +02:00
Manuel Thalmann 3ca7554422 Improve handling of slow websites 2024-09-10 01:54:04 +02:00
Manuel Thalmann aa8513b15a Fix potential CRC errors 2024-09-10 01:54:04 +02:00
Manuel Thalmann 5f4548403c Ensure auto reboot is disabled properly 2024-09-10 01:54:04 +02:00
Manuel Thalmann 65f93af0b3 Disable auto reboot by default 2024-09-10 01:54:04 +02:00
Manuel Thalmann 70c9155bc0 Add methods for managing auto restart feature 2024-09-10 01:54:04 +02:00
Manuel Thalmann b09452a7bc Install Wave Link first 2024-09-10 01:54:04 +02:00
Manuel Thalmann 6c8882efd9 Throw an error when failing to load config 2024-09-10 01:54:04 +02:00
Manuel Thalmann 61be50fb63 Fix incorrect script path 2024-09-10 01:54:04 +02:00
Manuel Thalmann d6d416ce17 Allow leaving install action unspecified 2024-09-10 01:54:04 +02:00
Manuel Thalmann 29a744a154 Retrieve registry value properly 2024-09-10 01:54:04 +02:00
Manuel Thalmann 6274918f4b Add scripts for installing git 2024-09-10 01:54:04 +02:00
Manuel Thalmann cf1de70b3b Remove unnecessary code 2024-09-10 01:54:04 +02:00
Manuel Thalmann 61e38c2bec Add a function for removing the RunOnce key 2024-09-10 01:54:04 +02:00
Manuel Thalmann 7632e91793 Set user groups properly 2024-09-10 01:54:04 +02:00
Manuel Thalmann c481c54f41 Configure MS accounts properly 2024-09-10 01:54:04 +02:00
Manuel Thalmann 741b698a33 Queue next user after configuration finished 2024-09-10 01:54:02 +02:00
Manuel Thalmann 395945ec72 Disable UAC after logging in MS account 2024-09-10 01:53:07 +02:00
Manuel Thalmann f45081ff99 Enable OneShot listener for MS accounts 2024-09-10 01:53:07 +02:00
Manuel Thalmann 2e5fa8f5a0 Set timezone automatically 2024-09-10 01:53:07 +02:00
Manuel Thalmann f19e2eba1a Prevent variable overwrite 2024-09-10 01:53:07 +02:00
Manuel Thalmann ef56c3ab4b Register installer script after disabling UAG 2024-09-10 01:53:07 +02:00
Manuel Thalmann 09984cff8e Redirect user for configuration properly 2024-09-10 01:53:07 +02:00
Manuel Thalmann 869ca8870d Fix broken redirection of arguments 2024-09-10 01:53:07 +02:00
Manuel Thalmann 2063d276ec Determine installer action properly 2024-09-10 01:53:07 +02:00
Manuel Thalmann e8db7ea047 Redirect arguments to chocolatey properly 2024-09-10 01:53:07 +02:00
Manuel Thalmann 0cfa2f2fa0 Fix non-functioning OneShot script 2024-09-10 01:53:07 +02:00
Manuel Thalmann 97cbcc7dfb Fix oneshot task execution 2024-09-10 01:53:07 +02:00
Manuel Thalmann 00aae35c96 Allow removing the OneShot listener 2024-09-10 01:53:07 +02:00
Manuel Thalmann d95396b06b Remove duplicate code 2024-09-10 01:53:07 +02:00
Manuel Thalmann c46d241147 Fix typo 2024-09-10 01:53:07 +02:00
Manuel Thalmann 1696207b0a Fix copy paste error 2024-09-10 01:53:07 +02:00
Manuel Thalmann 52c5a6c6a3 Allow skipping the User parameter 2024-09-10 01:53:07 +02:00
Manuel Thalmann c347ff6377 Fix incorrect script path 2024-09-10 01:53:07 +02:00
Manuel Thalmann aa4c392569 Fix broken scripts 2024-09-10 01:53:07 +02:00
Manuel Thalmann 3a45dfca73 Remove unnecessary confirmation dialogue 2024-09-10 01:53:07 +02:00
Manuel Thalmann a9bd4f5eb4 Add a task for disabling UAC 2024-09-10 01:53:07 +02:00
Manuel Thalmann cfd1559782 Force creation of sudo alias 2024-09-10 01:53:07 +02:00
Manuel Thalmann 8dd65b0ad3 Allow execution of OneShot tasks 2024-09-10 01:53:07 +02:00
Manuel Thalmann 308e86efc8 Ensure CONFIG_MODULE is resolved 2024-09-10 01:53:07 +02:00
Manuel Thalmann add76b3986 Add dedicated functions for creating startup scripts 2024-09-10 01:53:07 +02:00
Manuel Thalmann 1a0e83735c Change login message 2024-09-10 01:53:07 +02:00
Manuel Thalmann 1d8c416fe1 Set up shared WSL 2024-09-10 01:53:07 +02:00
Manuel Thalmann 894eb30f23 Install updates only as admin 2024-09-10 01:53:07 +02:00
Manuel Thalmann a23b51f9f8 Disable boot message only as admin 2024-09-10 01:53:07 +02:00
Manuel Thalmann 54114ffbd2 Add a function for allowing user access 2024-09-10 01:53:07 +02:00
Manuel Thalmann f4eb58a3a1 Fix broken reboot registration 2024-09-10 01:53:07 +02:00
Manuel Thalmann a553bc9cb7 Ensure the script path is detected properly 2024-09-10 01:53:07 +02:00
Manuel Thalmann 9c603d173f Allow automatic script execution for MS accounts 2024-09-10 01:53:07 +02:00
Manuel Thalmann 9ed7773341 Reorder winget arguments 2024-09-10 01:53:07 +02:00
Manuel Thalmann 5b36f75abf Allow registering reboot for the default user 2024-09-10 01:53:07 +02:00
Manuel Thalmann 3decf57f5e Add a dedicated function for disabling boot message 2024-09-10 01:53:07 +02:00
Manuel Thalmann 9dff674894 Implement root install loop using a switch 2024-09-10 01:53:05 +02:00
Manuel Thalmann 8878a7d7fe Force computer reboots 2024-09-10 01:52:02 +02:00
Manuel Thalmann 7e31a0cac5 Add scripts for controlling UAC 2024-09-10 01:52:02 +02:00
Manuel Thalmann d2ddca8ab5 Set displayname of all users 2024-09-10 01:52:02 +02:00
Manuel Thalmann db31ae2419 Login to users for configuration 2024-09-10 01:52:00 +02:00
Manuel Thalmann 40d1ef5c78 Skip PWSH_PATH if undefined 2024-09-10 01:51:28 +02:00
Manuel Thalmann 1b4204cf3b Fix typo 2024-09-10 01:51:28 +02:00
Manuel Thalmann 460a30bf89 Add missing setup stage 2024-09-10 01:51:28 +02:00
Manuel Thalmann 2e92b9f6db Make Get-Users output explicit 2024-09-10 01:51:28 +02:00
Manuel Thalmann d6084b0ee8 Allow displaying a boot message 2024-09-10 01:51:28 +02:00
Manuel Thalmann 5209a9d5d8 Disable users by default 2024-09-10 01:51:28 +02:00
Manuel Thalmann f469bd6eb7 Add a stage for configuring users 2024-09-10 01:51:28 +02:00
Manuel Thalmann a43f09dce4 Detect installation properly 2024-09-10 01:51:28 +02:00
Manuel Thalmann 1baf93c48a Remove unnecessary icon 2024-09-10 01:51:28 +02:00
Manuel Thalmann 8034b77370 Add Predator Z301C to the hardware list 2024-09-10 01:51:28 +02:00
Manuel Thalmann c52ea65121 Add support for the sudo command 2024-09-10 01:51:28 +02:00
Manuel Thalmann 8473cf201f Fix renaming user 2024-09-10 01:51:28 +02:00
Manuel Thalmann 0e940efeeb Make specifying PWSH_PATH optional 2024-09-10 01:51:28 +02:00
Manuel Thalmann f3e1e4ee00 Show error properly 2024-09-10 01:51:28 +02:00
Manuel Thalmann b9dbb50f76 Fix typo 2024-09-10 01:51:28 +02:00
Manuel Thalmann 4068e95504 Remove code duplication 2024-09-10 01:51:28 +02:00
Manuel Thalmann 186d84704d Remove unnecessary console output 2024-09-10 01:51:28 +02:00
Manuel Thalmann 5c6b0c18fd Fix incorrect file paths 2024-09-10 01:51:28 +02:00
Manuel Thalmann 43e6cf47d1 Fix incorrect hardware name 2024-09-10 01:51:28 +02:00
Manuel Thalmann eea20772be Reorder installation steps 2024-09-10 01:51:28 +02:00
Manuel Thalmann 1fc9dafb89 Suppress unnecessary output 2024-09-10 01:51:28 +02:00
Manuel Thalmann 49770fa11b Refactor the wsl installation check 2024-09-10 01:51:28 +02:00
Manuel Thalmann 76496d0a7d Ensure WSL Ubuntu is installed 2024-09-10 01:51:28 +02:00
Manuel Thalmann 39f39238fe Make config script platform independent 2024-09-10 01:51:28 +02:00
Manuel Thalmann 2ab3b3b9cd Leave groups unspecified 2024-09-10 01:51:27 +02:00
Manuel Thalmann 300f629453 Add users during installation 2024-09-10 01:50:39 +02:00
6 changed files with 25 additions and 9 deletions

View file

@ -143,6 +143,7 @@ $null = New-Module {
}
([WindowsInstallerAction]::Backup) {
$finished = $false;
$setupUser = Get-SetupUser;
$adminGroup = @{
SID = [SecurityIdentifier]::new([WellKnownSidType]::BuiltinAdministratorsSid, $null);
@ -154,10 +155,11 @@ $null = New-Module {
Set-BackupStage ([BackupStage]::Initialize);
}
([BackupStage]::Initialize) {
$user = Get-SetupUser;
Add-LocalUser $user;
Add-LocalGroupMember -Member "$user" @adminGroup;
Set-AutologinUser $user;
$null = New-LocalUser $setupUser -NoPassword;
Set-LocalUser $setupUser -PasswordNeverExpires $true;
Set-LocalUser $setupUser -PasswordNeverExpires $false;
Add-LocalGroupMember -Member $setupUser @adminGroup;
Set-AutologinUser $setupUser;
Disable-UAC;
Set-BackupStage ([BackupStage]::Backup);
Restart-Intermediate;
@ -170,6 +172,7 @@ $null = New-Module {
([BackupStage]::BackupUsers) {
$users = @(Get-Users);
$i = Get-CurrentUser;
Disable-LocalUser $setupUser;
for (; $i -lt $users.Count; $i++) {
Set-CurrentUser $i;
@ -178,6 +181,7 @@ $null = New-Module {
if ($env:UserName -ne $user) {
Set-BootMessage "Please Log In" "Please log in with the user ``$user``";
Add-LocalGroupMember -Member "$user" @adminGroup -ErrorAction SilentlyContinue;
Disable-Autologin;
Restart-Intermediate;
return;
} else {
@ -191,6 +195,9 @@ $null = New-Module {
}
Disable-BootMessage;
Write-Host "Never forget to store the backup somewhere safe!";
Write-Host "I mean… what kind of a dumbass would ever forget to do so, right?";
Read-Host "Press enter once you're done";
$finished = $true;
}
}

View file

@ -18,6 +18,7 @@ $null = New-Module {
for (; $i -lt $users.Count; $i++) {
Set-CurrentUser $i;
$name = $users[$i];
$msAccount = Get-UserConfig -UserName $name "microsoftAccount";
if (Test-Admin) {
Disable-BootMessage;
@ -30,8 +31,6 @@ $null = New-Module {
break;
}
([UserStage]::Create) {
$msAccount = Get-UserConfig -UserName $name "microsoftAccount";
if ($env:UserName -ne $name) {
$userInfo = @{
name = $name;
@ -85,6 +84,10 @@ $null = New-Module {
Add-LocalGroupMember -Member "$name" -Name "$group";
}
if (-not $msAccount) {
net user $name /logonpasswordchg:yes;
}
Set-UserStage ([UserStage]::Cleanup);
}
([UserStage]::Cleanup) {
@ -210,7 +213,9 @@ $null = New-Module {
Set-SetupOption $loggedInUserOption $env:UserName;
Invoke-OneShot ([OneShotTask]::InitializeMSAccount);
} else {
New-LocalUser -NoPassword @userArguments;
New-LocalUser -NoPassword $Name;
Set-LocalUser $Name -PasswordNeverExpires $true;
Set-LocalUser $Name -PasswordNeverExpires $false;
Initialize-UserCreation;
}
}

View file

@ -71,10 +71,12 @@ function Install-WslDistribution {
$registryPath = "HKCU:/Software/Microsoft/Windows/CurrentVersion/Lxss";
$key = Get-Item $registryPath;
if (Get-AppxPackage $ubuntuPattern) {
if (-not (Get-AppxPackage $ubuntuPattern)) {
Install-Wsl;
}
wsl --shutdown;
if ($key) {
$key = $key | Rename-Item -NewName "$(Split-Path -Leaf $key)_" -PassThru;
}

View file

@ -22,7 +22,7 @@ param(
$candidates = Get-Process | Where-Object { $_.Path -and ((Split-Path -Leaf $_.Path) -eq $hubName) };
if ($candidates.Count -gt 0) {
$lghubPath = $()[0].Path;
$lghubPath = $candidates[0].Path;
} else {
$lghubPath = $null;
}

View file

@ -24,6 +24,7 @@ Documents/SEGA
Documents/SEGA Mega Drive Classics
Documents/SQL Server Management Studio
Documents/Square Enix
Documents/Steam Cloud
Documents/TI-Nspire CX
Documents/TmForever
Documents/TrackMania

View file

@ -20,6 +20,7 @@ param(
"Presets",
"Profiles/Destop",
"Profiles/Duality",
"Profiles/Handheld",
"Profiles/Fortnite",
"Profiles/PS4 Remote*",
"Profiles/Switch console",