Skip to content

Commit a661f2b

Browse files
committed
fixing the script for32-bit machines
1 parent 115ae88 commit a661f2b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/AzureRM/AzureRM.psm1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ function Test-AdminRights([string]$Scope)
4141
function CheckIncompatibleVersion([bool]$Force)
4242
{
4343
$message = "An incompatible version of Azure Resource Manager PowerShell cmdlets is installed. Please uninstall Microsoft Azure PowerShell using the 'Control Panel' before installing these cmdlets. To install these cmdlets regardless of compatibility issues, execute 'Install-AzureRM -Force'."
44-
if ( Test-Path "${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureResourceManager.psd1")
44+
$path = ${env:ProgramFiles(x86)}
45+
if ($path -eq $null)
46+
{
47+
$path = ${env:ProgramFiles}
48+
}
49+
50+
if ( Test-Path "$path\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureResourceManager.psd1")
4551
{
4652
if ($Force)
4753
{

0 commit comments

Comments
 (0)