Solved

Error 1500 : Another installation is still in progress.

Posted on 2007-04-03
3
2,178 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

13 Experts available now in Live!

Get 1:1 Help Now