This project is read-only.

Feature request: $exeDism

Topics: Archive - General
Mar 17, 2014 at 3:12 PM
Edited Mar 17, 2014 at 3:12 PM
Thank you for all the great work on this toolkit. It's proving to be an invaluable resource!

I've noticed that there are already pre-existing variables for wusa, schtasks, and msiexec ($exeWusa, etc). Would it be possible to also create a variable for dism.exe that automatically accounts for 32- or 64-bit processes? It's not hard to accomplish due to the fabulous existing variables $is64Bit and $is64BitProcess, but it would save a lot of copy/pasting when working with Windows components.

This is my implementation, which has worked great so far:
if ($is64Bit -and -not($is64BitProcess))
    $exeDism = "$envWinDir\SysNative\dism.exe"
} else {
    $exeDism = "$envWinDir\system32\dism.exe"