Install4j Files.log copied in wrong folder - install4j

the InstallFiles action is a location in temp files, during the installation i changed the ${installer:sys.installationDir} . But Install4j will copy the files.log in the temp location where the installFiles action copied the files.
why? where is my mistake?

Related

Netbeans ignoring upload relative file path

Netbeans has stopped uploading files using the relative file structure. No matter what I upload path settings I enter, it uploads only to the server root. How can I fix this?
The problem is just for one project; other projects using the same configuration are okay.
I compared the files in nbproject with a working project and there are no differences.
I changed the "upload directory" but it doesn't change where the file gets uploaded to
I deleted the project and
created it anew.
It seems to be simply ignoring the config.
On my local computer, the path is:
/MyNetbeans/Project
/Source Files
/folder1
/folder2
MyFile.php
/Include Path
/Remote Files
When I upload, it saves the file to
/folder2/MyFile.php
but it should save it to
/folder1/folder2/MyFile.php
Netbeans 12.0,
Windows 10
Any ideas for getting it to upload using the relative path?
SOLUTION: change the Sources folder in Project Properties.
From the Netbeans File menu > Project properties > under Categories select "Sources". Next to "Source folder:" click BROWSE. Navigate to the folder, higher or lower, in the local directory structure which matches the directory structure on the server > OK.
Upload the file and check the server to see where it was saved. Rinse, lather and repeat as necessary.

Uninstaller in Install4j won't delete all flles

We are using Install4j v6.16.
In our uninstaller process we define "Delete files or directories" action to the installation directory by: ${installer:sys.installationDir} with the recursive option.
After the process is getting finish the .install4j directory (which contains some jars files and 1 dll file) and the uninstall.exe file won't be deleted.
If some of these files weren't be able to be deleted, the uninstaller process should have throw an error, isn't it?
On Windows, it's not possible to delete a file that is in use, so the uninstaller does this with a temporary executable in the %TEMP% directory.
The "Delete files and directories" action does not throw an error if a file cannot be deleted, it writes file paths that cannot be deleted to the log file of the uninstaller in the %TEMP% directory.
Use the "Delete files and directories" action only for specific files that are created by your application in addition to the installed files, the runtime files will be deleted automatically.

some files are suddenly disapear from eclipse folder

I downloaded eclipse and then extracted it and copy it to another drive I use it for the first time. It has all file and folder.
after that I delete it and try to copy it again. but this time some files doesn't exist.
here is the picture of files:
Try to redownload it from https://eclipse.org/downloads/ and reunpack it.

How do I change .install4j directory to other directory

I use install4j to package my Java program.
But I find there is a .install4j directory in my installer directory .
I don't want my customer to know that I use install4j to package the programme.
How do I change this directory to another name,such as .john directory .
As of 5.1.6, it is not possible to change the name of this runtime directory.

Eclipse: How to overwrite resources in src folder

I have a program that alters a file in my src/resources folder, but the file that gets selected is in the bin/resources directory. How can I tell Eclipse to modify the file in the src/ directory. I understand that the bytecode is executed from the bin/ directory and the file needs to be visible to that folder, but I would like to know if it is possible to reference the src/ file.
I am using:
File file = new File(MyClass.class.getResource("resources/test.xml").getPath());
to load my file, but I don't want the path to my bin/ directory.
The path is:
/C:/Users/Foo/workspace/MyProject/bin/resources/test.xml
If you add src/resources to Eclipse Build Path, the compiler will then copy the entire folder structure to your output directory (i.e. bin) in which case you refer to test.xml using the same code:
File file = new File(MyClass.class.getResource("resources/test.xml").getPath());