mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-380545: Do not use RemoveFolder
for Desktop folder
It's meant to delete empty folders on uninstall but it's not applicable in this case, and caused issued if users don't have the correct rights. Also rename the IDs to better match content Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
parent
675775cb01
commit
23482a6be1
@ -146,10 +146,13 @@
|
||||
<Directory Id="ApplicationProgramsFolder" Name="$(var.BrandProduct)" />
|
||||
</Directory>
|
||||
<Directory Id="DesktopFolder" Name="Desktop">
|
||||
<Component Id="ProgramFilesShortcut" Guid="63b44222-b5e8-4ab1-8f68-baed79abbf36">
|
||||
<Component Id="ApplicationDesktopShortcut" Guid="63b44222-b5e8-4ab1-8f68-baed79abbf36">
|
||||
<Condition>INSTALLSHORTCUT</Condition>
|
||||
<Shortcut Id="ApplicationDesktopShortcut" Name="$(var.BrandConsole)" Target="[INSTALLDIR]$(var.BrandConsoleNoSpace).exe" WorkingDirectory="INSTALLDIR"/>
|
||||
<RemoveFolder Id="DesktopFolder" On="both"/>
|
||||
<Shortcut Id="DesktopXenCenter"
|
||||
Name="$(var.BrandConsole)"
|
||||
Target="[INSTALLDIR]$(var.BrandConsoleNoSpace).exe"
|
||||
WorkingDirectory="INSTALLDIR"
|
||||
/>
|
||||
<RegistryValue Root="HKCU" Key="Software\$(var.BrandProduct)\$(var.BrandConsoleNoSpace)" Name="installed" Type="integer" Value="1" KeyPath="yes" />
|
||||
</Component>
|
||||
</Directory>
|
||||
@ -167,9 +170,10 @@
|
||||
</RegistryKey>
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
<DirectoryRef Id="ApplicationProgramsFolder">
|
||||
<Component Id="ApplicationShortcut" Guid="$(var.AppShortcutGuid)">
|
||||
<Shortcut Id="startmenuXenCenter" ShortName="$(var.BrandConsoleShort)" Name="$(var.BrandConsole)" Target="[INSTALLDIR]$(var.BrandConsoleNoSpace).exe" WorkingDirectory="INSTALLDIR" Icon="XenCenterICO" />
|
||||
<Shortcut Id="StartmenuXenCenter" ShortName="$(var.BrandConsoleShort)" Name="$(var.BrandConsole)" Target="[INSTALLDIR]$(var.BrandConsoleNoSpace).exe" WorkingDirectory="INSTALLDIR" Icon="XenCenterICO" />
|
||||
<RemoveFolder Id="ApplicationProgramsFolder" On="both" />
|
||||
<RegistryValue Root="HKCU" Key="Software\$(var.BrandProduct)\$(var.BrandConsoleNoSpace)" Name="installed" Type="integer" Value="1" KeyPath="yes" />
|
||||
</Component>
|
||||
@ -183,7 +187,7 @@
|
||||
<ComponentRef Id="ExternalToolsComponent" />
|
||||
<ComponentRef Id="RegistryEntries" />
|
||||
<ComponentRef Id="ApplicationShortcut" />
|
||||
<ComponentRef Id="ProgramFilesShortcut" />
|
||||
<ComponentRef Id="ApplicationDesktopShortcut" />
|
||||
</Feature>
|
||||
|
||||
<UIRef Id="$(var.BrandInstallerUI)" />
|
||||
|
Loading…
Reference in New Issue
Block a user