We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Best way to maintain related projects

For two nearly similar installer projects, we need a good way to maintain them.

We provide an installer with Java bundled. This is the first variant of our project.
For each release, we need an additional version of that installer. That second variant comes without Java (but with a minor change to use a preinstalled Java machine instead.)

My best idea to maintain these two variants is currently that:
  • 1. Maintain the first version as "master project"
    2. With each release, copy the master project
    3. Now open the copy in AI, manually remove Java and apply the minor changes.
Surely, this is something our build server cannot execute. :(
Is this the best approach ? Who knows a more automatic, and less error prone way ?

-- Thank you --
Ruben
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Best way to maintain related projects

Hello Ruben,

Please note that you can create two builds in the Builds page, one build with JRE and another build without JRE. For details, please take a look on the Select the JRE to be bundled in the product article with related information for hints and guidance.
You can also take a look on the Java Settings Tab article which may be useful to you.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Re: Best way to maintain related projects

Hello Dan,

That solved it. A summary for other readers:

- Define two (or more) builds
Thus, Advancedinstaller will write two (or even more) MSI files in one build run, if required.

- On the Organization/Features and Components page, each feature can be assigned to one or more builds.
This allows to exclude each feature from a build.
The whole java (jre) folder and all files are grouped into one feature by default, when added from the "java products" page. That makes it easy to completely include or exclude Java from a build.
Further thinkings:
I think that only features can be assigned to builds.To include/exclude a single file, we need to define a feature for that file first. Custom actions cannot be excluded from specific builds. (Correct me if I'm wrong.)

Thank you!
Ruben

Return to “Building Installers”