Hi,
How to go about writing Custom UnInstallation script. Any basic idea will help me to start with.
Thanks,
Manjunath
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.

Custom Uninstallation
Started by
shetty
, Jan 29 2004 16:49
3 replies to this topic
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.
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)
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
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
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()
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()