koan: how do uninstallers uninstall themselves?

Phil Davis davis.phil at comcast.net
Tue Jun 28 12:38:48 EDT 2005


On Windows, hmmm... maybe the uninstaller could create a 'delete file 
xyz' .bat file that runs shortly after the uninstaller closes? But 
offhand I don't know how to schedule a task on Windows.

HTH -
Phil Davis


Richard Gaskin wrote:
> 
> When an uninstaller (such as those commonly included with Win 
> installations made with InstallShield or WiseInstall) run, it can copy 
> itself to the user's Temp folder and run from there, so that it can do a 
> complete deletion of the items in the application's folder.
> 
> But can I delete it from the Temp folder when it's done?
> 
> In my readings 'round the Net it seems acceptable to just leave the old 
> uninstaller in the Temp folder until the next time the user cleans that 
> folder out, but that doesn't feel proper to me.
> 
> Is there a way for an app to delete itself?  Or to use some delayed 
> mechanism for doing so that doesn't require modifying any system files?
> 
> TIA -
> 



More information about the use-livecode mailing list