TUTORIAL: Create perfect Windows Post-Setup using OOBE.cmd

I have attached the unattended xml, I have tried shortening the hostname, organisation name and company name still same msg. Also just as a tst i used a answer file from https://www.windowsafg.com/win10x86_x64_uefi.html. This worked but some of the apps i put into the script folder did not install despite following the instructions above. Only one that installed ok was 7zip What is a SPPX?

Try to delete this from your unattended. This is the "SPPX" what I was talking about.

Code:
        <component name="Microsoft-Windows-Security-SPP-UX" 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">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>

If it doesn't help, then continue with this part, remove <ProductKey></ProductKey>, try again. If it doesn't help, then remove <CopyProfile>true</CopyProfile>, then it must work.
Code:
        <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">
            <ComputerName>Fractal</ComputerName>
            <CopyProfile>true</CopyProfile>
            <ProductKey></ProductKey>
            <RegisteredOwner>Samuel</RegisteredOwner>
        </component>
 
Try to delete this from your unattended. This is the "SPPX" what I was talking about.

Code:
        <component name="Microsoft-Windows-Security-SPP-UX" 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">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>

If it doesn't help, then continue with this part, remove <ProductKey></ProductKey>, try again. If it doesn't help, then remove <CopyProfile>true</CopyProfile>, then it must work.
Code:
        <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">
            <ComputerName>Fractal</ComputerName>
            <CopyProfile>true</CopyProfile>
            <ProductKey></ProductKey>
            <RegisteredOwner>Samuel</RegisteredOwner>
        </component>
Hi George thank after several attempts booting the answer file i then went back to the unattended menu and just unchecked the product key and the copyprofile it now works thank you.
 
Issue I have now is that the apps that i put under the setup file with the silent switches are not installing. Only app that has installed successfully is 7zip. I have gone to the extent to adding the different switch commands depending on the installer in the text file as you described. With the cmd files do i need to add all of them to the post setup. Or is just the case of them just being in the folders? I added them anyway but it has not made a difference. Just need some clarification thanks
 
I don't think its needed, as updates for different operting system going to fail.. But it can be done by reading filename 6.1 - Windows 7 etc.. But also seems interesting, I will test it to have clear way instead of trying installing W10 update on W7

ege914 write me PM, I want to discuss about more ideas :)
I need subfolder for my custom Acrobat Reader DC installation. Maybe this works, i'll make a cmd file that calls subfolder \AreaderDC\setup.exe
If it works I´ll explain here.
 
I need subfolder for my custom Acrobat Reader DC installation. Maybe this works, i'll make a cmd file that calls subfolder \AreaderDC\setup.exe
If it works I´ll explain here.
Better to repack your needed files into SFX installer using WinRAR
 
Hello i want to set K-Lite-Codec-Pack to a unattended install, but the programm needs a ini file.

In my txt file i wrote: /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /LOADINF="klcp_standard_unattended.ini"

but the install failed, i think its a problem with ini file.
 
Copy your INI file to the image's sources\$OEM$\Setup\Files folder, or use Post-Setup to add a File.
Then change K-Lite's parameter to:

/LOADINF="%WINDIR%\Setup\Files\klcp_standard_unattended.ini"

The file path is very important, because most CMD wrapper scripts don't switch directories while running.
 
K-Lite's /unattend feature creates a unattend.bat; which tries to switch to the proper folder, or recommends using a full path (which we already fixed for you).

@REM Changing working directory to location of installer:
cd /D "%~dp0"
@REM Alternatively, you can specify the full paths to both .exe and .ini file
"K-Lite_Codec_Pack_1670_Basic.exe" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /LOADINF="klcp_basic_unattended.ini"
 
Last edited:
Hello i want to set K-Lite-Codec-Pack to a unattended install, but the programm needs a ini file.

In my txt file i wrote: /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /LOADINF="klcp_standard_unattended.ini"

but the install failed, i think its a problem with ini file.
There is needed only /verysilent switch. Every other setting can be set using REG tweak
Code:
https://www.ntlite.com/community/index.php?threads/k-lite-codec-pack.1917/

Copy your INI file to the image's sources\$OEM$\Setup\Files folder, or use Post-Setup to add a File.
Then change K-Lite's parameter to:

/LOADINF="%WINDIR%\Setup\Files\klcp_standard_unattended.ini"

The file path is very important, because most CMD wrapper scripts don't switch directories while running.
This is not related to this topic. Goal is dynamic setup from DVD / USB instead of copying files to HDD.
 
Cannot, for the love of god, make k-lite installer take into account klcp_standard_unattended.ini.
Tried putting the file in the setup folder and in the $OEM$\$$\Setup\Files as mentioned above - no result.

Applying reg tweaks is a no deal. K-lite installer registers a lot of junk in menus by default, which I don't want. It is too much of a hassle to remove this junk with reg tweaks. I'd rather install it properly the first time with the generated ini file.
 
Cannot, for the love of god, make k-lite installer take into account klcp_standard_unattended.ini.
Tried putting the file in the setup folder and in the $OEM$\$$\Setup\Files as mentioned above - no result.

Applying reg tweaks is a no deal. K-lite installer registers a lot of junk in menus by default, which I don't want. It is too much of a hassle to remove this junk with reg tweaks. I'd rather install it properly the first time with the generated ini file.

this is what i use,

call ..path\KLiteCodec.exe /verysilent /norestart /SUPPRESSMSGBOXES /FORCEUPGRADE /LoadInf="..path\Codec.ini"
 

Attachments

  • WMPC.reg
    51.9 KB
  • Codec Rename To ini.txt
    2.8 KB
Back
Top