Skip to content

Commit fe6b4f7

Browse files
author
Hovsep Mkrtchyan
committed
Current MSI fix progress
1 parent 43677a5 commit fe6b4f7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

setup-powershellget/Setup/ShortcutStartup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Finalizing installation of Azure PowerShell.
2626
Installing Azure Modules from PowerShell Gallery.
2727
This may take some time...
2828
"@
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\"
3030

3131
Import-Module PackageManagement
3232

setup-powershellget/azurecmd.wxs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3-
3+
4+
<?if $(var.Platform) != x86 ?>
5+
<?define System32Dir = "System64Folder" ?>
6+
<?else?>
7+
<?define System32Dir = "SystemFolder" ?>
8+
<?endif ?>
9+
410
<?define productName="Microsoft Azure PowerShell - October 2015" ?>
511
<?define sourceDir="$(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
612
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
@@ -28,7 +34,7 @@
2834
<Property Id="ALLUSERS" Value="1" />
2935
<!-- per machine install-->
3036

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>
3238

3339
<Property Id="PSCOMPATIBLEVERSION">
3440
<RegistrySearch Id="PSCOMPATIBLEVERSION" Root="HKLM" Key="SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine" Name="PSCompatibleVersion" Type="raw" />
@@ -71,7 +77,7 @@
7177
<Component Id="PSModulePath.System" Guid="273525B9-7AAB-421A-90C8-8E50A1840B8D">
7278
<CreateFolder />
7379
<!-- 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" />-->
7581
</Component>
7682
<Component Id="AzureSdkShortcutScript" Guid="3d0d589a-b34c-4c48-9a4c-df78f286c6a3">
7783
<File Id="AzureSdkShortcutScriptFile" KeyPath="yes" Source="$(var.SolutionDir)\Setup\ShortcutStartup.ps1" />

0 commit comments

Comments
 (0)