andikasp10 / test1

test
0 stars 0 forks source link

test1 #1

Open andikasp10 opened 3 years ago

andikasp10 commented 3 years ago

$VLC_URL = "https://download.videolan.org/vlc/last/win64/"; $DOWNLOAD_DIR = "C:\users\qwiklabs\Downloads\"; $GET_HTML = Invoke-WebRequest $VLC_URL; $FILE = $GETHTML.Links | Select-Object @{Label='href';Expression={@{$true=$.href}[$_.href.EndsWith('win64.exe')]}} | Select-Object -ExpandProperty href; $URL = ($VLC_URL+$FILE); $OUTPUT_FILE = ($DOWNLOAD_DIR+$FILE); (new-object System.Net.WebClient).DownloadFile($URL, $OUTPUT_FILE); cmd.exe /c "$OUTPUT_FILE /S"

andikasp10 commented 3 years ago

cmd.exe /c '"C:\Program Files\GIMP 2\uninst\unins000.exe" /VERYSILENT /NORESTART'