PDA

View Full Version : Uninstall not working properly after update



_redec_
02-23-2005, 02:14 PM
I'm having an issue that if I install version 1.0 of my application, then run the update to 1.1, then if I attempt to uninstall, the uninstaller for v1.0 is run. Is this as designed or have I done something to mess it up? I have a couple custom tasks I have to perform on uninstallation, and obviously v1.0 may not know everything required to uninstall v1.1. Any help is appreciated.

Somebody
02-25-2005, 10:52 AM
There are two things you should probably review that may help you:

1. In the help file, read the FeatureUpdate() section. Pay close attention to the differences between FeatureUpdate() and FeatureReinstall(), and determine if maybe FeatureReinstall() may need to be used by you in your 1.1 install to reinstall the maintenance/uninstallation files it sounds like you changed in your 1.1 install.

2. If you determine that FeatureReinstall() is not correct for your 1.1 install, then after you call FeatureUpdate() but before the file transfer starts in your 1.1 install, you may want to try do a:

FeatureSelectItem( MEDIA, DISK1COMPONENT, TRUE );