MiniBook X (Multiple Models) - How to Perform an Unattended Install

Before we begin, let’s talk about why you might want to perform a fully automated installation of Windows. On the MiniBook X in particular, there is an odd behavior by the system when Windows is installed from scratch. During the installation process, the screen will be rotated by 90 degrees making installation a challenge. By performing an unattended installation, you avoid this problem because the entire setup proceeds without needing any input from you whatsoever. You boot from your UFD (USB Flash Drive) and walk away. A few minutes later, Windows is 100% fully installed with all drivers already in place.

Why not just use the system image from the Chuwi? Put simply: The further out you are from the initial release of your system, the more out of date the factory image will be. It may have an old version of Windows and old drivers. Plus, this method makes updating your installation media easy. You only need to follow this whole procedure once. From there on, you can follow the steps in “Appendix B: Updating Your Installation Media”.

Follow all the steps below.

Start by creating a Windows installation UFD (USB Flash Drive). You can use whatever method you prefer - Microsoft Media Creation Tool (MCT), RUFUS, etc. If you do not want to use a third party utility, follow these steps to create the UFD manually. If you do plan to create the UFD using RUFUS, MCT, etc. then please create the disk now and then skip to “Done creating UFD”.

  1. Run diskpart.

  2. From the diskpart> prompt, run this command:

list disk

  1. From the size of the disks, try to determine which disk ID is your thumb drive. If that is not enough information, run these commands to get more detail on the disk. In this example, I want more info on disk 4:

select disk 4
detail disk

  1. When you determine the correct disk, run these commands. I am assuming disk 5 in the following example:

select disk 5
clean
convert mbr
create partition primary size=1000
active
format fs=fat32 quick
assign
create partition primary
format fs=ntfs quick
assign
exit

NOTE: The assign commands will assign the next available drive letter. If you want to assign specific drives letters, for example E:, use the command assign letter=E.

  1. We will now copy files from the source to the two partitions on the thumb drive. To be clear, all the files and folders that you are being asked to copy come from your source Windows ISO image.

Follow these steps to copy files to your thumb drive:

• Copy all files and folders EXCEPT the \sources folder to the FAT32 partition (the first, smaller partition).

• If you are planning to use an autounattend.xml answer file, place it in the root of the first (FAT32) partition. We will create this file later. You may not have that file yet. When done creating it, place it on the 2nd partition (the NTFS partition) in the root of that partition.

• Create a folder called sources on the FAT32 partition.

• Copy the file \sources\boot.wim to the FAT32 partition \sources folder.

• Create a folder called sources on the NTFS partition (the second, larger partition).

• Copy all files and folders from the \sources folder EXCEPT boot.wim to the \sources folder on the NTFS partition.

• Copy the folders boot, efi, and support from the source to the root of the NTFS partition. Note that these three folders will now exist on both the first and second partitions. These are VERY small folders, so the duplication of data is very minor.

At this point, you should have a bootable thumb drive.

NOTE: When booting you may be presented with an option to boot either the FAT32 or the NTFS partition. Choose the FAT32 partition. If it is not clear which one the FAT32 partition is, simply try either. If it doesn’t work, reboot and try the other.

- Done Creating UFD -

- Obtain System Drivers -

We want to allow Windows to install all the system drivers automatically. As a result, when Windows installation is done, all drivers will already be in place without the need to install any of them manually.

- Option #1 -

If you already have a working installation of Windows with all drivers installed and working properly, then you can simply export the existing drivers. The advantage to this method is that it is very simple to perform and it will include any updated drivers that may have been added to the system since the original drivers were installed. If you want to use this option, follow these steps:

Open a command prompt and run these commands:

MD C:\DriversBackup
pnputil /export-driver * C:\DriversBackup

Skip to “Done Obtaining Drivers”

- Option #2 -

If you don’t have Windows installed, or if you don’t have all the correct drivers installed, or if you simply want to start clean with the original drivers that were initially shipped with the system, then you can use the original drivers for the Chuwi. To do this, follow these steps:

Create a folder called C:\DriversBackup.

Download the original driver set for your system from the Chuwi Web Site. Extract all the files and folders into the C:\DriversBackup folder. You will end up with a bunch of subdirectories under C:\DriversBackup with each folder containing one driver.

NOTE: There will be updated drivers since the time that the original drivers were released. By following this method, you will not have the latest drivers from the start, but Windows should be able to update these drivers in the background. You will start with the drivers that were originally shipped, but these can be updated. You can either check for updates manually or just let Windows do it in the background on its own schedule.

- Done Obtaining System Drivers -

- Create a $OEM$ folder -

In order to automatically install drivers, we create a $OEM$ folder into which we will place the drivers and a script. Create the $OEM$ folder under the \Sources folder of the Windows installation disk that you created earlier. Create that folder and the subfolders as shown below:

