Click here to Skip to main content
15,904,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello there,

I want to create a window application that will install other application without showing the installer window.

I have create -

1. a .msi setup application.
2. a batch file that will install the msi application without showing installer window
(Silent installation).
3. a windows application with a button. in click event of that button i call a new process and execute the batch file.

I want to show a progress bar that will show the progress of msi installer.

Please help me with appropriate code.
I appreciate All answers.
If you have any question about this question, Please feel free to contact me.

Thanks and Regards
Raghubir Sarkar
+(NEVER PUT YOUR PHONE IN A PUBLIC FORUM!)
(NEVER PUT YOUR EMAIL IN A PUBLIC FORUM!)
Posted
Updated 20-Dec-13 4:19am
v2

1 solution

There is no code for this. You're not going to get any kind of progress information from MSIEXEC during the install.

You don't need a batch file for this and, really, you don't even need any code to launch the installation. All you need is the correct command line parameters to show a partial(basic) UI from MSIEXEC during the install:
msiexec /i filename.msi /qb-
 
Share this answer
 
Comments
Raghubir_Sarkar 21-Dec-13 0:01am    
Thanks Dave i'll remember it.
I have a doubt about installation. I think that a .msi installer will just copy the primary output of a .NET project. Is it correct? if it then i'll copy all the primary output files myself and catch its progress status.
Dave Kreskowiak 21-Dec-13 1:15am    
That depends on how you built the installer and what you put into it. The very basic things that happens are the executable and content files are copied, shortcuts created, components registered in the registry, ... There is no way to "catch" the progress.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900