-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
|
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: