Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Can't call Uninstall Override during Uninstall process
 

Can't call Uninstall Override during Uninstall process

I've put together my first setup project that calls a Custom Action to run a clean up process during an Uninstall. The problem I have is that my Uninstall override is never called. it just calls the Install and Commit overrides again?

Can anyone point me in the right direction as where I might be going wrong?

SimonDC  Friday, November 09, 2007 11:15 AM

It sounds similar to this http://support.microsoft.com/kb/906766/en-us - is this a RemovePreviousVersions upgrade?

PhilWilson  Saturday, November 10, 2007 12:06 AM

Unfortunately my install is run from scratch without any previous versions installed. This is the first version of my installation.

I just can’t understand why, when running an uninstall, the Commit and Install overrides are called but Uninstalled is never triggered?

SimonDC  Monday, November 12, 2007 9:11 AM

I've found the reason for my strange effect, but I'm still in need of a solution. If I try to pass multiple parameters the Commit and Install are called twice during the Installation and the Uninstall is never called. If I pass just one parameter the Commit and Installed are called just once and Uninstall called once as required.

When I pass multiple parameters in CustomActionData, I'm space separating them and if I debug the Custom Action DLL I can see the values of my parameters and they are all valid and passed correctly.

Here's my CustomActionData entry...

/INSTALLTYPE=[INSTALLTYPE] /TARGETDIR="[TARGETDIR]\" /WindowsFolder="[WindowsFolder]\"

So am I passing the parameters incorrectly??

SimonDC  Monday, November 12, 2007 5:04 PM

You can use google to search for other answers

Custom Search

More Threads

• Publishg on existing Build
• SQL Express
• Making project setups
• Will HTTP Post method available for .application extension?
• deployment msi
• Deployment using Setup and msi - no shortcut on desktop
• Weird ClickOnce Issue.
• ClickOnce: Setup.exe starts from UNC fileshare but no error msg no install?
• Setup project with vcredist_x86
• How do I deploy a program?