Execute-Process with Installdir

Topics: Archive - Deployment Scripts
Dec 4, 2014 at 3:32 PM
Hi, i'm trying to deploy an EXE file With some parameters and an installationdir.
Execute-Process -Path "Setup.exe" -Parameters "/s /v'/qn INSTALLDIR=\'%programfiles%\Applikation\Version\''" -WindowStyle Hidden -IgnoreExitCodes '3010'
But only get:
Exxecution failed With exit code 1203...
Dec 5, 2014 at 12:36 PM
I figured out that this is probably the correct syntax, now I get this error message:
Execution failed with exit code [-3]
Execute-Process -Path "Setup.exe" -Parameters "/s, /v`"/qn INSTALLDIR=\`"${Env:ProgramFiles}\Avid\iNEWS4\`"`"" -wait -WindowStyle Hidden -IgnoreExitCodes '3010'
Anyone who please can help me out?
Dec 15, 2014 at 9:49 PM
Just a guess since I am unfamiliar with the app but I would try this..
Execute-Process -FilePath "Setup.exe" -Parameters "/s /v`"/qn INSTALLDIR=`"${Env:ProgramFiles}\Avid\iNEWS4\`"`"" -WaitForMsiExec -WindowStyle Hidden -IgnoreExitCodes '3010'
Dec 17, 2014 at 5:24 PM
This worked for me;

Copy-File -Path "$dirFiles\Java CU.cmd" -Destination "$envWindir\Installer\Java CU.cmd"

Set-RegistryKey -Key "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\DisableJavaAutoUpdate" -Name "StubPath" -Value "$envWindir\Installer\Java CU.cmd" -Type String

Execute-Process -FilePath "$envWindir\Installer\Java CU.cmd"

Remove the : from Env:ProgramFiles