Skip to content
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

Different UI interface from Windows Setup when using Rufus 3.19 #1971

Closed
Wozmar opened this issue Jul 7, 2022 · 7 comments
Closed

Different UI interface from Windows Setup when using Rufus 3.19 #1971

Wozmar opened this issue Jul 7, 2022 · 7 comments
Assignees
Milestone

Comments

@Wozmar
Copy link

Wozmar commented Jul 7, 2022

Why Rufus 3.19 changes the windows 11 boot window after applying the changes.
The original boot image is pictures 1 and 2
After applying the changes, there is no option from photo 2 "Repair your computer"
There are photo windows 4, 5 and 6.
How to restore windows from photos 1 and 2 after applying changes by Rufus 3.19

1
2
3
4
5

@pbatard
Copy link
Owner

pbatard commented Jul 7, 2022

That's just what happens when an unattend.xml is being used, which is what Rufus adds to customize the installation. As far as I know, it's Microsoft that decides whether it shows one type of screen or the other according to whether it detects a windowsPE pass in the unattend.xml.

If you want to see the original screen, you need to uncheck the first two options (Secure Boot/TPM 2.0 bypass and 4 GB+ RAM/64 GB+ disk bypass) when being asked by Rufus.

@pbatard pbatard changed the title Rufus 3.19 Different UI interface from Windows Setup when using Rufus 3.19 Jul 8, 2022
@pbatard pbatard self-assigned this Jul 8, 2022
@pbatard pbatard added this to the 3.20 milestone Jul 8, 2022
@pbatard
Copy link
Owner

pbatard commented Jul 8, 2022

Because this is something I was pondering about doing, mostly because you also get a command prompt briefly appearing while the bypass for Secure Boot/TMP/Disk/RAM are applied to the registry, I have now restored the ability for Rufus to patch the registry keys directly and disable the windowsPE phase from unattend.xml. This should restore the setup UI to the default one.

Note however that this will only work for the regular version of Rufus and not the Windows Store version (which is the reason we changed the way we inserted the registry keys in 3.19 in the first place, because Microsoft restricts the ability of Store apps from editing an offline registry).

@pbatard pbatard closed this as completed in 14f19e5 Jul 8, 2022
@Wozmar
Copy link
Author

Wozmar commented Jul 9, 2022

Rufus 3.18 does not change the original boot image when selecting Extended Windows 11 Installation (no TPM / no Secure Boot).

@pbatard
Copy link
Owner

pbatard commented Jul 9, 2022

That's what I'm saying. Again, "the reason (why) we changed the way we inserted the registry keys in 3.19 in the first place (is) because Microsoft restricts the ability of Store apps from editing an offline registry" which implies that Rufus 3.18 did not change it, since, as I also explained "Microsoft (decides if it) shows one type of screen or the other according to whether it detects a windowsPE pass in the unattend.xml" which is the part we added to 3.19.

The fix I just added to the upcoming Rufus 3.20 restores the behaviour of Rufus 3.18 for the non Windows Store version (since we can't do anything about the Windows Store version and must set the registry keys in unattend.xml, which leads to the setup screens being altered).

@Wozmar
Copy link
Author

Wozmar commented Jul 10, 2022 via email

@pbatard
Copy link
Owner

pbatard commented Jul 11, 2022

Well, because of new issue #1981, it looks like I'm going to be forced to revert the workaround I was planning to apply in Rufus 3.20 in order to restore the default initial Windows Setup screens, because it turns out that it is not possible to bypass the MSA requirement of Windows 11 without also having a windowsPE pass in unattend.xml, and as soon as you have a windowsPE pass in unattend.xml, then the Windows Setup screen are changed...

In short, the only way you'll be able to get the default UI screen is you make unselect ALL the bypass options when creating the media, because I currently see no cost/effective solution where we can avoid using a windowsPE pass altogether (especially if I also want to propose the option to automatically select locale/country to the same as the PC on which the media was created).

I'm still looking, but I'm really not optimistic at this stage...

pbatard added a commit that referenced this issue Jul 13, 2022
…ss is also selected

* In a manner that defies logic, Microsoft designed Windows setup to parse Autounattend.xml
  for windowsPE tasks in the PE environment, but only carry out the copying of that file
  to %WINDIR%\Panther for subsequent processing with the other passes *IF* there exist an
  actual windowsPE section.
* In short, when using the Autounattend.xml method, Microsoft have made all passes there
  dependent on the existence of a windowsPE pass, regardless of whether that pass has any
  use or not.
* Working around this would be fine and all (just add an empty windowsPE pass so that the
  later passes get executed) if the absence of a windowsPE pass didn't also determine
  whether the user will be presented with the default Windows setup screens that include
  the "Repair your computer" option or a completely different set of screens (c.f. #1971).
* This means that, to keep users happy, we need to add yet another method to carry out
  tasks that should have remained the realm of boot.wim's Autounattend.xml, and instead
  create a \sources\$OEM$\$$\Panther\unattend.xml when there are no windowsPE tasks (on
  account that setup copies anything found under \sources\$OEM$\$$\ to %WINDIR%\).
  Only through this can we have the specialize and oobeSystem tasks actually carried out
  (for bypassing MSA requirements of skipping the data collection screens) while keeping
  the original Windows Setup look and feel.
* Closes #1981
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants