adjusted wix shortcut for app

This commit is contained in:
vadym 2022-12-20 09:15:57 +02:00
parent c5022d2b45
commit 0bfa83f019

View file

@ -232,14 +232,6 @@ cat > wix.xml << EOF
</Directory>
</Directory>
<Feature Id="MeshFeature" Title="Mesh" Level="1">
<ComponentRef Id="MainExecutable" />
<ComponentRef Id="UIExecutable" />
<ComponentRef Id="CtrlExecutable" />
<ComponentRef Id="cmpDesktopShortcut" />
<ComponentRef Id="ConfigScript" />
</Feature>
<CustomAction
Id="UpdateGenerateConfig"
Directory="MeshInstallFolder"
@ -275,22 +267,22 @@ cat > wix.xml << EOF
NOT Installed AND NOT REMOVE
</Custom>
</InstallExecuteSequence>
<Component Id="cmpDesktopShortcut" Guid="e32e4d07-abf8-4c37-a2c3-1ca4b4f98adc" Directory="DesktopFolder" >
<DirectoryRef Id="MeshInstallFolder">
<Component Id="cmpDesktopShortcut" Guid="e32e4d07-abf8-4c37-a2c3-1ca4b4f98adc" >
<Shortcut Id="RiVMeshDesktopShortcut"
Name="RiV-mesh"
Description="RiV-mesh is IoT E2E encrypted network"
Directory="DesktopFolder"
Target="cscript.exe"
Arguments="[MeshInstallFolder]mesh-ui-ie.js"
WorkingDirectory="MeshInstallFolder"
Advertise="yes"/>
WorkingDirectory="MeshInstallFolder"/>
<Shortcut Id="ApplicationStartMenuShortcut"
Name="RiV-mesh"
Description="RiV-mesh is IoT E2E encrypted network"
Target="cscript.exe"
Arguments="[MeshInstallFolder]mesh-ui-ie.js"
WorkingDirectory="MeshInstallFolder"
Advertise="yes"/>
WorkingDirectory="MeshInstallFolder"/>
<RemoveFolder Id="MeshInstallFolder" On="uninstall"/>
<RegistryValue Root="HKCU"
Key="Software\RiV-chain\RiV-mesh"
Name="installed"
@ -304,6 +296,15 @@ cat > wix.xml << EOF
Value='"cscript.exe" "[MeshInstallFolder]mesh-ui-ie.js"' />
<Condition>ASSISTANCE_START_VIA_REGISTRY</Condition>
</Component>
</DirectoryRef>
<Feature Id="MeshFeature" Title="Mesh" Level="1">
<ComponentRef Id="MainExecutable" />
<ComponentRef Id="UIExecutable" />
<ComponentRef Id="CtrlExecutable" />
<ComponentRef Id="cmpDesktopShortcut" />
<ComponentRef Id="ConfigScript" />
</Feature>
</Product>
</Wix>
EOF