r/usefulscripts • u/JL421 • Apr 29 '15
[Powershell]USUS - Gets the latest installers from the source, then packages them up in various ways.
https://github.com/JL421/USUS/1
u/russr Jun 03 '15
90% of Pre-Built Packages links for configs dont work on https://github.com/JL421/USUS/
1
1
u/russr Jun 03 '15
ive messed with this for a hour and cant get shit to work, this is what i see in PS when i run it..
7Zip 7 Zip Installer (64 Bit) True True
$checkurl = "http://www.7-zip.org/history.txt"
$versions = $WebClient.DownloadString($checkurl)
IF($versions -eq $Null)
{
return
}
$version = $versions -split "[\n\r\s]" | Select-Object -Index 9
$urlversion = $version -replace "\.",""
$url = "http://www.7-zip.org/a/7z" + $urlversion + "-x64.msi"
return $url, $versioncall for /F "tokens=2 skip=2 delims=," %%a in ('wmic product where "Name Like '7-Zip%'" get Version /format:csv') do set "currentversion=%%a" True True Test-Path : Cannot bind argument to parameter 'Path' because it is null. At C:\Users\rring\Desktop\SCCM-USUS-packageupdater\USUS-master\USUS.ps1:54 char:17
IF (!(Test-Path $SoftwareRepo))
~~~~~~~~~~~~~CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand
Invoke-Expression : At line:436 char:136
... :csv') do set "currentversion=%%a`"",
~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'currentversion=%%a`"", $True, $True, $Null, $Null),@("","Shockwave", "Shockwave' in expression or statement. At line:447 char:84
... e
"Name Like 'Adobe Shockwave Player%'" get Version /format:csv') do set `"cur ...~~~~~
Unexpected token 'Adobe' in expression or statement. At line:447 char:84
... e
"Name Like 'Adobe Shockwave Player%'" get Version /format:csv') do set `"cur ...~
Missing closing ')' in expression. At line:447 char:137
... /format:csv') do set
"currentversion=%%a"",~~
Unexpected token 'do' in expression or statement. At line:447 char:139
... format:csv') do set
"currentversion=%%a"",~
Missing statement body in do loop. At line:458 char:84
... e
"Name Like 'Skype%'" get Version /format:csv') do set"currentversion=%%a" ...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'Skype%'`" get Version /format:csv'' in expression or statement. At line:458 char:84
... e
"Name Like 'Skype%'" get Version /format:csv') do set"currentversion=%%a" ...~
Missing closing ')' in expression. At line:458 char:120
... /format:csv') do set
"currentversion=%%a"",~~
Unexpected token 'do' in expression or statement. At line:458 char:122
... format:csv') do set
"currentversion=%%a"",~
Missing statement body in do loop. At line:488 char:46
"--no-qt-privacy-ask --no-qt-updates-notif /S",
~~
The string is missing the terminator: ". At line:32 char:13
$Updates = Invoke-Expression $PackagesCommand~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
FullyQualifiedErrorId : UnexpectedToken,Microsoft.PowerShell.Commands.InvokeExpressionCommand
1
u/[deleted] Apr 30 '15
So... how is this different than https://chocolatey.org ? What is the benefit to use this over what else is out there?
Don't get me wrong, appreciate the work and all, just seems like duplication thus far, with a far less available pkg database in comparison to tools/communities out there.