[SOLVED] tis-wapt-upgrade-windows11

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

September 21, 2022 - 5:07 PM

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.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

September 22, 2022 - 3:21 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

September 27, 2022 - 1:33 PM

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.
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

September 29, 2022 - 3:11 PM

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
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

September 30, 2022 - 3:12 PM

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.
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

September 30, 2022 - 5:33 PM

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
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

October 3, 2022 - 8:53 AM

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.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 3, 2022 - 12:20

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?
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

October 5, 2022 - 9:03 AM

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.
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

November 7, 2022 - 2:25 PM

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
Locked