Page 1 of 1

Unable to uninstall after changing ALLUSERS

Posted: Fri Oct 26, 2012 7:12 am
by alibaba
Hi,

I have changed the AllUsers Property in a new version to TRUE (previous version it was FALSE). But on this upgrade I can not uninstall the previous version. The uninstall string is empty!

What can be the cause?

Thanks!

Re: Unable to uninstall after changing ALLUSERS

Posted: Fri Oct 26, 2012 8:54 am
by FrancescoT
Dear Alibaba,

I'm sorry... but I am not sure to follow your issue.

Are you still refering about the SYSTEM ACCOUNT issue that you had?

Regards

UninstallString is not created in HKLM

Posted: Mon Oct 29, 2012 6:27 am
by alibaba
Are you still refering about the SYSTEM ACCOUNT issue that you had?


No, but I found the reason for this issue. If you install with ALLUSERS set to FALSE then the UninstallString will be written to

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\$PRODUCTCODE$

But I read this information always from

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$PRODUCTCODE$

and use it for uninstalling the previous version (in case of an update installation). That is why an uninstallation fails in my case if you do not install for ALLUSERS!

As you may know I am coming from the "InstallShield world" and there every installation wrote its UninstallString to HKLM, regardless of ALLUSERS or not...

Re: Unable to uninstall after changing ALLUSERS

Posted: Mon Oct 29, 2012 1:01 pm
by FrancescoT
Dear Alibaba,

If I am not wrong;

Your actual InstallAware project have to uninstall a previous released InstallShield package?

If true have you tried to use the following plugin:
http://www.installaware.com/forum/viewtopic.php?f=3&t=1237

Using it you could uninstall your package using the PRODUCT CODE instead of retriving the UninstallString via registry.

Let me know.