Solved

Error 1500 : Another installation is still in progress.

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query Producing decimal places when it shouldn;t be 8 43
free scanner TWAIN can be operated with a Web application 9 61
Keyboard 2 33
Service Controller 1 23
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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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