File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Finalizing installation of Azure PowerShell.
26
26
Installing Azure Modules from PowerShell Gallery.
27
27
This may take some time...
28
28
"@
29
- $env: PSModulePath = " $env: HOME \Documents\WindowsPowerShell\Modules;$env: ProgramFiles \WindowsPowerShell\Modules;$env: SystemRoot \system32\WindowsPowerShell\v1.0\Modules\"
29
+ $env: PSModulePath = " $env: USERPROFILE \Documents\WindowsPowerShell\Modules;$env: ProgramFiles \WindowsPowerShell\Modules;$env: SystemRoot \system32\WindowsPowerShell\v1.0\Modules\"
30
30
31
31
Import-Module PackageManagement
32
32
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" >
3
-
3
+
4
+ <?if $(var.Platform) != x 86 ?>
5
+ <?define System 32Dir = " System64Folder" ?>
6
+ <?else ?>
7
+ <?define System 32Dir = " SystemFolder" ?>
8
+ <?endif ?>
9
+
4
10
<?define productName =" Microsoft Azure PowerShell - October 2015" ?>
5
11
<?define sourceDir =" $(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
6
12
<?define caSourceDir =" $(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
28
34
<Property Id =" ALLUSERS" Value =" 1" />
29
35
<!-- per machine install-->
30
36
31
- <Property Id =" POWERSHELLEXE" ><![CDATA[ C:\Windows\System32 \WindowsPowerShell\v1.0\powershell.exe]]> </Property >
37
+ <Property Id =" POWERSHELLEXE" ><![CDATA[ [SystemFolder] \WindowsPowerShell\v1.0\powershell.exe]]> </Property >
32
38
33
39
<Property Id =" PSCOMPATIBLEVERSION" >
34
40
<RegistrySearch Id =" PSCOMPATIBLEVERSION" Root =" HKLM" Key =" SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine" Name =" PSCompatibleVersion" Type =" raw" />
71
77
<Component Id =" PSModulePath.System" Guid =" 273525B9-7AAB-421A-90C8-8E50A1840B8D" >
72
78
<CreateFolder />
73
79
<!-- Work around bug that PowerShell does not always consider default module paths. -->
74
- <Environment Id =" PSModulePath.SystemAppRoot" Action =" set" Name =" PSMODULEPATH" Part =" last" Value =" [PowerShellFolder]ServiceManagement" System =" yes" />
80
+ <!-- < Environment Id="PSModulePath.SystemAppRoot" Action="set" Name="PSMODULEPATH" Part="last" Value="[PowerShellFolder]ServiceManagement" System="yes" /> -- >
75
81
</Component >
76
82
<Component Id =" AzureSdkShortcutScript" Guid =" 3d0d589a-b34c-4c48-9a4c-df78f286c6a3" >
77
83
<File Id =" AzureSdkShortcutScriptFile" KeyPath =" yes" Source =" $(var.SolutionDir)\Setup\ShortcutStartup.ps1" />
You can’t perform that action at this time.
0 commit comments