5

I am using WiX 3.5 and making an installer. I have used heat.exe to bundle all the files. It produced a WiX file. I referred in main wxs files as componentgroup ref. When I build my installer, it throws the following exception.

light.exe : error LGHT0103 : The system cannot find the file '..........\target\tmp-release\jboss-eap-5.0\jboss-as\server\all\deploy\httpha-invoker.sar\invoker.war\WEB-INF\classes\org\jboss\invocation\http\servlet\ReadOnlyAccessFilter.class' with type ''.

It is able load many files from this location, except the above file, even though the file is present.

Erik
  • 503
  • 1
  • 7
  • 26
Ravz1234
  • 129
  • 1
  • 2
  • 12

3 Answers3

10

Looks like you've hit the linker bug. As far as I can see, it was already reported to the WiX team, and was scheduled for v4.0. The comment to the issue states the path is more than 255 characters, so a possible workaround for you is to re-work the files/folders layout to avoid the paths of that length.

Hope this helps.

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
0

The answer of Ravz1234 works ! I used it with a environment variable e.g. env.SourcePath.

1) Set an environment variable to show on your Source Dir e.g. C:\SourceDir 2) On heat.exe add the argument -var env.SourcePath along with the other arguments

GLampros
  • 121
  • 1
  • 8
  • 1
    Tip: As answers come in, they can move around in the list. Ones with more popular results can bubble up to the top. Instead of saying "The above answer", it might be good to say "@JimBob's answer works" that way we can find it again when the order of answers shifts around. – Jerry Mar 18 '16 at 19:01
  • I mean the answer of @Ravz1234. Also do not forget to restart command prompt to see the new variable. – GLampros Mar 21 '16 at 09:27
-3

I used the variable for the directory, sys.SOURCEFILEDIR, and it worked well.

Ben
  • 51,770
  • 36
  • 127
  • 149
Ravz1234
  • 129
  • 1
  • 2
  • 12