wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
129 stars 36 forks source link

WIX Heat - improper output - causes compilation error on the .wxs file produced after harvesting a .reg file #5344

Open sharmade opened 8 years ago

sharmade commented 8 years ago

If this issue is a bug:

v3.10.3.3007

  • Which version of Visual Studio are you building with (if any)?

Command Line

  • Which version of .NET are you building with?

v4.0.30319

  • If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?

N/A

  • Describe the problem and the steps to reproduce it.
  • Harvested a .reg file. (heat.exe reg cbars.reg -suid -cg NTRegistryGroup -gg -sfrag -out reg.wxs)
  • Tried to compile the reg.wxs file. Got compilation error.
  • Describe the behavior you expected and how it differed from the actual behavior.

Expected: Output file produced by HEAT can be compiled. Actual: Compilation error.

error CNDL0206 : The 'TARGETDIR' directory has an illegal DefaultDir value of '.'. The DefaultDir value is created from the *Name attributes of the Directory element. The TARGETDIR directory is a special directory which must have its Name attribute set to 'SourceDir'.

Command used:

  1. For harvesting the file: heat.exe reg cbars.reg -suid -cg NTRegistryGroup -gg -sfrag -srd -out reg.wxs
  2. For compilation candle.exe *.wxs Error: As shown above

cbars.reg.txt reg.wxs.txt

Sorry - this is in continuation of the defect - 5341. I think, I provided wrong command that time, so the bug was not reproducible. Have double checked this time. Also, I was not very specific while reporting that bug. Have tried to be more specific this time.

BMurri commented 8 years ago

In the interest of minimal repro, the presence of -sfrag in the command line sets up the error condition.

The workaround is to simply remove that flag from the command line.

sharmade commented 8 years ago

The work around works. Thank you BMurri