It is useful to find out which version of PowerShell one is running. This can be done programmatically as follows.
if ([IntPtr]::Size -eq 4){
set-alias installutil $env:windir\Microsoft.NET\ Framework\v2.0.50727\ installutil
}else{
set-alias installutil $env:windir\Microsoft.NET\ Framework64\v2.0.50727\ installutil
}
No comments:
Post a Comment