How to add “-ext WixUIExtension ” to ant script in Netbeans?

一个人想着一个人 提交于 2019-12-12 11:42:50

问题


This is output of my native build script in JavaFX, Netbeans IDE.

This is default build via Netbeans.

Running [light, -nologo, -spdb, -sice:60, 
C:\Users\Firma\AppData\Local\Temp\build7911949220829827228.fxbundler\tmp\Client.wixobj, **-ext, WixUtilExtension**, -out, 
C:\devjava\rms\client\src\trunk\Client\dist\bundles\Client-2.0.msi] in 
C:\Users\Firma\AppData\Local\Temp\build7911949220829827228.fxbundler\images\win-msi\Client

I'm trying to customize Wix UI interface, that is way I need to use WixUIExtension.

How can I add "-ext WixUIExtension " to my building process in NB.

I do not know if this is customizable in NB.


回答1:


It is tricky. I think that they're still ironing out the kinks when it comes to native packaging in Netbeans 8. However, if you're using the standard JavaFX ANT tasks then just package the image when calling <fx:deploy>. After that you'll want to call WIX ANT tasks. These can be downloaded at http://ant.apache.org/antlibs/bindownload.cgi

Once you add ant-dotnet-1.1.jar to your ANT classpath then you'll be able to call WIX with the UI extension like so...

<wix mode="candle" source="package/windows/<YOUR_PROJECT>.WSX" wixobjdestdir="${dist.dir}/bundles"/>
<wix mode="light" source="${dist.dir}/bundles/YOUR_PROJECT.wixobj" target="${dist.dir}/YOUR_PROJECT_NAME.msi">
  <lightarg line="-ext WixUIExtension"/>
</wix>


来源:https://stackoverflow.com/questions/22595490/how-to-add-ext-wixuiextension-to-ant-script-in-netbeans

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