0
votes

I am trying to package a JavaFX application using NetBeans & Inno setup. I have placed the custom .iss file and the images under Sample/package/windows folder. Ant CLASSPATH is also updated.

When I an trying to build the project, the compiler picks up the custom .iss file, but throws a file not found error.

Reading file (WizardImageFile)    
File: C:\Users\Me\AppData\Local\Temp\build3064710805837836647.fxbundler\imageswin-app.image\Sample.bmp
Error on line 34 in C:\Users\Me\AppData\Local\Temp\build3064710805837836647.fxbundler\images\win-app.image\Sample.iss: Could not read "C:\Users\Me\AppData\Local\Temp\build3064710805837836647.fxbundler\images\win-app.image\Sample.bmp".

Error: The system cannot find the file specified.
Compile aborted.

Sample.bmp file is present under Sample/package/windows

1
I don't know NetBeans, but doesn't every build delete a temp folder of a previous build and create a new one ? Isn't there an option to deploy the files to a non-temporary folder (some sort of release build configuration) ? Building a setup from files from a temp folder is not reliable! How would you even version your project ?TLama

1 Answers

0
votes

I figured out the problem here. The custom iss file should have the absolute path of the image file.