weird problem - trying to solve it now since two days already:
I created a application "Silverlight" with command line: powershell.exe "& '.\setup.ps1'"
and enabled it to allow use in Install Application task sequence also.
I created a task sequence to setup windows 7 enterprise x86 and install some apps, i.e. .net 4, powershell 3.0 and some adobe products, then a reboot and then install the Silverlight application with the Install Application step(no MDT used)
However the Silverlight does then always fail immediately when launched.
I have following code in powershell script and I get no ExitCode back, $RetVal is just empty after run
$RetVal = 99
$process = Start-Process -FilePath "Silverlight51.exe" -ArgumentList "/q" -PassThru -Wait -WorkingDirectory "$WorkDir"
$RetVal = $process.ExitCode
very strange - when I then open directly with F8 a dos command window and run same script with psexec -s parameter, everything runs fine and I get the required ExitCode
Is there any difference how SCCM tries to install apps ?
appreciate very much any help or suggestion !!