Unresolved reference to symbol 'WixUI:WixUI_InstallDir' in section for JAVA FX Deploy

隐身守侯 提交于 2021-02-10 18:37:27

问题


I created a java fx application and am customizing the MSI installer. I added my Software.wxs to the package/windows directory and I am getting the error:

Unresolved reference to symbol 'WixUI:WixUI_InstallDir' in section 

I understand I need to reference C:\Program Files (x86)\WiX Toolset v3.11\bin\WixUIExtension.dll which I have seen documentation for in visual studios & in command line but I am using eclipse with the build.xml ANT deploy.

If i do not reference any WixUIExtension's my project creates the MSI perfectly, but I want to customize the installer. ANy ideas on how to get this reference into my project?

I have tried: this in the software.wxs but it does not acknowledge the Itemgroup element

<ItemGroup>
    <WixExtension Include="WixUIExtension">
      <HintPath>C:\Program Files (x86)\WiX Toolset v3.11\bin\WixUIExtension.dll</HintPath>
      <Name>WixUIExtension</Name>
    </WixExtension>
</ItemGroup>


回答1:


Batch Build: I have not tried to use Eclipse to work with WiX. There might be much better solutions, but here is the "down to the wire" batch file compilation of WiX source files (*.wxs):

"%WIX%bin\candle.exe" product.wxs -ext WixUIExtension >> Build.log
"%WIX%bin\light.exe" -out Test.msi product.wixobj -ext WixUIExtension >> Build.log

You can add the WiX bin installation folder to the system path, but Rob Mensching - WiX author - has instead added the WIX environment variable that you can use instead as illustrated above. There are problems with PATH updates - for example security issues (without going into details), and there are also other issues (might try to dig up a link later).


Links:

  • Simple WiX batch build sample
  • Visual Studio build integration command line illustration

More Links:

  • Create msi of asp.net web api core 2.0 project



回答2:


VS Minimal Installation: As an alternative answer I want to list the minimal components you need to install to get WiX projects to compile with Visual Studio. This is also for others who see this answer, so please just ignore if it is not for you and your environment:

Steps: This is based on Visual Studio 2017 (https://visualstudio.microsoft.com/):

  1. VS: Install Visual Studio with nothing added - just core installer (https://visualstudio.microsoft.com/).
  2. VS: Add the following, individual components:
    • NET Framework 3.5 Development Tools
    • .NET Compiler Platform SDK. Several dependency packages comes along:
      • "C# and Visual Basic"
      • ".NET Compiler Platform SDK"
      • Etc...
    • .NET3.5 was already present on Windows 7
  3. VS / WiX: Install WiX and WiX VS Integration (download from https://wixtoolset.org/releases/)

Step-By-Step tutorial on how to use Visual Studio with Votive to deal with WiX projects.



来源:https://stackoverflow.com/questions/60750228/unresolved-reference-to-symbol-wixuiwixui-installdir-in-section-for-java-fx-d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!