NOTE: If you have created your Windows installation disk with two partitions, create the $OEM$ folder in the \Sources folder on the 2nd partition (the larger NTFS partition).

±–$OEM$
| ±–$$
| | —Setup
| | —Scripts
| —$1
| ±–Drivers

To clarify the above, under $OEM$ create two subfolders named $$ and $1. Under $$ create a subfolder named Setup and under Setup create a folder named Scripts. Under $1 create a folder named Drivers.

Copy all the subfolders from C:\DriversBackup into the Drivers folder. You should now have a bunch of subfolders under the \Sources$OEM$$1\Drivers folder, each containing one driver.

TIP: You may also want to make a backup copy of C:\DriversBackup for future use.

Copy the text below into notepad and save it to the \Sources\$OEM$\$$\Setup\Scripts folder as SetupComplete.cmd.

REM * Last updated on Oct 20 2026 *


@echo off
pushd C:\Drivers

REM * The lines below install all drivers *

pnputil /add-driver C:\Drivers\*.inf /subdirs /install
popd

REM * Remove the drivers folder *

RD "C:\Drivers" /S /Q

REM * Set the system to reboot when setup is done , and delete this batch file and the scripts folder
REM from where it is run.

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v PostSetupReboot /t REG_SZ /d "shutdown /r /t 0" /f

RD "C:\Windows\Setup\Scripts" /S /Q
del "%~f0"

- How to handle Boot Critical Drivers -

Does your system require any Boot Critical Drivers? First, let’s define this term…

Boot Critical drivers are drivers that are not loaded by Windows setup but that are necessary for your system to install Windows. As an example, let’s say that you are using a RAID array and Windows does not include a driver for this RAID array. These necessary drivers are known as “boot critical drivers” because they are absolutely necessary in order to install Windows. Note that boot critical drivers can include drivers other than just storage drivers. As an example, on the MiniBook X, the touchpad and touchscreen require drivers in order to use them during Windows setup. Granted, I may not need the touchpad or touchscreen during installation if it is fully automated, but I load it anyway.

To do this, create a folder on your UFD called $WinPeDriver$. If you have two partitions on your UFD, create this folder on the root of the second partition (the larger NTFS partition). Drop the folders for the drivers into this folder. You can create as many subfolders as you need.

For the MiniBook X I load 3 drivers:

GPIO Driver: Has a .inf file named “ialpss2_gpio2_adl_n.inf”
I2C Driver: Has a .inf file named “ialpss2_i2c_adl_n.inf”
Touchscreen Driver: Has a .inf file named “goodixtouchdriver.inf”

The above should help you to identify the correct drivers to drop into the $WinPeDriver$ folder.

- Last Step - Create an autounattend.xml answer file -

Copy the text below between into notepad. By default, this unattended installation file will install Windows with these settings:

Username: WinUser
Full User Name: Windows User
Windows Edition: Pro
Time Zone: US Central Time
Install to Disk: 0
Password: Password1

If you wish to change any of the above settings, please do so now. The comments will show you what to change.

<?xml version="1.0" encoding="utf-8"?>

<!-- Last updated October 20, 2026

* IMPORTANT NOTES
*
* Make sure to read all the commented sections below. Some are extremely
* important to make sure you do not accidentally wipe an incorrect disk.
*
* Please note that sections in which commands are run have an order
* specified for each command. The first entry must have an order of 1,
* the second such entry will have an order of 2, etc. If you add or
* remove entries to these sections, make sure to alter the order values 
* as needed.
*
* This answer file is for UEFI based systems only.
*
* It includes a Windows 11 Pro key.
*
* It creates an Admin level user named "WinUser", full name "Windows User" with a password of "Password1".
*
* Time zone is set to US Central Time. Change this if needed.
*
* END OF IMPORTANT NOTES
-->

<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<!--
* Here we create the partitions for use by Windows. We are creating the partitions like this:
*
* Partion Type   |     Size (in MB)       | Format
* ================================================
*     EFI        |            260         | FAT32
*     MSR        |            128         | NONE
*   Windows      |      See Note Below    | NTFS
*   Recovery     |      See Note Below    | NTFS
* ================================================
* 
* The Windows partition will automatically consume all remaining space on the drive but will then be shrunk to leave enough room for the
* Recovery partition. The Recovery partition is automatically sized.
-->
<!--

* Make 100% sure that the correct DiskID is specified below because that disk will be wiped!

-->
<!--

* Change the line below to the correct DiskID. This disk will be wiped so you need to be 100% sure that this is the correct disk. To determine
* the correct Disk ID, follow the steps in "Appendix A: How to determine the Disk ID of the disk to which Windows will be installed".

