Powershell to display Regsvr32 result in console instead of dialog -


i've searched did not find answer.
task register 1 dll using powershell ps1, followed other lines of scripts. don't want interrupted dialog, added /s parameter. result information ignored, no matter succeed or fail. want result displayed in console. how?

launch regsvr32.exe /s start-process -passthru , inspect exitcode property:

$regsvrp = start-process regsvr32.exe -argumentlist "/s c:\path\to\your.dll" -passthru $regsvrp.waitforexit(5000) # wait (up to) 5 seconds if($regsvrp.exitcode -ne 0) {     write-warning "regsvr32 exited error $($regsvrp.exitcode)" } 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -