Page 1 of 1

[SOLVED] 32-bit version of a package

Published: March 27, 2018 - 4:26 PM
by benoitpatin
Good morning,

- Installed WAPT version: 1.5.1.18 Community
- Linux Debian 9 server OS
- Operating system of the administration/package creation machine: Windows 10

I downloaded the 32-bit version of Visio Viewer from the Microsoft website.
I create the package in wapt, I launch the installation, I retrieve the uninstallkey (with wapt-get list-registry), I enter it in setup.py and I recreate the package.
I'm installing the package on a 64-bit Windows 10 system. The application installs correctly, but I get a warning:

Code: Select all

EWaptException: The uninstall key: 95160000-0052-040C-0000-0000000FF1CE has not been found in system registry after software installation.
After doing some research in the registry, I noticed that the uninstall key is not in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ but in HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\

How do I tell Wapt where to look for the key in the right place?

THANKS

Re: 32-bit version of a package

Published: March 27, 2018 - 4:39 PM
by htouvet
Normally, Wapt searches in both locations by default

However, you seem to have forgotten the curly braces in the uninstallkey...

Code: Select all

key = "{95160000-0052-040C-0000-0000000FF1CE}"

Re: 32-bit version of a package

Published: March 27, 2018 - 4:51 PM
by benoitpatin
It might indeed be because I wrote it like this: uninstallkey = ['95160000-0052-040C-0000-0000000FF1CE']

But it's written like this in the documentation: https://www.wapt.fr/wapt-1.5/CreationPa ... index.html

I'll try with your syntax.

Re: 32-bit version of a package

Published: March 27, 2018 - 5:02 PM
by benoitpatin
It works much better immediately with the correct syntax ;)

Re: 32-bit version of a package

Published: March 30, 2018 - 7:58 PM
by dcardon
Good evening Benoît,
benoitpatin wrote: March 27, 2018 - 4:51 PM It might indeed be because I wrote it like this: uninstallkey = ['95160000-0052-040C-0000-0000000FF1CE']

But it's written like this in the documentation: https://www.wapt.fr/wapt-1.5/CreationPa ... index.html

I'll try with your syntax.
In fact, you need to copy exactly the same string of characters as what's in the output of the `wapt-get list-registry` command. There are keys with curly braces and keys without, some are GUIDs, others are strings... If it were too simple, it wouldn't be fun :-) I added a note on the relevant doc page to emphasize that the string of characters must be copied exactly as it is.

Happy Easter weekend!

Denis

Re: [SOLVED] 32-bit version of a package

Published: April 4, 2018 - 11:54 AM
by benoitpatin
Thank you Denis ;-)