1. Summary
I want to create Chocolatey package for The Wonderful Icon program, official download page. But I can not install this program in silent mode.
Yes, The Wonderful Icon — old program, but it perfectly work in my Windows 10.
2. Not helped
The Wonderful Icon — not my program, I don't know installer for it.
- I install and run Universal Silent Switch Finder program as recommend Chocolatey manual. Universal Silent Switch Finder show, that executable file of The Wonderful Icon is «Self-Extracting WinZip archive»:
I find in Stack Overflow answers that for Self-Extracting WinZip archive we can use /auto
flag. But it not helped for me.
- I try to use different flags —
/S
,/s
,-s
,/VERYSILENT
,-q
, but I have not success.
3. Settings
My chocolateyinstall.ps1 file:
$ErrorActionPreference = 'Stop';
$packageName= 'The Wonderful Icon'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'http://www.thewonderfulicon.com/wondicon.exe'
$url64 = ''
$packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
fileType = 'exe'
url = $url
url64bit = $url64
softwareName = 'The Wonderful Icon*'
checksum = ''
checksumType = 'sha256'
checksum64 = ''
checksumType64= 'sha256'
silentArgs = '/auto'
}
Install-ChocolateyPackage @packageArgs
4. Questions
- May I install The Wonderful Icon in silent mode in Chocolatey?
- If no, may I add package in Chocolatey without silent installation mode?
Thanks.
This is what makes Windows installers so much like the wild west. It's not always easy to find the silent installation arguments. And it may not even exist.
Yes, you absolutely can have the program available in an unattended fashion with Chocolatey. There are multiple methods of working to get an unattended install, some are better than others.
From best to worst:
If you have distribution rights, then I might order it 1, 4, 3, 2, 5.
If you are asking if you can add this to the community package repository, aka https://chocolatey.org/packages, then it is probably better to ask that question in the "Open Chat" window that you see in the bottom right hand corner of the site.