Page 1 of 1

[SOLVED] tis-wapt-upgrade-windows11

Published: September 21, 2022 - 5:07 PM
by thomas789
Good morning,

- WAPT Enterprise 2.2.1.11935
- Agent version: 2.2.1
- server OS (Linux)
- OS administration (Windows)

I tried using the package to upgrade to Windows 11 but I get the following error:

Code: Select all

Free disk space: 309653110784 bytes
C:\WindowsUpgrade folder exists, continuing...
Free disk space: 309653110784 bytes
Upgrading Windows from version: 10.0.19043 to Windows 11 version: 10.0.22000
Traceback (most recent call last):
  File "C:\WINDOWS\TEMP\wapthia1lb05\setup.py", line 76, in install
  File "C:\Program Files (x86)\wapt\common.py", line 3817, in run
    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2126, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command '"C:\\WindowsUpgrade\\setup.exe" /auto upgrade /quiet /eula accept /noreboot /telemetry disable /showoobe none /dynamicupdate disable  /copylogs "C:\\WindowsUpgradeLogs\\win11_upgrade_logs"' returned non-zero exit status 1.
Output:'"C:\WindowsUpgrade\setup.exe"' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Indeed, no files were deployed to the machine in "C:\WindowsUpgrade\".

For your information, the tis-windows11-requirements package was successfully installed.

Thanks in advance.

Re: tis-wapt-upgrade-windows11

Published: September 22, 2022 - 3:21 PM
by dcardon
Hello thomas789,

The package does not include the ISO by default; it must be added. See the package description message [1]:

Code: Select all

You must execute the "update-package" and "build-package" for every single necessary language before deploying the package
Sincerely,

Denis

[1] https://store.wapt.fr/store/tis-windows11-upgrade

Re: tis-wapt-upgrade-windows11

Published: September 27, 2022 - 1:33 PM
by thomas789
Good morning,

I am following your instructions:

Code: Select all

Method 1:
    1- Place your desired Windows 11 ISO in the package and run the update_package function
    2- Build-upload the package
And I get this error:

Code: Select all

FATAL ERROR : EWaptMissingPackageHook: No update_package function found in setup module for c:\waptdev\***-windows11-upgrade_10.0.22000-97_x64_windows_6.1_PROD_fr-wapt\setup.py
The iso file was indeed pasted into the wapt package.

THANKS.

Re: tis-wapt-upgrade-windows11

Published: September 29, 2022 - 3:11 PM
by jpele
Hello,
You must be on version 2.2.2 to use the `update_package()` function, which was moved from `setup.py` to `update_package.py` in this version.
For your information, an update is planned for this package in the near future; we haven't yet tested version 22H2 with this package. However, it should work, so => ​​"use at your own risk".

Regards,
Jimmy

Re: tis-wapt-upgrade-windows11

Published: September 30, 2022 - 3:12 PM
by thomas789
Good morning,

Indeed, I was able to update our WAPT server to v2.2.3, and the package manager was able to perform the update package (with my Windows 11 ISO) as well as the build package. However, the installation fails:

Code: Select all

EWaptSetupException: Fatal error : Command \'"C:\\\\WindowsUpgrade\\\\setup.exe" /auto upgrade /quiet /eula accept /telemetry disable /showoobe none /dynamicupdate enable  /copylogs "C:\\\\WindowsUpgradeLogs\\\\win11_force_upgrade_logs"\' returned non-zero exit status 1.\nOutput:\'"C:\\WindowsUpgrade\\setup.exe"\' n\'est pas reconnu en tant que commande interne\r\nou externe, un programme exécutable ou un fichier de commandes.\r\n\n']]
No files were placed in C:\WindowsUpgrade or C:\WindowsUpgradeLogs on the affected machine. Are there any missing prerequisites?

THANKS.

Re: tis-wapt-upgrade-windows11

Published: September 30, 2022 - 5:33 PM
by jpele
Hello,
I was able to validate the package on my end, no issues of that kind.
I suggest you try the forced installation.

