PDA

View Full Version : uninstall during debug



barakz
07-23-2008, 06:24 AM
Hello All,

When I'm trying to debug a maintnance scenario, i.e. install a product, and then I'm pressing on debug in InstallShiled, instead of starting the welcome maintnance page, it seems that the program first uninstall the current version and then runs a regular install scenario. Does anyone have a clue why this is happening and how can I overcome this?

Thanks in advance,
Barak

ITI_Randy
07-23-2008, 09:03 AM
In your InstallShield IDE, go to Tools>Options>Preferences and under "Run Commands" deselect "Uninstall Before Installing".

You can also set the registry for your InstallShield version so that your debug will run even outside of selecting "Debug" from the "Build" menu. This is actually required to be able to debug deferred custom action types.

barakz
07-27-2008, 02:32 AM
This is exacly what I needed - Now I'm debugging just fine.
Another question, if anyone knows : I've created a service during the installation, but when I'm trying to uninstall it (using the add/ remove) - everything related to this service remains (exe files, dlls, etc). How do I get rid of those files?


Thanks in advance,
Barak

ITI_Randy
07-28-2008, 08:27 AM
The catch in uninstalling the service may be simply that the files can't be deleted while the service is running. In the "Control NT Services" part of your component, be sure to have a control event defined and be sure that "Uninstall Stop" and "Uninstall Delete" are both set to "Yes".