-->
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>260</Size>
                            <Type>EFI</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Type>MSR</Type>
                            <Size>128</Size>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>3</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Format>FAT32</Format>
                            <Label>System</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Format>NTFS</Format>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                            <Order>3</Order>
                            <PartitionID>3</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                </Disk>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
<!--

* Once again, make 100% sure that the correct DiskID is specified below

-->
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>3</PartitionID>
                    </InstallTo>
                    <Compact>false</Compact>
                </OSImage>
            </ImageInstall>
            <UserData>
<!--

* By default, we are specifying the Windows Pro edition generic installation key below. Below
* we list the Home and Pro edition keys so that you can simply copy and paste from here. If
* you need the key for a different edition of Windows, please visit this web site:
*
* https://www.elevenforum.com/t/generic-product-keys-to-install-or-upgrade-windows-11-editions.3713/
*
* Generic installation product keys for Home and Pro editions:
*
* Home edition key: YTMG3-N6DKC-DKB77-7M9GH-8HVX7
* Pro edition key:  VK7JG-NPHTM-C97JM-9MPGT-3V66T
*
* IMPORTANT: These are NOT activation keys. The purpose of these keys is to tell setup what edition
* of Windows to install. Since this is an unattended setup of Windows, setup needs to know this so
* that it does not need to ask you to specify an edition to install.

-->
                <ProductKey>
                    <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
<!--

* The first 3 Synchronous Commands below bypass the Windows 11 system requirement checks.
*
* You can leave these in place even on a system that meets all Windows 11 requirements as
* it will have no effect on those systems.

-->
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <ProtectYourPC>1</ProtectYourPC>
                <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
            </OOBE>
<!--

* In the section below, "Name" is the actual user name to be created. "DisplayName" is
* a friendly version of that name that is displayed in places like the Logon screen.

-->
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
<!--

* Below, we are specifying the password for the user account. Note that this password is encrypted. We are
* currently using a password of "Password1". You should NOT change this password unless you know the proper
* way to do so. If you do need to change this password, then you should PM me so that I can provide
* instructions on how to do so correctly.

-->
                        <Password>
                            <Value>UABhAHMAcwB3AG8AcgBkADEAUABhAHMAcwB3AG8AcgBkAA==</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <DisplayName>Windows User</DisplayName>
                        <Group>Administrators</Group>
                        <Name>WinUser</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
<!--

* By default, we are setting the system Time zone to "Central Standard Time". If you want to set a different
* time zone, please change that line below. Note that you can get a list of valid time zones by opening a
* command prompt and run the command "tzutil /L".  The second line of each group lists the name of the
* time zone that you can use. Enter the name precisely as shown by this command.

-->
            <TimeZone>Central Standard Time</TimeZone>
<!--

* This registry entry works around a bug with the option to automnically logon once. AutoLogon erroneously adds 1 to
* LogonCount value. As a result, you must subtract 1 from the number of times you want it to logon. To logon once,
* you must make the LogonCount 0. Unfortunately, Windows properly understands a LogonCount of 0 as meaning "Never
* AutoLogon". To correct this, we must make the LogonCount 1 and use the registry entry to correct for this problem.
*
* Please leave this setting as it is set now.

-->
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>reg add &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&quot; /v AutoLogonCount /t REG_DWORD /d 0 /f</CommandLine>
                    <Order>1</Order>
                </SynchronousCommand>
<!--

* In OOBE you can disable the network to prevent updates from being
* installed during setup. You only need this block if you use that
* option. This re-enables the network before the user sees the
* desktop to allow for proper operation of the system.
*
* My suggestion is to leave this setting as is.

-->
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <CommandLine>powershell.exe -Command &quot;Get-NetAdapter | ForEach-Object { Enable-NetAdapter -Name $_.Name -Confirm:$false }&quot;</CommandLine>
                </SynchronousCommand>
<!--

* The main purpose of the registry entry below is to turn off Microsoft
* cloud-powered content suggestions and recommendations, online tips, and
* "Microsoft curated" content. It will also have the side effect of causing
* the Start screen to have very few pinned apps resulting in a very clean
* start screen.

-->
                <SynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <CommandLine>reg add HKLM\Software\Policies\Microsoft\Windows\CloudContent /v DisableCloudOptimizedContent /t reg_dword /d 0x00000001 /f</CommandLine>
                </SynchronousCommand>
<!--

* Below, we are specifying the same password that we created earlier. Note that this password is encrypted.
* You should NOT change this password unless you know the proper way to do so. If you do need to change this
* password, then you should PM me so that I can provide instructions on how to do so correctly.

-->
            </FirstLogonCommands>
            <AutoLogon>
                <Password>
                    <Value>UABhAHMAcwB3AG8AcgBkADEAUABhAHMAcwB3AG8AcgBkAA==</Value>
                    <PlainText>false</PlainText>
                </Password>
