I've looked around at several examples on SO but I haven't been able to figure out the solution to my problem. I'm trying to specify the source file in an MSI. Here is the code snippet I have so far.
<Directory Id="TARGETDIR" Name="SourceDir">
<Component Id ="FileAssociation" Guid="*">
<File Id="myapp.exe" Source="myapp.exe" />
</Component>
</Directory>
I understand SourceDir
is required but I don't know how to configure it. I'm coding this by hand and I'm still very new to WiX. The goal is to make an installer for Java code. setupBuilder allows me to build a WiX installer but I have to define the .wsx configuration for additional functionality. The end goal is for associating custom file types with my app but I can't even find the executable in my MSI.
So far, the error I get is
error LGHT0103 : The system cannot find the file 'wblite_debug.exe'
.
I'm guessing I need to specify SourceDir
to point to the directory that has the MSI installer? Am I on the right track?