Create Package With Secure MSI

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
Emmanuel64
Messages: 46
Registration: February 23, 2024 - 09:37

March 5, 2024 - 1:58 PM

WAPT version installed (2.5 discovery)
- Server OS (Linux) and version (Debian 12)
- Operating system of the administration/package creation machine (Windows 11)

Good morning

I created a package to install WithSecure (including the license key)
The installation completes correctly, but I have an error between the uninstallation key and the version:

Code: Select all

EWaptSetupException: Fatal error : MSI ElementsAgentOfflineInstaller.msi has been executed and key {45F3C15A-9635-4645-A914-FF3AE5391131} has been found in the registry, but version in registry does not match requirements of min_version=24.1.85.0\n']]
Could you help me solve this error?

Thanks in advance

Here is the full log, just in case:

Code: Select all

Installing: ElementsAgentOfflineInstaller.msi
Installing: ElementsAgentOfflineInstaller.msi (24.1.85.0)
Waiting for key: {45F3C15A-9635-4645-A914-FF3AE5391131} to appear in Windows registry
Erreur lors de l'installation de ['hasp-WithSecure(=24.1-2)']: erreurs dans les paquets [[PackageRequest(package='hasp-WithSecure',version=(Version('24.1.0.0'), 2),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.22631'),max_os_version=Version('10.0.22631')), PackageEntry('hasp-WithSecure','24.1-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5347, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4327, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4234, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\waptguyc_ffr\\setup.py", line 22, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4164, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1573, in install_msi_if_needed\n    error(\'MSI %s has been executed and %s has been found in the registry, but version in registry does not match requirements of min_version=%s\' % (msi, searchparam , min_version))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1956, in error\n    raise EWaptSetupException(\'Fatal error : %s\' % reason)\nwaptutils.EWaptSetupException: Fatal error : MSI ElementsAgentOfflineInstaller.msi has been executed and key {45F3C15A-9635-4645-A914-FF3AE5391131} has been found in the registry, but version in registry does not match requirements of min_version=24.1.85.0\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1935, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1341, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['hasp-WithSecure(=24.1-2)']: erreurs dans les paquets [[PackageRequest(package='hasp-WithSecure',version=(Version('24.1.0.0'), 2),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.22631'),max_os_version=Version('10.0.22631')), PackageEntry('hasp-WithSecure','24.1-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5347, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4327, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4234, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\waptguyc_ffr\\setup.py", line 22, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4164, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1573, in install_msi_if_needed\n    error(\'MSI %s has been executed and %s has been found in the registry, but version in registry does not match requirements of min_version=%s\' % (msi, searchparam , min_version))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1956, in error\n    raise EWaptSetupException(\'Fatal error : %s\' % reason)\nwaptutils.EWaptSetupException: Fatal error : MSI ElementsAgentOfflineInstaller.msi has been executed and key {45F3C15A-9635-4645-A914-FF3AE5391131} has been found in the registry, but version in registry does not match requirements of min_version=24.1.85.0\n']]

Exception: Erreur lors de l'installation de ['hasp-WithSecure(=24.1-2)']: erreurs dans les paquets [[PackageRequest(package='hasp-WithSecure',version=(Version('24.1.0.0'), 2),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.22631'),max_os_version=Version('10.0.22631')), PackageEntry('hasp-WithSecure','24.1-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5347, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4327, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4234, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\waptguyc_ffr\\setup.py", line 22, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4164, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1573, in install_msi_if_needed\n    error(\'MSI %s has been executed and %s has been found in the registry, but version in registry does not match requirements of min_version=%s\' % (msi, searchparam , min_version))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1956, in error\n    raise EWaptSetupException(\'Fatal error : %s\' % reason)\nwaptutils.EWaptSetupException: Fatal error : MSI ElementsAgentOfflineInstaller.msi has been executed and key {45F3C15A-9635-4645-A914-FF3AE5391131} has been found in the registry, but version in registry does not match requirements of min_version=24.1.85.0\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1935, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 737, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1341, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['hasp-WithSecure(=24.1-2)']: erreurs dans les paquets [[PackageRequest(package='hasp-WithSecure',version=(Version('24.1.0.0'), 2),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.22631'),max_os_version=Version('10.0.22631')), PackageEntry('hasp-WithSecure','24.1-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5347, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4327, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4234, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\WINDOWS\\TEMP\\waptguyc_ffr\\setup.py", line 22, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4164, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1573, in install_msi_if_needed\n    error(\'MSI %s has been executed and %s has been found in the registry, but version in registry does not match requirements of min_version=%s\' % (msi, searchparam , min_version))\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 1956, in error\n    raise EWaptSetupException(\'Fatal error : %s\' % reason)\nwaptutils.EWaptSetupException: Fatal error : MSI ElementsAgentOfflineInstaller.msi has been executed and key {45F3C15A-9635-4645-A914-FF3AE5391131} has been found in the registry, but version in registry does not match requirements of min_version=24.1.85.0\n']]
WAPT Enterprise
Version 2.6.1.17576
Emmanuel64
Messages: 46
Registration: February 23, 2024 - 09:37

March 5, 2024 - 4:51 PM

I just found the solution; I'm posting it in case others have the same problem.


After reading the documentation for the umpteenth time, I came across this perfectly clear sentence: "

At the end of the installation, the function will check if the uninstallation key is present on the machine and if the version is equal to or greater than 45.5.0; if not, it will flag the package as ERROR.

" So I was missing the `min_version="` option. :oops:
WAPT Enterprise
Version 2.6.1.17576
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 7, 2024 - 3:31 PM

Hi Emmanuel,

you can try a first installation without the minimum version to verify which version is actually written in the registry, then enter it in the min_version field. Sometimes the version number shown in the package properties doesn't exactly match the one in the MSI file itself.

Anyway, thanks for the feedback.

Best regards,

Denis
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
Locked