mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
wix: only add a desktop shortcut on the first install
Change-Id: I32680db1ca81db77b8c49550531ecac992897a47
This commit is contained in:
parent
eb55c3193a
commit
577abd7bd4
1 changed files with 17 additions and 0 deletions
|
@ -35,6 +35,22 @@
|
|||
<MergeRef Id="VCRedist"/>
|
||||
</Feature>
|
||||
|
||||
<SetProperty After="FindRelatedProducts" Id="FirstInstall" Value="true">
|
||||
NOT Installed AND NOT WIX_UPGRADE_DETECTED AND NOT WIX_DOWNGRADE_DETECTED
|
||||
</SetProperty>
|
||||
<SetProperty After="SetFirstInstall" Id="Upgrading" Value="true">
|
||||
WIX_UPGRADE_DETECTED AND NOT (REMOVE="ALL")
|
||||
</SetProperty>
|
||||
<SetProperty After="RemoveExistingProducts" Id="RemovingForUpgrade" Sequence="execute" Value="true">
|
||||
(REMOVE="ALL") AND UPGRADINGPRODUCTCODE
|
||||
</SetProperty>
|
||||
<SetProperty After="SetUpgrading" Id="Uninstalling" Value="true">
|
||||
Installed AND (REMOVE="ALL") AND NOT (WIX_UPGRADE_DETECTED OR UPGRADINGPRODUCTCODE)
|
||||
</SetProperty>
|
||||
<SetProperty After="SetUninstalling" Id="Maintenance" Value="true">
|
||||
Installed AND NOT Upgrading AND NOT Uninstalling AND NOT UPGRADINGPRODUCTCODE
|
||||
</SetProperty>
|
||||
|
||||
<!--SetDirectory of APPLICATIONFOLDER -->
|
||||
<SetDirectory Id="APPLICATIONFOLDER" Value="[ProgramFiles64Folder][ApplicationFolderName]">APPLICATIONFOLDER=""</SetDirectory>
|
||||
<SetProperty Id="ARPINSTALLLOCATION" Value="[APPLICATIONFOLDER]" After="CostFinalize" />
|
||||
|
@ -81,6 +97,7 @@
|
|||
<Shortcut Id="ApplicationShortcutDesktop" Name="$(var.Name)" Description="Launch $(var.Name)" Target="[#fileMain.exe]" WorkingDirectory="INSTALLFOLDER" />
|
||||
<RemoveFolder Id="DesktopFolder" On="uninstall" />
|
||||
<RegistryValue Root="HKCU" Key="Software\jami.net\$(var.Name)" Name="desktop" Type="integer" Value="1" KeyPath="yes" />
|
||||
<Condition>FirstInstall</Condition>
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue