Command line version of a InstallBuilder

Comments

4 comments

  • Avatar
    juanjo

    In the case of Windows, we include two binaries, builder.exe and builder-cli.exe. The first one is compiled as a GUI application and the second one as a command line one. You could use the later.

    On OS X, you should call the builder as:

    Builder.app/Contents/MacOS/installbuilder.sh

    When launching it without arguments, the GUI mode will open, and to use it as a command line tool, you have to provide the build verb:

       Builder.app/Contents/MacOS/installbuilder.sh build path/to/project.xml platform
    

    You can get the help menu by executing:

       Builder.app/Contents/MacOS/installbuilder.sh --help
    

    It would be great if you could let us know if InstallBuilder support following features. 1. Executing shell script after installation?

    Yes, you can use the <runprogram> action to call any external script or binary. You can get additional details in the below link:

    http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_running_external_programs

    1. Upgrade/Downgrade feature?

    It is easy to create upgrade installers either with the installer itself or using our AutoUpdate tool:

    http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_autoupdate_tool

    Regarding downgrades, we do not support them as a built-in feature but you could implement them. How complex would be the process of downgrading

    1. Adding and removing screens? For eg. adding a new screen which has some agreement text with YES or NO buttons.

    Yes, you can add custom pages. In this case you could use the <licenseparameter> page. You can find it and many other examples in the below article:

    http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_showcase_of_available_parameters

    1. Is it possible to remove Browse option(destination folder selection) so that installer always copies content to one fixed location.

    Yes, you will just need to hide the installdir page (do not fully remove it, as it is required by the installer), and show a read only version using a <labelparameter>:

      <!-- The installation directory won't be selectable by the end user so we
      hide it setting ask=0 -->
      <directoryParameter>
         <name>installdir</name>
         ...
         <description>Installation Directory</description>
         <default>${platform_install_prefix}/${project.shortName}-${project.version}</default>
         <ask>0</ask>
         ...
      </directoryParameter>
      <!-- We display the read-only version of the installation directory -->
      <labelParameter>
         <name>readOnlyInstalldir</name>
         <title>Installation Directory</title>
         <explanation>Directory where ${project.fullName} will be installed</explanation>
         <description>Installation Directory: ${installdir}</description>
      </labelParameter>
    
  • Avatar
    amareshmayur

    Thanks a lot for the detailed information Mr. Juanjo. I appreciate your support. With your information I am able to run post install script. Thanks. I felt happy working with InstallBuilder, it definately satisfy all my requirement.

    Now I am facing problem with the below things

    • Now I am facing problem with creating desktop icon on Mac. Its not giving any error but desktop icon also not created.

    • Is there any way we can check the language selected by user and take some action(load a file, execute a script etc.).

    • Thanks Amaresh Mayur

  • Avatar
    juanjo

    Could you paste the code you are using to create the shortcut? On OS X, you should be using the code explained in this link:

      http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_shortcuts_aliases_on_os_x
    

    Regarding checking the language selected, you can access it checking the built-in variable ${installation_language_code}

  • Avatar
    amareshmayur

    Thanks for your support Mr.Juanjo, I could create a desktop icon after going through documentation.

    Currently InstallBuilder support 17 languages by default, is there any way I can add and support more languages?

    • Thanks Amaresh Mayur

Please sign in to leave a comment.