ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
21.39k stars 1.32k forks source link

MicroWin - Add custom script to run once after setup / cloudinit #2604

Open ne0YT opened 4 weeks ago

ne0YT commented 4 weeks ago

Is your feature request related to a problem? Please describe. Instead of starting out to install some basic software after setup I would like to have it already installed automatically.

Describe the solution you'd like The possibility to add a powershell script which runs automatically once after the setup

Describe alternatives you've considered doing it manually

MyDrift-user commented 4 weeks ago

I think an appropriate solution would be to add the built in winutil automation feature with it, meaning on ISO creation, the user can attach his exported config with apps/tweaks ... to the ISO which will start winutil with it after first boot. that way we kind of make up for the removal of in depth customisation. (first of all we'd have to improve the current automation system, it is kinda ... when looking into it. @CodingWonders what would u think about it?

CodingWonders commented 4 weeks ago

@MyDrift-user, I have an idea as to how we can do this.

With the JSON file exported:

  1. Add an option that lets the user specify these files
  2. Copy the JSON to the root of install.wim
  3. Add another step to the unattended answer file once the user logs in that runs WinUtil with that JSON configuration

What do you think?

MyDrift-user commented 4 weeks ago

yeah just about what I had in Mind, Think that would be great