Page 1 of 1

Create Package With Secure MSI

Published: March 5, 2024 - 1:58 PM
by Emmanuel64
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']]

Re: Creating Package With Secure MSI

Published: March 5, 2024 - 4:51 PM
by Emmanuel64
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:

Re: Creating Package With Secure MSI

Published: March 7, 2024 - 3:31 PM
by dcardon
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