5

I am trying to install the following package mercurial-2.2.1.win-amd64-py2.6.exe silently to add it to my Puppet manifest.

I tried already with /s /q with no results.

James Sapam
  • 16,036
  • 12
  • 50
  • 73
Maverick
  • 1,293
  • 1
  • 19
  • 39

2 Answers2

2

A better approach might be to use the Chocolatey package manager to install mercurial:

puppet module install rismoney/chocolatey

Then you can install mercurial (or most windows programs):

package { 'mercurial':
    ensure   => installed,
    provider => 'chocolatey',
}
mikeslattery
  • 4,039
  • 1
  • 19
  • 14
0

Mercurial uses Inno Setup for their .exe installers. The option you are after is: /VERYSILENT.

They also usually offer .msi installers for download, but recently released packages are usually out as .exe before the .msi versions become available.

The documentation for Inno Setup command line parameters is at: http://www.jrsoftware.org/ishelp/topic_setupcmdline.htm

Pro tip: Whenever I'm looking for silent install command line options in a hurry, I read the chocolateyInstall.ps1 file for the chocolatey package.

Eg: for hg, go to https://chocolatey.org/packages/hg and click on the "show" link beside "tools\chocolateyInstall.ps1" (under "files") and look for a variable named "$silentArgs".

grenade
  • 31,451
  • 23
  • 97
  • 126