Regards,
Jimmy

Re: tis-wapt-upgrade-windows11

Published: October 3, 2022 - 8:53 AM
by thomas789
Good morning,

The same thing, but forced:

Code: Select all

Installing ***-windows11-upgrade(=10.0.22621-98)
Free disk space: 188838961152 bytes
C:\WindowsUpgrade folder exists, continuing...
Free disk space: 188838961152 bytes
Force Upgrading Windows from version: 10.0.19044 to Windows 11 version: 10.0.22621
Erreur lors de l'installation de ['***-windows11-upgrade']: erreurs dans les paquets [[PackageRequest(package='***-windows11-upgrade',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.19044.2'),max_os_version=Version('10.0.19044.2')), PackageEntry('***-windows11-upgrade','10.0.22621-98' architecture='x64',maturity='PROD',locale='fr',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Windows\\TEMP\\wapt18wdbmnj\\setup.py", line 66, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3840, in run\n    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2138, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"C:\\\\WindowsUpgrade\\\\setup.exe" /auto upgrade /quiet /eula accept /telemetry disable /showoobe none /dynamicupdate enable  /copylogs "C:\\\\WindowsUpgradeLogs\\\\win11_force_upgrade_logs"\' returned non-zero exit status 1.\nOutput:\'"C:\\WindowsUpgrade\\setup.exe"\' n\'est pas reconnu en tant que commande interne\r\nou externe, un programme exécutable ou un fichier de commandes.\r\n\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5186, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4156, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4063, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt18wdbmnj\\setup.py", line 72, in install\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1913, in error\n    raise EWaptSetupException(\'Fatal error : %s\' % reason)\nwaptutils.EWaptSetupException: Fatal error : Command \'"C:\\\\WindowsUpgrade\\\\setup.exe" /auto upgrade /quiet /eula accept /telemetry disable /showoobe none /dynamicupdate enable  /copylogs "C:\\\\WindowsUpgradeLogs\\\\win11_force_upgrade_logs"\' returned non-zero exit status 1.\nOutput:\'"C:\\WindowsUpgrade\\setup.exe"\' n\'est pas reconnu en tant que commande interne\r\nou externe, un programme exécutable ou un fichier de commandes.\r\n\n']]
- Is there a minimum version of Windows 10 required for the upgrade (I'm on 21H2)?
- What about the KB prerequisites validated from my WAPT Windows Update repositories?
- A question of rights?

Thank you, Thomas.

Re: tis-wapt-upgrade-windows11

Published: October 3, 2022 - 12:20 PM
by sfonteneau
I just noticed that the package does not force the copy of

Code: Select all

C:\WindowsUpgrade


So if the previous copy crashed, then it will indeed crash.

In fact, we're doing an mkdirs, so in your case there's a good chance that's why

Can you delete the C:\WindowsUpgrade folder on the machine?

Re: tis-wapt-upgrade-windows11

Published: October 5, 2022 - 9:03 AM
by thomas789
Hello,

Yes, that fixed the problem. The installation went smoothly. Thank you!
Also, is it possible to force a restart of the computer during the installation? The restart works fine when a session is open, but when I log out, launch the installation from the console, and leave the PC on the login screen, no restart occurs (I have to do it manually).

Thank you in advance, Best regards.

Re: tis-wapt-upgrade-windows11

Published: November 7, 2022 - 2:25 PM
by jpele
thomas789 wrote: Oct 5, 2022 - 9:03 AM Hello,

Indeed, this fixed the problem. The installation went smoothly. Thank you!
Furthermore, is it possible to force a restart of the computer during the installation? This restart occurs correctly when a session is open, but when I log out, launch the installation from the console, and leave the PC on the login screen, no restart occurs (I have to do it manually).

Thank you in advance, Best regards.
Good morning,
It is intentional that it does not restart automatically.
To force a restart, launch the installation in forced mode ;)

Sincerely,
Jimmy