Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SorenLundt authored Aug 24, 2023
1 parent 63c4fb2 commit c812ac0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Binary file modified WinGet-Wrapper.intunewin
Binary file not shown.
6 changes: 4 additions & 2 deletions WinGet-Wrapper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
# Wrapper for running winget in system context. Finds the WinGet install path and runs desired command
#
# Usage: .\WinGet-Wrapper.ps1 -PackageName "Packagename used in log entry" -Context "User or System" -StopProcess "kill process using Stop-Process (.exe for the most part is not needed)" -ArgumentList "Arguments Passed to WinGet.exe"
# INSTALL .\WinGet-Wrapper.ps1 -PackageName "VideoLAN.VLC" -StopProcess "VLC" -ArgumentList "install --exact --id VideoLAN.VLC --silent --accept-package-agreements --accept-source-agreements --scope machine"
# UNINSTALL .\WinGet-Wrapper.ps1 -PackageName "VideoLAN.VLC" -StopProcess "VLC" -ArgumentList "Uninstall --exact --id VideoLAN.VLC --silent --accept-source-agreements --scope machine"
# INSTALL .\WinGet-Wrapper.ps1 -PackageName "VideoLAN.VLC" -StopProcess "VLC" -PreScript "" -PostScript "" -ArgumentList "install --exact --id VideoLAN.VLC --silent --accept-package-agreements --accept-source-agreements --scope machine"
# UNINSTALL .\WinGet-Wrapper.ps1 -PackageName "VideoLAN.VLC" -StopProcess "VLC" -PreScript "" -PostScript "" -ArgumentList "Uninstall --exact --id VideoLAN.VLC --silent --accept-source-agreements --scope machine"
#
# Variables:
# PackageName = Package name mainly used for naming the log file.
# StopProcess = Kill a specific process (Stop-process) before executing WinGet command (.exe should not be defined) Skips any error automatically.
# PreScript = Run powershell script before installation
# PostScript = Run powershell script after installation
# ArgumentList = Arguments passed directly to WinGet
#
# Version History
Expand Down
2 changes: 1 addition & 1 deletion WinGet-WrapperDetection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Version 2.4 - 24-08-2023 SorenLundt - WindowStyle Hidden for winget process + Other small fixes..

# Settings
$id = "VideoLAN.VLC" # WinGet Package ID - ex. VideoLAN.VLC
$id = "Exact WinGet Package ID" # WinGet Package ID - ex. VideoLAN.VLC
$TargetVersion = "" # Set if specific version is desired (Optional)
$AcceptNewerVersion = $True # Allows locally installed versions to be newer than $TargetVersion or available WinGet package version

Expand Down
2 changes: 1 addition & 1 deletion WinGet-WrapperRequirements.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Version 1.2 - 24-08-2023 SorenLundt - WindowStyle Hidden for winget process + Other small fixes..

# Settings
$id = "VideoLAN.VLC" # WinGet Package ID - ex. VideoLAN.VLC
$id = "Exact WinGet Package ID" # WinGet Package ID - ex. VideoLAN.VLC

#Define common variables
$logPath = "$env:ProgramData\WinGet-WrapperLogs"
Expand Down

0 comments on commit c812ac0

Please sign in to comment.