riklus / win10install-onusb

This batch script allows you to install Windows 10 on an external usb drive.
MIT License
5 stars 1 forks source link

Compatibility with autounattend.xml #2

Open CortexReaver opened 3 weeks ago

CortexReaver commented 3 weeks ago

Hello, I've got another question rather then a bug report. I've decided to make an unattended installation of windows using this guide: https://github.com/memstechtips/UnattendedWinstall?tab=readme-ov-file My question is, will it work with your script? Or do I need to add some commands in it for Windows installation be able to see the autounattend.xml?

I can try to see it myself if it works "as it is", but I rather ask you first to not waste my time :)

riklus commented 3 weeks ago

From my understanding, it seems that memstechtups' project already suggests a way to partially automate the install using Ventoy. As you suggest some command flags are probably needed to load the "autounattend.xml" file, most likely here. Take a look at this documentation page, I think it could help you achieve what you want.

CortexReaver commented 3 weeks ago

Got it, so in my case it wiil be:

echo [i] Deploying Windows Image...
dism /Apply-Image /ImageFile:R:\RecoveryImage\install.esd /Apply-Unattend:G:\autounattend.xml /Index:1 /ApplyDir:W:\
riklus commented 3 weeks ago

Most likely, you could test it and then make a PR like: "if 'autounattend.xml' is present in the USB then use it in the install section".

CortexReaver commented 2 weeks ago

No, it doesn't work for some reason... I still get windows full of crap after the installation was finished.