Dim os As String = GetSystemProperty("os.name", "").ToLowerCase If os.Contains("win") Then workingFolder = File.Combine(GetEnvironmentVariable("AppData", ""), "YourAppName") File.MakeDir(workingFolder, "") Else workingFolder = File.DirApp End If
File.Copy(File.DirAssets, "Update.jar", File.DirApp, "Update.jar")
I found the solution (maybe also of interest for others): add installation path of InnoSetup to PATH variable in your windows environment variables.No, there must be another reason: InnoSetup is installed (Build 5.5.6), also the Inno SetupStudio..
Doy ou have another idea ?
this is the problem i have reported, same error, try with run administrator. (i have tested on win 10 without java too)PS: I installed successfully on a Win 7 PC that does not have JAVA. Myapp.exe fails to execute even when I run directly from Program Files... Help please.
Rebooted Win 7, tried running as Admin to no avail; Check compatibility - just said Incompatible Application.
The menu group continues to be Unknown. This is the code - I tried it after the Addall and within the Addall in the Sub btnBuild_Action.Try this from the menu name. Add the following line after the args.AddAll line:
args.AddAll(Array ("-deploy", "-srcFiles", txtJar.Text, "-native", packageExtension, _ "-BsystemWide=true", "-title", txtTitle.Text, "-name", txtName.Text, "-outdir", workingFolder, _ "-outfile", "1.exe", "-BshortcutHint=true", "-BmenuHint=true", "-Bwin.menuGroup=Test", "-BappVersion=" & txtVersion.Text, "-appclass", appClass, _ "-Bidentifier=" & appClass)) ' args.AddAll(Array("-BmenuHint=true", "-Bwin.menuGroup=Test"))
I also do not understand what I meantI did not understand what you meant "from the menu name" - I assumed "for the menu group name"
As usual, you are correct - it was a Windows latency issue. I changed the app package name and it worked - the appropriate menu group was created. SOLVED.Please try to replace the app package name and then use this tool to build a new installer. Maybe Windows remembers the previously installed menu group.
Installed 32-bit JDK and when run build in a few second (too few) appears a window message "Package built successfully" but the folder is empty.Micro,
Download and install a 32-bit JDK on your development computer. On Oracle's website, it will be named the same except for having "-x64" at the end replaced with "-i586".
Follow all the steps enumerated by Erel in the original post, except replace all the Java addresses with the equivalents in your 32-bit JDK. They will probably be under "Program Files(x86)".
This should build a 32-bit executable with an embedded 32-bit JRE.