.NET Framework - Setup Project Uninstall Custom Action
Asked By Joe Cool
02-Feb-10 09:20 PM
I have designed an app that I have setup a VS2008 Setup project. I
have Install and Uninstall Custom Actions. I have also configured the
setup to remove a previous version first if necessary. All this works
fine. Well, not completely. The Uninstall Custom Action fires if I
perform an Uninstall function in the control panel.
However, if I upgrade an existing installation with a newer version,
when the previous version is automatically removed, my Uninstall
Custom Action does NOT fire.
Any ideas why?
Uninstall
(1)
Install
(1)
Propery
(1)
Vaslue
(1)
Peter Duniho replied to Joe Cool
Not something I have experience with, so no specific ideas.
But, how is the "automatic removal" being handled? Is it part of the
_installation_ of your new version? Or does the new version's
installation simply run the previous versions uninstall script?
If the latter, then that seems like a bug to me. Running the uninstall
for the previous version should, I would think, include invocation of
your uninstall custom action.
If the former, then perhaps the fix is as simple as somehow getting the
automatic removal to occur via the uninstall of the previous version.
Pete
Joe Cool replied to Peter Duniho
That is the question. I have no idea, I was hoping one of the MVPs
here would.
It is setup (which you may probably already be aware of) is:
1. Set the Setup project's DetectNewerInstalledVersion property to
True.
2. Set the Setup project's RemovePreviousVersions property to true.
3. Make sure the Setup project's Version propery has a vaslue greater
than the currently installed version.
4. Make sure all solution project's Assembly Version is set to the
same value as the Setup project's Version property.
I suspect the former since my uninstall custom action is obviously not
happening.
And IMHO that;s a bug, it should be the latter.
How to install / uninstall an inf driver? .NET Framework Hello, I want to install / uninstall a driver(only inf file), this inf file does not support right-click to install in explorer, it can only be installed from Control Panel / Add Remove hardware. Can anyone tell me how to install / uninstall in VB.NET? Regards Steven VB.NET Discussions DIFxAPI (1) VB.NET (1) Installer (1 http: / / dotnet.mvps.org / dotnet / faqs / > Thank you, could you please tell which function to install the inf file? yxq schrieb: Take a look at the Driver Package Installer: Driver Package
Scripted install, uninstall and repair problem. .NET Framework I need to be able to install, uninstall and repair Office 2007 Professional Plus, using MSP's to deliver differant configurations. I have started with the full install. My install script works correctly, but the repair and uninstall script using the Product ID from Setup.XML, kicks back the error message "This Product not correctly inpersonate users requests". The Office Suite opens and runs all components. Repair and uninstall work from Add / remove Programs. This is a clean install on a fresh Windows XP
Can't install, uninstall or repair framework 2.0 - - logs included .NET Framework This is on a client's XP-sp3 machine. . . can't install, uninstall or repair framework 2.0 without immediate error. It seems to not be finding something Calling process: C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ Microsoft .NET Framework 2.0 \ install.exe = = = MSI (c) (2C:30) [14:25:55:968]: Resetting cached policy values MSI (c 30) [14:25:55:968]: Client-side and UI is none or basic: Running entire install on the server. MSI (c) (2C:30) [14:25:55:968]: Grabbed execution mutex. MSI c) (2C:30) [14:25:56:046]: Attempting to enable all disabled priveleges before calling Install on Server MSI (c) (2C:30) [14:25:56:062]: Incrementing counter to disable shutdown Calling process: C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ Microsoft .NET Framework 2.0 \ install.exe = = = MSI (c) (2C:30) [14:25:55:968]: Resetting cached policy values MSI (c
Hello William Stacey [C# MVP], I would prefer the install / uninstall script .NET Framework Hello William Stacey [C# MVP], I would prefer the install / uninstall script approach. That way as a cmdline junky I can see exactly what the install is doing. In my opinion that makes me more willing to deploy. -mark Powershell Discussions TIA - - William Stacey [C# MVP] keywords: Hello, William, Stacey, [C#, MVP], I, would, prefer, the, install / uninstall, script description: Hello William Stacey [C# MVP], I would prefer the install / uninstall script approach. That way as a cmdline junky I can see exactly what the