5 responses to “Register DLL – Calling RegSvr32 without MessageBoxes in PowerShell”

  1. Nic Bedford

    I’m just getting into PowerShell, but this seems like a lot of work compared with the old cmd.exe way of achieving the same thing

    C:\> for %i in (*.dll) do regsvr32 /s %i

  2. Nic Bedford

    Thanks for the clarification Joel, I guessed I was missing something, but didn’t appreciate the subtlety of actually being able to access the return code :(

  3. Peter Nimmo

    Ah, but you can test the return code of regsvr32, for example it returns 3 if the file doesn’t exist