Controlling uninstall vs. repair

Got a problem you cannot solve? Try here.
djm
Posts: 34
Joined: Thu Feb 01, 2007 4:39 pm

Controlling uninstall vs. repair

Postby djm » Mon Mar 05, 2007 10:40 pm

So I've read through many posts pointing at the registry change using NoModify to turn off the "change" button in the Add/Remove programs (http://forums.installaware.com/viewtopic.php?t=660), but my problem is on the "maintenance" dialog in my installer where the user has 2 choices, uninstall or repair. Getting rid of the button on the Add/Remove screen doesn't help me there.

Here's the situation. The maintenance screen has two options and there are 3 scenerios when different things occur:

1. The user runs the original install.exe and the choices are:
- Uninstall
- Repair

2. The user clicks on the Uninstall link in the Program Group
- Uninstall
- Repair (greyed and unselectable because otherwise they will get prompted for the original sources - bad user experience.)

3. The user attempts to uninstall from Add/Remove Program Group
- Uninstall
- Repair (SHOULD BE GREYED)

For #2, I pass in a compiler variable called "UNINSTALL=true" and adjust things accordingly on the maintenance dialog (I grey out the repair option). But for #3, I don't see where in the MSICode I can control what options are passed to the uninstall. Am I missing it? I need to also pass UNINSTALL=true here so that "Repair" is greyed out.

I may be approaching this completely wrong, but this is the way I'm doing it. Gurus, please feel free to educate me if I'm completely off on the way to handle this. :)

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Mar 06, 2007 10:21 am

I think you can actually test if $SFXPATH$ is empty or not.

This will show (unless you're running an uncompressed build) that the ARP applet has invoked setup.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 119 guests