I did follow this and even the advices of @lior.yaffe since some of this instructions have slightly changed in the version 1.12.2.
I managed to create the installer, nevertheless the final executable after installation gives this error (in someone's computer that does not have Java, it works in mine).
But running VcashPay.exe directly from the terminal gives the error below.
And running this also:
C:\Program Files\VCP>jdk\bin\java -Dnxt.runtime.mode=desktop .\VcashPay.exe
Error: Could not find or load main class .\VcashPay.exe
Caused by: java.lang.ClassNotFoundException: /\VcashPay/exe
Rename resource\nxt.properties to resource\VcashPay.properties
i.e. the name of the properties file in the resource folder must match the name of the exe file.
I tried on my laptop where it worked already, when I rename it VcashPay.properties it doesn't work it says something like JVM not found. With nxt it works on my laptop. But it didn't work on my client's laptop. Same error than above.
I also tried, to copy paste the jdk and javafx-jdk folders from the NXT installed wallet to the VcashPay folder and it didn't resolve the issue.
Renaming the files as you suggested didn't solve the issue.
I tried to find in the code where the resource\nxt.properties file is called to check/change it but couldn't find it.
A bit of progress, basically it seems that renaming resource\nxt.properties to resource\VcashPay.properties made some progress. I am working on a VM to test directly.
Actually by replacing the jdk and javafx-sdk by the ones found in the nxt installer it seems to work. I still have another issue compiling I need to figure out that now.