1
我試圖建立自己的項目中WiX的安裝程序,但每次我建造它,我得到這4個錯誤:錯誤而試圖建立WiX的安裝程序
Unresolved reference to symbol 'WixComponentGroup:ServerGUIPlugin.Sources' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 33
Unresolved reference to symbol 'WixComponentGroup:ServerGUIPlugin.Binaries' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 34
Unresolved reference to symbol 'WixComponentGroup:AttachToGUI.Binaries' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 37
Unresolved reference to symbol 'WixComponentGroup:ServerGUI.Binaries' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 38
它們在引用這一段代碼在產品.wxs:
<Feature Id="ProductFeature" Title="WixInstaller" Level="1">
<ComponentGroupRef Id="ServerGUIPlugin.Sources" /> <!--This line-->
<ComponentGroupRef Id="ServerGUIPlugin.Binaries" /> <!--This line-->
<ComponentGroupRef Id="RegistryGroup" />
<ComponentRef Id="comp_4ABDC32C_56A9_4E3D_9640_14D1E430A1CD" />
<ComponentGroupRef Id="AttachToGUI.Binaries" /> <!--This line-->
<ComponentGroupRef Id="ServerGUI.Binaries" /> <!--This line-->
<ComponentRef Id="comp_22A86C14_76CC_472B_9016_90FD42925402" />
</Feature>
...我已經尋找互聯網上的解決方案,但我只是用的WiX工具集開始,大部分的時間,我不知道他們在說什麼。任何人都可以告訴我爲什麼這是導致錯誤,或者我應該怎麼做才能解決它?
你是如何定義引用ComponentGroups?像這樣:'
har07
我沒有,這些都是自動生成的。 – thijmen321
在這種情況下,您還必須將包含這些'ComponentGroup'的自動生成的文件添加到光照和蠟燭的命令行中。否則他們無法找到。 – taffit