PDA

View Full Version : Pop-up for uninstallation


lollypop00
04-12-2007, 10:28 AM
Hello,

I am using Setup Factory 7.0.6.1. My case deals with popping up an uninstall alert options box.

OBJECTIVE:
=========
If I install my s/w the second time on a computer where in actually, the same product is currently and already installed, then I must get a warning msg or alert stating that this product "XXXX" is already existing on this computer. Do u want to uninstall it ??

I have written some programming code in the "ON STARTUP" install section and ""ON POSTINSTALL" section, but am not able to get this done. My product name is: "XXXX". I have also attched a zip file containing the XXXX.exe installation file and the actual .SF7 project file.
Please check it out.

I have also simmultaneously opened a support ticket, too, for faster response.
Somebody please assist me.

Sincerely,
Mark Crove

Jason Pate
04-12-2007, 12:12 PM
I did not look at your code but (dont have time right this moment) But you should be able to simply check the registry.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall

Adding XXXX product name you should be able check if your program is installed or not there is a Registry.Doesexist action in SF7.

lollypop00
04-12-2007, 01:03 PM
Hi Jason,

I gr8tly appreciate ur willingness to help me.

I have used the Registry.DoesExits( ) method in my code in the ON STARTUP install action.

I think, if u would probably get some time to check the code, you could probably modify my code to fix this issue.

Awaiting for ur reply....

Jason Pate
04-12-2007, 02:39 PM
Change line 38:

OLD linelocal strUninstallString = Registry.GetValue(HKEY_CURRENT_USER,strKeyName,"UninstallString");

New Linelocal strUninstallString = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Unin stall\\XXXX1.0", "UninstallString");

The orginal key it was reading from did not exist.

lollypop00
04-12-2007, 07:25 PM
Thanks a lot Jason. U realy helped me when i required it the most and at the right time.

I found out also that the vesion number matters in that special line of urs.

This case has been successfuly solved now.
Once again Thanks....