Solved

Error 1500 : Another installation is still in progress.

Posted on 2007-04-03
3
2,183 Views
Last Modified: 2009-01-25
Hello,
    I am using C# .Net installer to deploy my application.  However there is a prerequisite for my application.  If I don't find that application(i.e. prerequisite)  installed on target machine I invoke Setup.MSI file from my installer to install the prerequisite.  But it gives me an error saying that “Error 1500 : Another installation is still in progress. You must complete that installation before continuing this one”

i try out putting that code at several places e.g.

 public override void Commit(System.Collections.IDictionary savedState)
        {
            base.Commit(savedState);            
        }

        protected override void OnAfterInstall(System.Collections.IDictionary savedState)
        {
            base.OnAfterInstall(savedState);  
        }
        protected override void OnCommitting(System.Collections.IDictionary savedState)
        {
            base.OnCommitting(savedState);            
        }
        protected override void OnCommitted(System.Collections.IDictionary savedState)
        {
            base.OnCommitted(savedState);            
        }
        protected override void OnBeforeInstall(System.Collections.IDictionary savedState)
        {
            base.OnBeforeInstall(savedState);
           //I want to execute this part.
            ProcessStartInfo info = new ProcessStartInfo();
            info.FileName = "c:\\test.bat";
            Process p = Process.Start(info);
           
            p.WaitForExit();

            System.Console.WriteLine(p.ExitCode);
        }

Can somebody help me?
Thanks in advance.
0
Comment
Question by:srinsy
3 Comments
 
LVL 7

Accepted Solution

by:
dctuck earned 500 total points
ID: 18849066
You will be getting the error because your application is installing, and attempting to install a further MSI - Windows only allows one MSI to be installed at a time. You might be best making your additional MSI a prerequisite by customising the bootstrapper - I've never tried this, so can't really help out much, but I found this:

http://msdn.microsoft.com/msdnmag/issues/04/10/Bootstrapper/

which looks like it covers it. I'll have to have a look at it myself sometime!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now