bug? Register-DLL and Unregister-DLL

Topics: Archive - General
Nov 27, 2013 at 2:23 PM
Edited Nov 27, 2013 at 2:28 PM
I think I've found a bug.

If you try to register a dll with a path containing a space, the script will attempt to run
Execute-Process "regsvr32.exe" -Arguments "/s '$FilePath'" -WindowStyle Hidden -PassThru
This will fail silently without raising an error, with exit code 3.

If you replace the hyphens with escaped quotation marks in AppDeployToolkitmain.ps1, it works.
Execute-Process "regsvr32.exe" -Arguments "/s `"$FilePath`"" -WindowStyle Hidden -PassThru
Nov 27, 2013 at 7:53 PM
Excellent thanks. Will be fixed in the next release.