I have python script which has a setting window where the user can select the installation path for installing the software and i have a wix project for my app which can be build using msbuild. My question is, How can i pass the selected path from the setting window of my script to the source path of my wix components?The selected path is stored in a variable 'x' as well as written in the registry.Either i have to pass the variable 'x' from the script to wix or from registry to wix. Please help me out.My wix code looks like below,
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="Companyname" >
<Directory Id="INSTALLFOLDER" Name="myapp">
<Component Id='MainExecutable' Guid='*'>
<File Id='ExecutableFile' Name='mv.exe' DiskId='1' Source='c:\myfolder\...\qv.exe' KeyPath='yes'/>
</Component>
The path in the 'Source' should be from python script(from variable or registry) .