B4J Tutorial [ABMaterial] Package your WebApp with InnoSetup

Discussion in 'B4J Tutorials' started by Mashiane, Jul 14, 2018.

  1. Mashiane

    Mashiane Expert Licensed User

    Ola

    Well, this is not related to ABM per se, but due to the fact that I wanted to package an ABM app for distribution for users to use in in their computers without the need of an internet connection or java installation, I stumbled upon a working solution.

    Why?

    There is an app I need to provide to my users to install on their desktops and use offline.

    What will you need.

    1. Inno Setup
    2. Launch4j
    3. Java JRE folder

    Reproduction

    0. Create your ABM WebApp and run it, ensure everything works perfectly. Its better to have the app coded to open the web-browser automatically when it starts.

    1. Follow this post here..
    In summary, after you compile your working version of your ABM WebApp, create a folder in your c drive, call it MyApp for example, copy the contents of your Objects folder (of your app) to it as is. Copy the jre folder from java to the new c:\myapp folder. The post details how and an example included. I have also included an example of my Launch4J xml file there as an example.

    2. After your exe is compiled by Launch4j, start and run Inno Setup. Here is a demo video on how I did it. IMPORTANT: Note that in additional files I selected the complete folder that contains both the jre and my www and jar folder.



    3. After exe compiled, the output file, in this case 87MB can be distributed and installed by end user.

    4. Its better to install directly to the C drive when asked to choose an install directory as Program Files is read only and gzipping your images will not work when your app runs.

    Ta!

    All the best.
     
  2. Mashiane

    Mashiane Expert Licensed User

    A demo video on running the packaged .exe installer and running the embedded app. Just an example...

     
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