progress as output of a silent installation

Got a problem you cannot solve? Try here.
Post Reply
stefan.nieten
Posts: 15
Joined: Fri Feb 01, 2013 5:23 am

progress as output of a silent installation

Post by stefan.nieten »

Hi InstallAware-Team,

is it possible with IA17 to get the installation progress information of a silent installation directly as output of the installer executable? We want to start a installer executable from another program as a sub installer and show the progress information within the program's gui. Not just show and hide the installer gui, which was mentioned in http://www.installaware.com/forum/viewt ... f=2&t=5703 and http://www.installaware.com/forum/viewt ... f=2&t=6469.

Thanks in Advance!

greets,
stefan
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: progress as output of a silent installation

Post by FrancescoT »

Dear Stefan,

If I haven't missed anything, you can use the "(Un)Install MSI Setup" command to execute that package silently, but with displaying its installation progress within the caller package.
The (Un)Install MSI Setup plug-in provided command installs, re-installs, or uninstalls a Windows Installer setup. A full Windows Installer setup command line may be specified. The progress of the Windows Installer setup will be captured and displayed as part of the installation progress.
-

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
stefan.nieten
Posts: 15
Joined: Fri Feb 01, 2013 5:23 am

Re: progress as output of a silent installation

Post by stefan.nieten »

Hi Francesco,

okay thank you. But yes we want to get the progress information as output of the installer (msi/exe) to show it in our custom gui.

I just found this stackoverflow article about this:
http://stackoverflow.com/questions/1659 ... -cancel-it
Maybe there are other possibilities to get the progress information of the installer.

best,
stefan
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: progress as output of a silent installation

Post by FrancescoT »

Dear Stefan,

but if you want to follow what suggest by the link, you only need to run that package using the "run Program" command from your installer.
Obviously, doing this the msi/exe package that you execute will use its own interface and it will be not integrated in your setup UI as I suggested previously.

am I missing something?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
stefan.nieten
Posts: 15
Joined: Fri Feb 01, 2013 5:23 am

Re: progress as output of a silent installation

Post by stefan.nieten »

Hi Francesco,

we are alreay use the "run program"-cmd to execute sub installers in our installers. The progress information from the sub installers is also visible in
the main installer gui. So this works fine.
But now we would like to execute an installer executable/msi which was built with InstallAware in another c++-application and display the installation progress within the application's gui. In the last post of the stackoverflow article it is mentioned, that it could be done by using the MSI-Api to execute the installer-msi and specify an external UI handler using MsiSetExternalUI or MsiSetExternalUIRecord.

Thanks for your support!
best,
stefan
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: progress as output of a silent installation

Post by FrancescoT »

Dear Stefan,

you could try this sample;
http://msdn.microsoft.com/en-us/library ... s.85).aspx

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
stefan.nieten
Posts: 15
Joined: Fri Feb 01, 2013 5:23 am

Re: progress as output of a silent installation

Post by stefan.nieten »

Hi Francesco,

okay thx. I modified the sample so that progress information of msi packages is messaged to stdout. I used some msi packages and progress data was messaged. Then I tried it with an InstallAware' built msi package (Standard Win32 Template, umcompressed build), but no progress infomation was returned. Do you know why this is the case?

Thanks in Advance!

greets,
stefan
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: progress as output of a silent installation

Post by FrancescoT »

Dear Stefan,

... I never used that code.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
stefan.nieten
Posts: 15
Joined: Fri Feb 01, 2013 5:23 am

Re: progress as output of a silent installation

Post by stefan.nieten »

Hi Francesco,

but do you know another way than using the MSI-API to get progress information of Installers which were build with InstallAware? As I said for other MSI-Installers the Solution with "MsiSetExternalUIRecord" worked. Those Installers messages the installation progess and we could show the data in our custom gui progress bar. Or is the conclusion that their is no way to get installation progress data out of InstallAware-Installers? It is really imprtant for us to know.

Thank you!

greets,
Stefan
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: progress as output of a silent installation

Post by FrancescoT »

Dear Stefan,

... I'll forward your answer to our dev team.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
stefan.nieten
Posts: 15
Joined: Fri Feb 01, 2013 5:23 am

Re: progress as output of a silent installation

Post by stefan.nieten »

Hi Francesco,

okay thank you. Did you already got new information on this from the dev team?

regards,
Stefan
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: progress as output of a silent installation

Post by FrancescoT »

Dear Stefan,

Unfortunately Not yet.

Of course, I'll be back to you as soon I receive a reply.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
jrowles
Posts: 1
Joined: Tue Sep 09, 2014 8:05 pm

Re: progress as output of a silent installation

Post by jrowles »

I am also interested in receiving an answer to this. I am invoking the installation from a C# WinForm application and would like to receive progress information (the text beneath the progress bar) so I can post it to my WinForm application.

Thanks in advance.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: progress as output of a silent installation

Post by FrancescoT »

Unfortunately, nothing new on this.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply