B4J Tutorial UI apps packaging - self contained installers

Discussion in 'B4J Tutorials' started by Erel, Aug 2, 2015.

Thread Status:
Not open for further replies.
  1. Suntzu

    Suntzu Member Licensed User

    Thanks Erel. It worked.
     
  2. Douglas Farias

    Douglas Farias Expert Licensed User

    someone know how to add a option to select a path on the instalation?
    how can i set the path if have diferents OS (windows,mac etc)
    Some users want to install on driver D:/ for example and the installer dont add this option.
     
  3. Mohammadreza

    Mohammadreza Member

    I packed my .jar file to .exe
    But when I'm trying to install it, most of AntiVirus known it as a virus during installation and don't let it install correctly. How to solve it?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The anti virus software suspects any new executable. If you want to avoid it then you need to purchase a certificate and sign it (some anti viruses will still warn about the installer until it is popular enough).
     
    tdocs2 likes this.
  5. Mohammadreza

    Mohammadreza Member

    Ok, but what can I do now or anyway to build the executable file not installation file ( to solve the problem ) ?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Mohammadreza likes this.
  7. Mohammadreza

    Mohammadreza Member

  8. Erel

    Erel Administrator Staff Member Licensed User

    Mohammadreza likes this.
  9. tdocs2

    tdocs2 Well-Known Member Licensed User

    Thank you, Erel.

    When you refer to certificate are you referring to Symantec SSL Certificate?

    https://www.symantec.com/ssl-certificates/#

    Sandy
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    tdocs2 likes this.
  11. alienhunter

    alienhunter Active Member Licensed User

    Hi Erel,

    setting -BsystemWide=false it does not make the installer go to the user home !, otherwise this is great thanks

    Code:
    args.AddAll(Array ("-deploy""-srcFiles", txtJar.Text, "-native", packageExtension, _
                
    "-BsystemWide=false""-title", txtTitle.Text, "-name", txtName.Text, "-outdir", workingFolder, _
                
    "-outfile""1.exe""-BappVersion=" & txtVersion.Text, "-appclass", appClass, _
                
    "-Bidentifier=" & appClass))

    systemWide=boolean
    Flag that indicates if the application is installed in Program Files or in the standard location in the users home directory. Set to true to install the application in Program Files. Set to false to install the application in the user's home directory. The default is false.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    These parameters are handled by Oracle's javapackager tool.
     
  13. alienhunter

    alienhunter Active Member Licensed User

    Thanks Erel, it works I was just looking in the wrong folder ..:oops: ... oops sorry
     
  14. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    This is one little amazing utility!

    Thanks!
     
  15. tdocs2

    tdocs2 Well-Known Member Licensed User

    Greetings.

    I need your help. I am convinced that this file came from Inno Setup.

    I do not know if it is real malware as it was detected by Norton Sonar....

    Any feedback is appreciated.

    Thank you.

    Sandy
     

    Attached Files:

  16. Erel

    Erel Administrator Staff Member Licensed User

    tdocs2 likes this.
  17. tdocs2

    tdocs2 Well-Known Member Licensed User

  18. It runs, but then closes and does nothing. No file created. No errors. No results...?????
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Have you installed Inno Setup?
     
  20. eurojam

    eurojam Well-Known Member Licensed User

    Attached is a version where I added the above line - also in the form - and the possibility to add a Desktop shortcut (windows only).
    Code:
    args.Add("-BshortcutHint=true")
     

    Attached Files:

    lemonisdead and Erel like this.
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice