We're running our product uninstall on a scheduled task; it's a companion to another product and won't be needed if its' companion product is uninstalled. To accomplish this, in Uninstall OnStartup, I check for the existence of the companion product's uninstall key; if found, we bail, if it's not found, we proceed with the uninstall.
The problem I'm having is that even if we bail in OnStartup, Uninstall.exe is deleting itself, so isn't there the next time the scheduled task runs. My question is: if I set _UninstallStages{RemoveUninstallFiles=false}, will this prevent the uninstall.exe from being deleted?
Thanks!
DDoutelMS
Update: No, that doesn't work; is there a way to prevent uninstall.exe from deleting itself if I bail without uninstalling the archive files?
The problem I'm having is that even if we bail in OnStartup, Uninstall.exe is deleting itself, so isn't there the next time the scheduled task runs. My question is: if I set _UninstallStages{RemoveUninstallFiles=false}, will this prevent the uninstall.exe from being deleted?
Thanks!
DDoutelMS
Update: No, that doesn't work; is there a way to prevent uninstall.exe from deleting itself if I bail without uninstalling the archive files?
Comment