Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Custom Uninstallation


3 replies to this topic

shetty

shetty
  • Members
  • 11 posts

Posted 29 January 2004 - 16:49

Hi,

How to go about writing Custom UnInstallation script. Any basic idea will help me to start with.

Thanks,
Manjunath


Xitch13

Xitch13
  • Members
  • 134 posts

Posted 13 February 2004 - 22:16

Wow, talk about a far reaching question....

Well, what I do, I look for the uninstall flag in OnMaintUIBefore. If it's there I start calling my uninstall functions.

Such functions include:
GetEnviromentVariables()
StopServices()
KillOpenProcesses()
DropDatabases()
DeleteFiles()
DeleteFolders()
then comes: OnMaintUIAfter()
CleanRegistry()
Cleanup()


These are just the general steps I use to clean up after myself. If you have a more specific question, I could try to answer that.

There is great chaos under heaven, and the situation is excellent. (Mao Tse Tung)

valaki

valaki
  • Members
  • 5 posts

Posted 17 June 2004 - 10:27

Hi,
I cannot remove the files in use during the uninstall (namely setup.exe, and data1.cab). The DeleteDir fails on them, of course...
How could i remove them?
Thanks

mayurkotlikar

mayurkotlikar
  • Members
  • 7 posts

Posted 25 May 2005 - 07:05

Hey Xitch13,

I am having a different problem but i am interested in looking at your following functions. i am sure it might help me solving my problem, specially KillOpenProcess() and DeleteFolder(). Can you send me the link?


GetEnviromentVariables()
StopServices()
KillOpenProcesses()
DropDatabases()
DeleteFiles()
DeleteFolders()
then comes: OnMaintUIAfter()
CleanRegistry()
Cleanup()