We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

How I can make a silent installation without interface?

Hello friends,

I have the following code and want to know what parameters must be entered to run a silent installation interface.


Process.Start(TempDir & "\updateapp.exe", "/qn, /quiet")


Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How I can make a silent installation without interface?

Hi,

I'm not sure I fully understand your scenario. Can you please give us more details about your specific scenario (maybe exemplify)?

Do you perform an upgrade? If Yes, you can pass command line switch for a silent installation thorough the No GUI command line switch from the Update Installer Tab.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: How I can make a silent installation without interface?

Hello good morning Dan,

I made my own downloader which downloads the installation file and then executes it.

What I know is how I can use the command interface without leave as it is for an upgrade of the same program, for example version 1.0 to version 1.1

What command would be to use an installation without interface?

Cheers
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: How I can make a silent installation without interface?

Help me please

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How I can make a silent installation without interface?

Hello,

The Process.Start Method (String, String) starts a process resource by specifying the name of an application and a set of command-line arguments.

e.g. to start a .msi installation, you need to use the following command:

Code: Select all

 ProcessStartInfo startInfo = new ProcessStartInfo(<path_to_msi>, "/qn");
 Process.Start(startInfo);
However, I'm not quire sure I fully understand your sceanario. Can you please give me more details? Maybe exemplify.

When launching the MSI package from the command line you can use multiple "msiexec.exe" parameters which affect the user interface:
  • full UI: /qf (this is the default parameter used by the package)
  • reduced UI: /qr (the user interface does not show any wizard dialogs)
  • basic UI: /qb, /passive (only a progress bar will be shown during the installation)
  • no UI: /qn, /quiet (no UI will be showed during the installation)
For details, please check the How do I create a silent installation package? article which may be useful to you.

Please keep in mind that on Windows Vista and above, in order to silently install a package you must use an elevated command prompt. In your case, the process that launch the .MSI installation needs to be elevated.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

Re: How I can make a silent installation without interface?

Hi Dan,

I try to run it as directed from the first message, but never silent installation runs.

I try to run from Visual Basic .NET

This is what I'm wearing.

Process.Start(TempDir & "\updateapp.exe", "/qn, /quiet")

As you pointed out, it is not executed with / qn

I hope your answer thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How I can make a silent installation without interface?

Hello,

Can you please tell me why do you need the /qn and /quiet parameters? Have you tried to start the process using only the /qn parameter?

As I said, the Process.Start Method (String, String) starts a process resource by specifying the name of an application and a set of command-line arguments.

e.g. to start a .msi installation, you need to use the following command:

Code: Select all

 ProcessStartInfo startInfo = new ProcessStartInfo(<path_to_msi>, "/qn");
 Process.Start(startInfo);
By the way, you can use our Auto Updater to install your updates. The Advanced Updater is a small executable tool whose role is to check for updates, inform the user of their presence and offer to download and install them. When launched, the Updater checks if a newer version of the application exists by using a predefined criteria. For details, please see the Auto Updater article.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”