windows installer - Wix recreate deleted shortcut when reinstalling -
i'm learning shortcuts in wix , have managed create shortcuts on desktop.
if delete shortcut , run installer again shortcut created again. how can behavior achieved wix?
i have created shortcuts both with
<file id="testx.exe" name="testx.exe" source="$(var.testx_targetdir)testx.exe"> <shortcut id="desktopicon" directory="desktopfolder" name="testx" workingdirectory='installfolder' icon="icontestx.exe" iconindex="0" advertise="yes" /> </file> and
<fragment> <directoryref id="desktopfolder"> <component id="desktopshortcut" guid="1e0d1741-57f0-4e22-89fc-4a189e2bb7e0"> <shortcut id="desktopsc" name="myproduct" description="myproduct description" target="[installfolder]testx.exe" icon="icontestx.exe"> </shortcut> <removefolder id="removedesktopfolder" directory="desktopfolder" on="uninstall" /> <registryvalue root="hkcu" key="software\[manufacturer]\[productname]" name="installed" type="integer" value="1" keypath="yes" /> </component> </directoryref> </fragment>
i solved problem using wixui_installdir in wixui library, added gui includes option start repair.
links wixui dialog library: http://wixtoolset.org/documentation/manual/v3/wixui/wixui_dialog_library.html http://wixtoolset.org/documentation/manual/v3/wixui/dialog_reference/wixui_installdir.html
Comments
Post a Comment