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 254026 - [81cat] Wix Tools and Inno Setup executable not found by the ant script
Summary: [81cat] Wix Tools and Inno Setup executable not found by the ant script
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 10:24 UTC by -Silver-
Modified: 2015-09-08 10:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description -Silver- 2015-07-31 10:24:20 UTC
Test case:
http://services.netbeans.org/synergy/client/app/#/assignment/1303/v/1

Steps:
1. Download Innosetup 5.5.6 and WiX Toolset 3.9 R2 and install them.
2. Add to the system variable "PATH" the values 
    "C:\Program Files (x86)\WiX Toolset v3.9\bin";"C:\Program Files (x86)\Inno Setup 5"
3. From the command prompt verify the path:
   3.1 c:\> iscc 
        returns 
        Inno Setup 5 Command-Line Compiler
        Copyright (C) 1997-2015 Jordan Russell. All rights reserved.
        Portions Copyright (C) 2000-2015 Martijn Laan
        Inno Setup Preprocessor
        Copyright (C) 2001-2004 Alex Yackimoff. All rights reserved.

        Usage:  iscc [options] ...

    3.2 c:\> candle
        returns
        Windows Installer XML Toolset Compiler version 3.9.1208.0
        Copyright (c) Outercurve Foundation. All rights reserved.

        usage:  candle.exe [-?] [-nologo] [-out outputFile] sourceFile [sourceFile ...] [@responseFile] ...

4. Create a Java Project in Netbeans
5. From the project properties -> build -> deployment check "Enable Native Packaging Actions in Project Menu"
6. Right click on the project in the projects panel and select "Package as" -> "All artifacts".
--
Netbeans returns this error

ant -f D:\\Userfiles\\user1\\Desktop\\NBTest\\JavaApplication3 -Djar.archive.disabled=true -Dnative.bundling.type=all build-native
Detected JavaFX Ant API version 1.3
Execute failed: java.io.IOException: Cannot run program "iscc" (in directory "D:\Userfiles\user1\Desktop\NBTest\JavaApplication3"): CreateProcess error=2, The system cannot find the file specified
Execute failed: java.io.IOException: Cannot run program "candle" (in directory "D:\Userfiles\user1\Desktop\NBTest\JavaApplication3"): CreateProcess error=2, The system cannot find the file specified
D:\Userfiles\user1\Desktop\NBTest\JavaApplication3\nbproject\build-native.xml:440: Error:
JavaFX native packager requires external Inno Setup 5+ tools installed and included on PATH to create EXE installer. See http://www.jrsoftware.org/
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)
Comment 1 skygo 2015-08-27 11:37:00 UTC
Hi encounter a similar issue 
Wix is not detect in path (even after netbeans restart)
but Inno setup is detected.
Comment 2 Jiri Prox 2015-09-03 14:44:58 UTC
Reproducible,

the WiX changed the text on help page.
I've updated the  build-native.xml line 393 

from
"Windows Installer Xml Compiler version"

to
"Windows Installer XML Toolset Compiler version"

and it works again.
Comment 3 Tomas Zezula 2015-09-07 11:40:52 UTC
Fixed jet-main 3ed3f17f240b
Comment 4 Quality Engineering 2015-09-08 01:21:45 UTC
Integrated into 'main-silver', will be available in build *201509080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3ed3f17f240b
User: Tomas Zezula <tzezula@netbeans.org>
Log: #254026:[81cat] Wix Tools and Inno Setup executable not found by the ant script
Comment 5 Jiri Prox 2015-09-08 10:47:15 UTC
verified

Product Version: NetBeans IDE Dev (Build 201509080002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev

and 

Windows Installer XML Toolset Compiler version 3.10.0.2103