This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267633 - Cannot create MSI/EXE installer even if WiX and Inno Setup are installed and in PATH
Summary: Cannot create MSI/EXE installer even if WiX and Inno Setup are installed and ...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-18 16:24 UTC by david.zapata
Modified: 2016-08-29 16:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Console showing candle and iscc programs are available in PATH, while netbeans says it cannot find them. (155.58 KB, image/png)
2016-08-18 16:24 UTC, david.zapata
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david.zapata 2016-08-18 16:24:35 UTC
Created attachment 161708 [details]
Console showing candle and iscc programs are available in PATH, while netbeans says it cannot find them.

I have installed WiX 3.10 and Inno Setup 5.5.9, and added them to my PATH correctly. I created a very simple Java application and configured the native Packaging. All of this, following the guide available in [https://netbeans.org/kb/docs/java/native_pkg.html].

When I try to create an MSI or an EXE installer, the output window displays:

----
ant -f C:\\Work\\evolucionapp.co\\Java\\Alert3 -Djar.archive.disabled=true -Dnative.bundling.type=exe build-native
Detected JavaFX Ant API version 1.3
Execute failed: java.io.IOException: Cannot run program "iscc" (in directory "C:\Work\evolucionapp.co\Java\Alert3"): CreateProcess error=2, The system cannot find the file specified
C:\Work\evolucionapp.co\Java\Alert3\nbproject\build-native.xml:439: Error:
JavaFX native packager requires external Inno Setup 5+ tools installed and included on PATH to create EXE installer. See http://www.jrsoftware.org/
BUILD FAILED (total time: 0 seconds)
----

Or

----
ant -f C:\\Work\\evolucionapp.co\\Java\\Alert3 -Djar.archive.disabled=true -Dnative.bundling.type=msi build-native
Detected JavaFX Ant API version 1.3
Execute failed: java.io.IOException: Cannot run program "candle" (in directory "C:\Work\evolucionapp.co\Java\Alert3"): CreateProcess error=2, The system cannot find the file specified
C:\Work\evolucionapp.co\Java\Alert3\nbproject\build-native.xml:440: Error:
JavaFX native packager requires external WiX 3.0+ tools installed and included on PATH to create MSI installer. See http://wix.sourceforge.net/
BUILD FAILED (total time: 0 seconds)
----

I have closed on open Netbeans many times trying to ensure it takes the PATH changes into account, I have started Netbeans IDE normally and also as administrator, but none of this works.

Maybe I'm doing something wrong here, or maybe there is a bug in Netbeans. Please help.
Comment 1 dmsundaram 2016-08-29 16:45:10 UTC
Comment on attachment 161708 [details]
Console showing candle and iscc programs are available in PATH, while netbeans says it cannot find them.

For me too, this issue arise. Any one can easily reproduce this issue. Kindly help to resolve this error.
Comment 2 dmsundaram 2016-08-29 16:53:40 UTC
MSI works well where as only the EXE installer only failed. Some kind of inconsistency while creating setup application.