原文:https://blog.csdn.net/qq_27503061/article/details/90612455
最近研究OCR技術,需要使用javafx-maven-plugin生成可運行的exe文件,但是遇到以下問題:
[INFO] Skipping 'EXE 安裝程序' because of configuration error '找不到 InnoSetup 編譯器 (iscc.exe)。'
Advice to fix: 從 http://www.jrsoftware.org 下載 InnoSetup 5 或更高版本, 然后將其添加到 PATH。
[INFO] Skipping 'MSI 安裝程序' because of configuration error '找不到 WiX 工具 (light.exe, candle.exe)。'
Advice to fix: 從 http://wix.sf.net 下載 WiX 3.0 或更高版本, 然后將其添加到 PATH。
[INFO] Skipping 'WebStart JNLP Bundler' because of configuration error 'No OutFile Specificed'
Advice to fix: Please specify the name of the JNLP Outut file in 'jnlp.outfile'
通過查閱大量資料,把它解決了,特記錄下來,給需要的人(包括我自己)。
首先安裝Inno Setup
通過Inno Setup官網下載、安裝對應版本,需要說明兩點:
- 版本:雖然控制台提示5或更高版本均可以,但是我最開始安裝的是6,最終還是失敗了;最后,我改回5就可以了。
- 路徑:和1有關,最開始我安裝6時,我是將目錄放在D盤的, 失敗后,卸載重裝,路徑則是選擇的是默認路徑。
安裝成功后,配置環境變量,Start --> Computer -->System Properties --> Advanced System Properties --> Environment Variables then choose System Variables, Path, and then Edit. Enter the following to add Inno Setup 5 to the Path: C:\Program Files (x86)\Inno Setup 5;, 如下圖所示:
配置完成后,打開cmd,輸入iscc.exe,出現下圖,則表示安裝成功:
安裝WiX Toolset
通過WiX Toolset官網,下載安裝對應版本(我下載的是3.10)。
配置環境變量,Start --> Computer -->System Properties --> Advanced System Properties --> Environment Variables then choose System Variables, Path, and then Edit. Enter the following to add Inno Setup 5 to the Path: C:\Program Files (x86)\WiX Toolset v3.10\bin;, 如下圖所示:
配置完成后,打開cmd,分別輸入light.exe ,candle.exe,出現下圖,則表示安裝成功:
輸入light.exe:
輸入candle.exe時: