This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 522
Unattended Install #90
Comments
Ah, I read the docs: there's
which partially helps. If, say, you generalized |
..and now I just noticed DistroLauncher could make this smoother maybe with more obvious flags, but this works fine:
|
Or, this is even better: Given that you've grabbted the .appx link for a distro:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to be able to do an unattended install as if from the Microsoft Store. There is
install --root
, which you document prominently:and this is what is used by
https://github.com/microsoft/windows-dev-box-setup-scripts/blob/a0d80679847fc668bdc1706ae29b45da7a65772b/scripts/WSL.ps1#L10
but that team knows they should be installing with a regular user, but declined to explain fully how to actually to implement https://github.com/microsoft/windows-dev-box-setup-scripts/blob/d488050/README.md#how-to-run-the-scripts
From microsoft/WSL#3369 I learned that I make an almost fully-automatic user account by:
But this is really fragile:
I wish this section of code was just slightly different:
WSL-DistroLauncher/DistroLauncher/DistroLauncher.cpp
Lines 39 to 53 in 2ed9a93
or maybe this one:
WSL-DistroLauncher/DistroLauncher/DistributionInfo.cpp
Lines 12 to 14 in 2ed9a93
Could there be a
--unattended
or--default-user
flag that does a clean unattended install? Or, awsl set-user
that would let me change the default user after initially installing with root?The text was updated successfully, but these errors were encountered: