Closed SkilledAlpaca closed 6 years ago
Actually got it working. The -o flag needed double quotes around it.
Line 86 from
Start-Process -FilePath $archiverProgram -ArgumentList "x $dlFile Display.Driver NVI2 EULA.txt ListDevices.txt setup.cfg setup.exe -o$extractDir\$version\" -wait
to
Start-Process -FilePath $archiverProgram -ArgumentList "x $dlFile Display.Driver NVI2 EULA.txt ListDevices.txt setup.cfg setup.exe -o""$extractDir\$version\""" -wait
So I run the script in the
F:\User Profile\Downloads\
folder. Script downloads the drivers to theC:\Users\Alpaca\AppData\Local\Temp\
folder. Then it starts to extract the385.69.exe
to theF:\User\
folder. It should be extracting to theF:\User Profile\Downloads\
folder but due to there being a space in the path atUser Profile
it doesn't extract properly.I can't seem to find the culprit with the 7zip extraction method. Appears 7zip sees the space as a delimiter.