I have a GUI generated using wxpython
which is used to select the path required by wix
project to create msi. The selected path from the GUI is written to the registry when clicked on apply button in the GUI.The selected path is stored in a variable say data i.e:
data='C :\Sandbox\build\Windows\release\my.exe
as well as written to registry i.e:
HKEY_CURRENT_USER\Software\Automation\myapp
Now i have wix project developed to create msi using msbuild. I want the selected path in the GUI has to go into the source path in wix component. My wix code somewhat like below,
<Component Id='MainExecutable' Guid='*'>
<File Id='ExecutableFile' Name='my.exe' DiskId='1' Source='$(var.Sandbox)\my.exe' KeyPath='yes' Checksum='yes'/>
</Component>
With above code, I get an error saying,
error CNDL0150: Undefined pre processor variable '$(var.Sandbox)'
How can i pass the variable 'data' which is selected by the GUI to the file source path in wix?Is it possible to send the registry value to wix?