Skip to content

Commit afd3758

Browse files
committed
switching properties and variables
1 parent 89109c3 commit afd3758

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup/azurecmd.wxs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
3333
<Property Id="ALLUSERS" Value="1" />
3434
<!-- per machine install-->
35-
35+
<property Id="PSGETMODULEPATH" Value="$(var.PlatformProgramFilesFolder)WindowsPowerShell\Modules\" />
3636
<Property Id="PSCOMPATIBLEVERSION">
3737
<RegistrySearch Id="PSCOMPATIBLEVERSION" Root="HKLM" Key="SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine" Name="PSCompatibleVersion" Type="raw" />
3838
</Property>
3939

4040
<Property Id="POWERSHELLGETMODULESINSTALLED" >
41-
<DirectorySearch Id="AZURERMPROFILEMODULE" Path="$(var.PlatformProgramFilesFolder)WindowsPowerShell\Modules\AzureRM.Profile" AssignToProperty="yes"/>
41+
<DirectorySearch Id="AZURERMPROFILEMODULE" Path="[PSGETMODULEPATH]AzureRM.Profile" AssignToProperty="yes"/>
4242
</Property>
4343

4444
<Condition Message="Azure Resource Manager Modules from the PowerShell Gallery are installed on this machine. Please remove these modules before installing.">
45-
Installed or NOT (POWERSHELLGETMODULESINSTALLED = "$(var.PlatformProgramFilesFolder)WindowsPowerShell\Modules\AzureRM.Profile")
45+
Installed or NOT (POWERSHELLGETMODULESINSTALLED = "[PSGETMODULEPATH]AzureRM.Profile")
4646
</Condition>
4747

4848

@@ -83,7 +83,7 @@
8383
<Component Id="PSModulePath.System" Guid="273525B9-7AAB-421A-90C8-8E50A1840B8D">
8484
<CreateFolder />
8585
<!-- Work around bug that PowerShell does not always consider default module paths. -->
86-
<Environment Id="PSModulePath.SystemAppRoot" Action="set" Name="PSMODULEPATH" Part="last" Value="$(var.PlatformProgramFilesFolder)\WindowsPowerShell\Modules;[PowerShellFolder]ResourceManager;[PowerShellFolder]ServiceManagement" System="yes" />
86+
<Environment Id="PSModulePath.SystemAppRoot" Action="set" Name="PSMODULEPATH" Part="last" Value="[PSGETMODULEPATH];[PowerShellFolder]ResourceManager;[PowerShellFolder]ServiceManagement" System="yes" />
8787
</Component>
8888
</DirectoryRef>
8989

0 commit comments

Comments
 (0)