I am currently still fiddling with our msbuild & deployment script and one of the steps is to register a (legacy) com component on the machine the code is deployed to. Is there any ‘elegant’ way to accomplish this or would I have to call the regsvr32.exe via wmi on the remote machine?
Share
You can use PsExec (from formerly SysInternals – but now part of Microsoft) to execute shell commands on remote machines.
Just use a standard MSBuild Exec task that wraps PsExec.