koan: how do uninstallers uninstall themselves?

Richard Gaskin ambassador at fourthworld.com
Tue Jun 28 12:17:57 EDT 2005


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 -

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list