Menu

#1312 Adding a reference to a .wixlib fails

v3.0
closed
nobody
votive (347)
2012-09-15
2008-08-25
No

Adding a reference to a valid .wixlib file fails with the following error "A reference to XXX could not be added. Please make sure that the file is accessible, and that it is a valid WiX reference."

Issue is related to .wixlib that are built with the following characteristics:
1) Single source file is bound to multiple components (smart cabbing)
2) -bf flag to bind files is used when library is built

If reference is added to .wixlib built without -bf flag, no error occurs. If library is subsequently rebuilt with -bf flag, product continues to build.

Steps to reproduce

1) Extract sample solution
2) Build TestLib (with bind files)
3) Attempt to add Reference (browse) to TestLib in TestProject
4) *** Fails with error ***
5) Rebuild TestLib without binding files
6) Add reference (browse) to TestLib in TestProject
7) Build TestProject
8) Test install (success)
9) Uninstall TestProject
10) Rebuild TestLib (with bind files)
11) Rebuild TestProject
12) Test install (success)
13) Uninstall TestProject

Discussion

  • David Robinson

    David Robinson - 2008-08-25

    Logged In: YES
    user_id=1925940
    Originator: YES

    Attached sample solution.

     
  • Bob Arnson

    Bob Arnson - 2008-08-25

    Logged In: YES
    user_id=26581
    Originator: NO

    Dupe of 2010047.

     
MongoDB Logo MongoDB