Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error 1500 : Another installation is still in progress.

Posted on 2007-04-03
3
Medium Priority
?
2,202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
dctuck earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

670 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