WiX Setup Project won't buid

Add-in Express™ Support Service
That's what is more important than anything else

WiX Setup Project won't buid
WiX Setup Project is created no prob, but errors out on build 
Kirill Lapin


Guest


WiX Setup Project is created no prob, but errors out on build.

Win 10
VS 2013
WiX 3.10.2

------ Build started: Project: HRGSetup(2.0.0), Configuration: Debug x86 ------
...

G:\...\HRG\HRGSetup\2.0.0\Product.wxs(65,0): error LGHT0204: ICE30: The target file 'office.dll' is installed in '[TARGETDIR]\' by two different components on an SFN system: 'comp_6320C64A_FD52_4964_B34A_C643596A37B9' and 'comp_EEFB4B59_535D_4E53_BB3E_B64682F69E8F'. This breaks component reference counting.
G:\...\HRG\HRGSetup\2.0.0\Product.wxs(56,0): error LGHT0204: ICE30: The target file 'office.dll' is installed in '[TARGETDIR]\' by two different components on an SFN system: 'comp_6320C64A_FD52_4964_B34A_C643596A37B9' and 'comp_EEFB4B59_535D_4E53_BB3E_B64682F69E8F'. This breaks component reference counting.
G:\...\HRG\HRGSetup\2.0.0\Product.wxs(65,0): error LGHT0204: ICE30: The target file 'office.dll' is installed in '[TARGETDIR]\' by two different components on an LFN system: 'comp_6320C64A_FD52_4964_B34A_C643596A37B9' and 'comp_EEFB4B59_535D_4E53_BB3E_B64682F69E8F'. This breaks component reference counting.
G:\...\HRG\HRGSetup\2.0.0\Product.wxs(56,0): error LGHT0204: ICE30: The target file 'office.dll' is installed in '[TARGETDIR]\' by two different components on an LFN system: 'comp_6320C64A_FD52_4964_B34A_C643596A37B9' and 'comp_EEFB4B59_535D_4E53_BB3E_B64682F69E8F'. This breaks component reference counting.
Done building project "HRGSetup(2.0.0).wixproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Any ideas please?

Thank you.
Posted 05 Feb, 2016 21:12:09 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Kirill,

The error "The target file 'XXX' is installed in 'YYY' by two different components" occurs because the file XXX is added twice to the folder YYY of your setup project. LFN and SFN = long and short file name.


Andrei Smolin
Add-in Express Team Leader
Posted 08 Feb, 2016 04:52:16 Top
Kirill Lapin


Guest


Thank you Andrei,

Do you know why would it be doing it? I removed the old ADX Setup project created in VS 2010 from the directory, but still no joy. Is there anything I can tweak manually?

Thanks,
Kirill
Posted 08 Feb, 2016 07:24:47 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Check the files that you put in the TargetDir folder. There should be an only office.dll file.


Andrei Smolin
Add-in Express Team Leader
Posted 08 Feb, 2016 07:36:03 Top
Kirill Lapin


Guest


Thanks. Deleting all files in the 'bin' and 'obj' folders of both projects, rebuilding the main project and then creating setup again seems to do the trick.
Posted 08 Feb, 2016 08:06:58 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Congratulations!


Andrei Smolin
Add-in Express Team Leader
Posted 08 Feb, 2016 08:56:25 Top