I am using Visual Studio 2005 to create an MSI for my solution - which
includes some web applications, class libraries and a Windows Service. A
major upgrade is created by setting RemovePreviousVersions to true, and
changing the product Version and ProductCode.
When the installation of the upgrade fails, the application is successfully
rolled back to its previous version, besides the service - which is
completely uninstalled. How can I fix that?
Thanks,
-Ronen
> Some more information:
> It seems that upon rollback, the previous version is re-installed, but its
> custom actions do not run. I did not set any conditions for the custom
> actions.
Instead of using custom actions to install your service,
you could use the ServiceInstall and ServiceControl tables.
Windows Installer would then take care of the rollback.
If you must use custom actions, you need a rollback custom
action. During rollback, Windows Installer runs only those
custom actions that have the msidbCustomActionTypeRollback flag.
I don't know how this MSI concept maps to Visual Studio setup
projects, but System.Configuration.Install.Installer.Rollback
may be involved.
In other words:
Upon an upgrade, the current product is uninstalled, and then the new
product version is installed. If the installation of the new version fails,
then it is rolled back and then the old version is installed again - and this
is where the custom action do not run.
There is an internal condition on the rollback custom action. I'm wondering
if it's wrong.
--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
"Ronen Meyuhas" <RonenM...@discussions.microsoft.com> wrote in message
news:9196700C-AFAB-4C63...@microsoft.com...
First I would like to tell you how helpful your MSI related posts are - for
me.
I am not sure where to look at in the log in regard to the rollback, so I
uploaded the log for you to check (and tell me where you are looking at):
http://www.intlock.com/temp/log.zip
Thanks!
- Ronen
"Ronen Meyuhas" <RonenM...@discussions.microsoft.com> wrote in message
news:1FE7B617-C357-412D...@microsoft.com...