By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,273 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,273 IT Pros & Developers. It's quick & easy.

Question about System.Configuration.Install Installer class.

P: n/a
I have a new Installer class (derived from
System.Configuration.Install.Installer) and I have override methods
for Install, Uninstall, Commit. The MSI builder tool I'm using is
Advanced Installer, the resulting MSI successfully executes the code
inside my Installer classe Install and Uninstall methods...

My problem is distinguishing a patch from a fresh install and
following a different execution path in my Installer class depending
on if an fresh install or update is being performed. So I have several
files that must not be overwritten on a update, but the default
behavior of the MSI for an update operation is to perform an uninstall
first which clears out personal data.

My problem boils down to: when the user performs an update (i.e.
double clicks on MyAppVer2.msi when they already have MyAppVer1.msi
installed) the Uninstall method inside my Installer is called first,
but I have no apparent property to check from inside this method to
detect that an update is being performed so that I can branch my code
appropriately.

I'm hoping someone with experience withing Installer classes can shed
some light. Thanks!

Sep 3 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.