.NETGURU
Not executing uninstall custom event when two or more versions of the application are installed
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.setup.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Nikolay T via .Net Guru (VIP)
I am developing setup project that installs the entire application (all other projects in the solution). This setup project installs the database, file content of the application and some additional things through inherited System.Configuration.Install.Installer class Install() method that is invoked by Windows Installer during install.
There is also implemented Uninstall() method that is invoked by Windows Installer while application is uninstalled. The setup supports multiple versions of the applicatiion being installed on the same machine (i.e. on one computer may be installed 1.1, 1.2 and 2.1 versions which exists separately and don't update each other during installation).
There is the problem - when I am uninstalling the application and there is a single version currently installed all goes well - my Uninstall() method is invoked by Windows Installer and the application is cleaned up.
However, when there are multiple versions installed (two or more) when either of them is uninstalled for some strange reason the Windows Installer does not invoke the code in Uninstall() method, but smoothly removes the application and it is not seen in Add/Remove programs anymore. The database and files of the application remain, however, because they are removed by the code in Uninstall() method which wasn't invoked.
I don't see any reason Uninstall() method to be invoked only when there is only one version of the application installed on the machine - each version has its own unique ProductCode GUID set in the setup project and uninstallation when there is more than one installed version completes without errors, just as if there was no Uninstall() method which was supposed to be invoked.

-----------------------
Posted by a user from .Net Guru (http://www.dot-net-guru.com/)

<Id>g1m+voPqA0G6nKcFTM/7ig==</Id>
Reply to this message...
 
    
Phil Wilson
If you do a command line uninstall when you get the problem, you can create
a log, that might show why your uninstall custom action isn't being called:
msiexec /x {product guid} /l*v somelogfile.log
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

"Nikolay T via .Net Guru" <Click here to reveal e-mail address> wrote in message
news:eTAqg%Click here to reveal e-mail address...
I am developing setup project that installs the entire application (all
other projects in the solution). This setup project installs the database,
file content of the application and some additional things through inherited
System.Configuration.Install.Installer class Install() method that is
invoked by Windows Installer during install.
There is also implemented Uninstall() method that is invoked by Windows
Installer while application is uninstalled. The setup supports multiple
versions of the applicatiion being installed on the same machine (i.e. on
one computer may be installed 1.1, 1.2 and 2.1 versions which exists
separately and don't update each other during installation).
There is the problem - when I am uninstalling the application and there is a
single version currently installed all goes well - my Uninstall() method is
invoked by Windows Installer and the application is cleaned up.
However, when there are multiple versions installed (two or more) when
either of them is uninstalled for some strange reason the Windows Installer
does not invoke the code in Uninstall() method, but smoothly removes the
application and it is not seen in Add/Remove programs anymore. The database
and files of the application remain, however, because they are removed by
the code in Uninstall() method which wasn't invoked.
I don't see any reason Uninstall() method to be invoked only when there is
only one version of the application installed on the machine - each version
has its own unique ProductCode GUID set in the setup project and
uninstallation when there is more than one installed version completes
without errors, just as if there was no Uninstall() method which was
supposed to be invoked.

-----------------------
Posted by a user from .Net Guru (http://www.dot-net-guru.com/)

<Id>g1m+voPqA0G6nKcFTM/7ig==</Id>

Reply to this message...
 
 
System.Configuration.Install.Installer




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification