PDA

View Full Version : Is it possible to modify the automated UnInstall?



kkolo
04-06-2012, 06:23 AM
I have just a couple changes I want to make to the Automated UnInstaller.

Is it possible to get to the script for the UnInstaller to modify it rather than starting from scratch?

- Kathy

linder
04-06-2012, 07:22 AM
Kathy,

If you do a "New Project" -> "Uninstall Include Script..." then you see the source code for the automated uninstall. This script is added by default.

If you would like to add your own "custom uninstall", then just add the above mentioned uninstall .sbi to your main project and you can do whatever you want from within your uninstall procedure. See attached screenshot.

Does this help?

Friedrich

kkolo
04-06-2012, 07:28 AM
Let me modify that.

I see that it is simple to do a new UnInstall script without much code.
(using the UnInstall log created by the installer)

But, here is what I'm trying to do...

I use the 'Edit Ini File' function to Edit (and if it does not exist) create an ini file that I do NOT want deleted when un-Installing.
If the installer has to create this file it is currently unInstalled when running the unInstaller.

Any suggestions?

Thanks, Kathy

linder
04-06-2012, 07:35 AM
Kathy,

Aha, okay. You do this at installation level, not uninstall level. As an example, see the attached screenshot.

You disable uninstall logging and re-enable it later.

Does this help?

Friedrich

kkolo
04-06-2012, 07:39 AM
Beautiful. Thanks again!

linder
04-06-2012, 07:41 AM
:)

Friedrich