Skip to content

Commit cd26014

Browse files
author
Hovsep
committed
Merge pull request #1706 from haocs/bugfix
[#111345868] Get rid of the shortcut for Azure PowerShell
2 parents dee1e68 + 9efaa8b commit cd26014

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

setup/azurecmd.wxs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
77

88
<?define version="1.1.0" ?>
9-
<?define versionedStartMenuFolder="Microsoft Azure" ?>
10-
<?define staleStartMenuFolder="Windows Azure" ?>
119

1210
<Product Id="*"
1311
Name="$(var.productName)"
@@ -63,10 +61,6 @@
6361
</Directory>
6462
</Directory>
6563
</Directory>
66-
<Directory Id="ProgramMenuFolder">
67-
<Directory Id="AzureSdkMenu" Name="$(var.versionedStartMenuFolder)"/>
68-
<Directory Id="StaleAzureSdkMenu" Name="$(var.staleStartMenuFolder)"/>
69-
</Directory>
7064
</Directory>
7165

7266
<Property Id="POWERSHELLPATH">
@@ -97,41 +91,17 @@
9791
</Component>
9892
</DirectoryRef>
9993

100-
<DirectoryRef Id="AzureSdkMenu">
101-
<Component Id="AzureSdkShortcut" Guid="A9B58A22-F746-451D-8840-F887D8014C3C">
102-
<Shortcut Id="AzureSdkStartMenuShortcut"
103-
Name="Microsoft Azure PowerShell"
104-
Description="Microsoft PowerShell cmdlets"
105-
Target="[POWERSHELLPATH]\powershell.exe"
106-
Arguments="-NoExit -ExecutionPolicy Bypass -File &quot;[PowerShellFolder]ServiceManagement\Azure\Services\ShortcutStartup.ps1&quot;"/>
107-
<RemoveFolder Id="AzureSdkMenu" On="uninstall"/>
108-
<RemoveFile Id="RemoveStaleFiles" Directory="StaleAzureSdkMenu" Name="Windows Azure PowerShell.lnk" On="both"/>
109-
<RegistryValue Root="HKCU" Key="SOFTWARE\Microsoft\Microsoft SDKs\WindowsAzure\$(var.version)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
110-
</Component>
111-
</DirectoryRef>
112-
11394
<Feature Id="azurecmd" Title="Microsoft Azure PowerShell" Level="1" Description="Windows PowerShell commandlets">
11495
<ComponentGroupRef Id="azurecmdfiles" />
11596
<ComponentRef Id="PSModulePath.System" />
116-
<ComponentRef Id="AzureSdkShortcut" />
11797
<ComponentRef Id="AzureSdkExecutionPolicyScript" />
11898
<ComponentRef Id="AzureSdkRemoveModulesScript" />
11999
</Feature>
120100

121101
<Binary Id="CustomActions" SourceFile="$(var.caSourceDir)\Microsoft.WindowsAzure.Setup.CA.dll"/>
122-
<CustomAction Id="UpdatePSShortcut" BinaryKey="CustomActions" DllEntry="UpdatePSShortcut" Execute ="deferred" Impersonate="no"/>
123-
<CustomAction Id="SetCustomActionDataValue" Return="check" Property="UpdatePSShortcut"
124-
Value="ShortcutPath=[AzureSdkMenu]Microsoft Azure PowerShell.lnk;DefaultShortcutPath=[ProgramMenuFolder]System Tools\Windows PowerShell.lnk" />
125102
<CustomAction Id="SetExecutionPolicy" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -WindowStyle Hidden -NonInteractive -ExecutionPolicy Bypass -Command &quot;. \&quot;[PowerShellFolder]SetExecutionPolicy.ps1\&quot;&quot;" Execute="deferred" Impersonate="no" Return="check"/>
126103
<CustomAction Id="RemoveGalleryModules" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -WindowStyle Hidden -NonInteractive -ExecutionPolicy Bypass -Command &quot;. \&quot;[PowerShellFolder]RemoveGalleryModules.ps1\&quot;&quot;" Execute="deferred" Impersonate="no" Return="check"/>
127104

128-
<InstallExecuteSequence>
129-
<Custom Action="SetCustomActionDataValue" After="CreateShortcuts">NOT Installed</Custom>
130-
<Custom Action="RemoveGalleryModules" After="SetCustomActionDataValue">NOT Installed</Custom>
131-
<Custom Action="UpdatePSShortcut" After="RemoveGalleryModules">NOT Installed</Custom>
132-
<Custom Action="SetExecutionPolicy" After="UpdatePSShortcut">NOT Installed</Custom>
133-
</InstallExecuteSequence>
134-
135105
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\media\License.rtf" />
136106
<UIRef Id="WixUI_Minimal" />
137107
<WixVariable Id="WixUIBannerBmp" Value="media\bannrbmp.bmp" />

0 commit comments

Comments
 (0)