Solved

Error 1500 : Another installation is still in progress.

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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