Forum posts for desktopicon.exe

wix, how to add a string to custom path

I am very new to the WiX toolset. I have to create an installer with two requirements:


Install the program to the default path. This works well.
User can choose a path. This works well but I have to always add the name of the directory as a string I gave to 'WIXUI_INSTALLDIR'.


How can I add the directory name automatically?

Here is a code sample:

<Directory Id='COMNET' Name='COMNET'>
<Directory Id='DICSHS_1' Name='DICSHS'>
<Component Id='DICSHS.EXE' DiskId='1' Guid='2E3EED9D-369D-41E4-A213-0479912E4A40'>
<File Id='DICSHS.EXE' Name='DicsHs.exe' Source='C:Wix_Testsprogram filesCOMNETDICSHSDicsHs.exe'>
<Shortcut Id='desktopShortcut' Directory='DesktopFolder' Name='DicsHs' WorkingDirectory='INSTALLDIR' Advertise='yes' Icon='DesktopIcon.exe' IconIndex='0' />
<Shortcut Id='ExeShortcut' Directory='ProgramMenuDir' Name='DicsHs' Advertise='yes' Icon='StartMenuIcon.exe' IconIndex='0' />
</File>
</Component>

<Component Id='SHOWERROR.EXE' DiskId='1' Guid='14B32974-B447-4A8B-973D-C96D80251BE8'>
<File Id='SHOWERROR.EXE' Name='ShowError.exe' Source='C:Wix_Testsprogram filesCOMNETDICSHSShowError.exe' />
</Component>


Here I use the directory COMNET in WIXUI_INSTALLDIR:

<Property Id='WIXUI_INSTALLDIR' Value='COMNET' />
<UIRef Id='WixUI_InstallDir' />


But when the user chooses a path, I have to add always the string COMNET on the end of the custom path. This is this is my problem.

View complete forum thread with replies

Other posts related to desktopicon.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

WiX missing &#39;Start In&#39; property in desktop shortcut
wix, how to add a string to custom path

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.