TomGarrett
Posts: 25
Joined: Fri Nov 16, 2007 12:44 pm

Prevent file deletion by another programs Uninstall

Hi,

We've just found a problem where an uninstall of a previous system sets some files to be deleted but will not remove them until the user reboots. The uninstall process will not automatically reboot.

Our installer actually replaces these files, but because we run before a reboot is performed, after the reboot, these files are still deleted (even though I specified the feature containing these files as being permanent).

I'm thinking of a number of solutions:
Somehow call the existing product installshield setup.exe with a command line parameter to reboot (from a batch file).
Call my own reboot in a batch file.
Get Advanced Installer to call a reboot (seems a bit illogical).
Somehow "un-mark" the files to be deleted.

I'd prefer the last option, could you tell me how to do this if it's possible?

Regards
TomGarrett
Posts: 25
Joined: Fri Nov 16, 2007 12:44 pm

Well, don't worry about it. The problem files were in use by a service, it turns out we could just stop the service and then uninstall.
So, problem solved!

Return to “Common Problems”