fix(winget): add switches to install silently

This commit is contained in:
Jan De Dobbeleer 2021-12-30 19:02:55 +01:00 committed by Jan De Dobbeleer
parent 53470eb3cb
commit b93ab4e82d
2 changed files with 21 additions and 1 deletions

View file

@ -9,7 +9,7 @@ AppSupportURL=https://github.com/JanDeDobbeleer/oh-my-posh/issues
LicenseFile="bin\COPYING.txt" LicenseFile="bin\COPYING.txt"
OutputBaseFilename=install OutputBaseFilename=install
PrivilegesRequired=lowest PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=commandline dialog PrivilegesRequiredOverridesAllowed=dialog
[Files] [Files]
Source: "bin\oh-my-posh.exe"; DestDir: "{app}\bin" Source: "bin\oh-my-posh.exe"; DestDir: "{app}\bin"

View file

@ -7,12 +7,32 @@ InstallerType: inno
Scope: user Scope: user
InstallModes: InstallModes:
- interactive - interactive
- silent
- silentWithProgress
Installers: Installers:
- Architecture: x64 - Architecture: x64
InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/install-amd64.exe InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/install-amd64.exe
InstallerSha256: <HASH-AMD64> InstallerSha256: <HASH-AMD64>
Scope: machine
InstallerSwitches:
Custom: /ALLUSERS
- Architecture: x64
InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/install-amd64.exe
InstallerSha256: <HASH-AMD64>
Scope: user
InstallerSwitches:
Custom: /CURRENTUSER
- Architecture: arm64 - Architecture: arm64
InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/install-arm64.exe InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/install-arm64.exe
InstallerSha256: <HASH-ARM64> InstallerSha256: <HASH-ARM64>
Scope: machine
InstallerSwitches:
Custom: /ALLUSERS
- Architecture: arm64
InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/install-arm64.exe
InstallerSha256: <HASH-ARM64>
Scope: user
InstallerSwitches:
Custom: /CURRENTUSER
ManifestType: installer ManifestType: installer
ManifestVersion: 1.0.0 ManifestVersion: 1.0.0