<!--

* The user that you specify here must match a username that you created.

-->
                <Username>WinUser</Username>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
            </AutoLogon>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OEMInformation>
                <Manufacturer></Manufacturer>
                <SupportHours></SupportHours>
                <SupportPhone></SupportPhone>
                <SupportURL></SupportURL>
            </OEMInformation>
            <ComputerName></ComputerName>
            <OEMName></OEMName>
<!--

* Use the same time zone that you specified earlier. The same notes apply to this as was explained earlier.

-->
            <TimeZone>Central Standard Time</TimeZone>
        </component>
        <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <RunSynchronous>
<!--

* This command disables all network adapters. Use this to prevent ALL updates from being installed during setup.
* Note that if you use this option you should also use the option to re-enable the network adapters before the
* Desktop is presented to the user to restore normal operation.

-->
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>powershell.exe -Command &quot;Get-NetAdapter | ForEach-Object { Disable-NetAdapter -Name $_.Name -Confirm:$false }&quot;</Path>
                </RunSynchronousCommand>
<!--

* The entry below will prevent Automatic Device Encryption during Windows setup.

-->
                <RunSynchronousCommand wcm:action="add">
                    <Path>reg add HKLM\System\CurrentControlSet\Control\BitLocker /v PreventDeviceEncryption /t reg_dword /d 0x00000001 /f</Path>
                    <Order>2</Order>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
</unattend>

After making the appropriate changes to the answer file, save it from notepad with a name of “autounattend.xml”. Place the file on the root of the Windows installation disk. If you are using a dual partition disk, place this file on the second partition (the larger NTFS partition). The file will work on either partition; I just like to place all my customized files on the same partition.

- Install Windows -

IMPORTANT: If you have not yet verified the correct DISK ID for the disk to which Windows is to be installed on, then please go to “Appendix A: How to determine the Disk ID of the disk to which Windows will be installed” below, follow those steps, then come back here to continue. If you are not using an autounattend.xml and only automating the installation of drivers, you can simply proceed with the steps below. On my MiniBook X N100 and the N150, the internal disk is disk 0, but I encourage you to verify this. Since the MiniBook only has a single drive you don’t risk wiping out the wrong drive other than the UFD, but verifying the correct disk ID is a good habit to have.

FINAL WARNING: If you are using an autounattend.xml answer file, this is your final warning that the disk you specify in the answer file will be wiped when you boot from the UFD.

Boot the system from the UFD. If you created everything correctly, Windows installation will begin. Windows will install fully automatically. After Windows is done being installed, wait until the system reboots and you are sitting at a login screen. You may see the desktop for a a couple of minutes before the final reboot. Once the final reboot takes place, you are done.

END OF PROCEDURE

Appendix A: How to determine the Disk ID of the disk to which Windows will be installed

To determine the correct disk ID to which Windows is to be installed, follow these steps:

  1. If you have the autounattend.xml file present on your Windows installation disk, rename it now to prevent accidentally wiping out a disk when you boot from that disk. I suggest a name of autounattend.xml.bak.

  2. Reboot your computer from the UFD. Windows installation will begin. Don’t worry, we are not yet making any changes to your installation!

  3. Windows setup will pause at a static screen asking you for information such as the language to use, etc. At this point, press SHIFT + F10 to open a command prompt.

  4. At the command prompt, run the command “diskpart”. Wait for the “DISKPART>” prompt to be displayed before going to the next step.

  5. At the “DISKPART>” prompt, run the command “list disk”.

  6. Each disk will be shown with the Disk # aka “Disk ID”. Hopefully, the disk size of each disk will be shown. Hopefully this is enough to help you identify the disk to which you want to install Windows. If this is not enough, then run these commands to get more info on each disk:

select disk 0
detail disk

You can repeat the above two commands changing the “0” to “1”, “2”, etc. to see the details for the other disks.

Make sure to remember the disk number (disk ID) for the disk to which you want to install Windows.

  1. Close all open Windows and allow the system to reboot into Windows. If you need to remove the UFD to boot from your internal drive, please do so.

  2. Rename the autounattend.xml.bak back to autounattend.xml and change the disk ID to the correct ID if you need to make any change. Note that the disk ID shows up twice in the file. Be sure to change both instances.

Done!

Appendix B: Updating Your Installation Media

To update your installation media, follow these steps:

  1. Make backup copies of the autounattend.xml file, the $OEM$ folder, and the $WinPeDriver$ folder.

  2. Re-create your Windows UFD.

  3. Copy the items that you backed up back to the UFD.

Done!

If you have any questions or concerns, or discover any flaws in my procedure, please do let me know!

2 Likes