cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ldubois
Level 2

issues updating icon in add/remove programs

I found one or two threads related to that subject but none provides a fix...

When our product was being installed with ISMP 5.03, it used to update the display name and iconpath value in the windows registry.

The issue with ISMP 11.5 is that the registry entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall does not match the product uuid setup in the project...the entry is something like productuuid-xxxxxxxxx ..
The main problem is to figure the -xxxxxxxxx part out ...

How do you do that???

Thanks!
Labels (1)
0 Kudos

(3) Replies
toogoodju
Level 4

With 11.5, there is a hash code appended to the end of the uuid.
To get it, do something like this:

String installLocation = arg0.resolveString("$P(absoluteInstallLocation)");
String uid = arg0.resolveString("$P(bean5.key.UID)");
installLocation = FileUtils.normalizeFileName(installLocation, '/');
int hash = installLocation.hashCode();
String uidandhash = uid+hash;

note that there is a hotfix for 11.5 that is needed to make this work. It also works in SP1
0 Kudos
ldubois
Level 2

thanks, that did the trick!
0 Kudos
gkumar
Level 3

FileUtils.normalizeFileName(installLocation, '/');
Thanks
Gopa
0 Kudos