Hi,

Is there some shortcut to extract a file packed in the installer executable without executing the installer steps? I'm just looking for a lightweight way of extracting a resource file where we put detailed version and build info.

Or is there some other way of adding and showing detailed info about the installer? I'm interested in Solaris and Linux support and I'm not building native packages.

Cheers, Per

asked 22 Jan '13, 04:50

perfry's gravatar image

perfry
31449
accept rate: 0%


You can use <unpackFile> and <unpackDirectory> action to unpack one or more files at any time.

For example to unpack an entire packed directory you can do:

<unpackDirectory> <destination>${system_temp_directory}</destination> <component>tools</component> <folder>license</folder> <origin>management</origin> </unpackDirectory>

And to unpack a file:

<unpackFile> <destination>${system_temp_directory}</destination> <component>tools</component> <folder>license</folder> <origin>management/validator.exe</origin> </unpackFile>

The Unpacking Before Installation Time section of InstallBuilder User Guide describes this in more details.

Also, you can use --setvars at build time to specify values that can then be stored for the installer - all that is needed is to create a parameter with the same name (and setting <ask> to 0, so it is not shown to the user).

$> builder build project.xml --setvars buildFlavor=minimal

Next create a hidden parameter to make the buildFlavor persistent at runtime:

<project> <shortName>myProject</shortName> <version>1.4</version> ... <parameterList> ... <stringParameter name="buildFlavor" value="minimal" ask="0"/> ... </parameterList> ... </project>

The variables can also be set in <preBuildActionList> - for example by reading files at build time and setting the values appropriately.

This approach is described in Creating Custom Builds section of InstallBuilder User Guide.

link

answered 22 Jan '13, 07:29

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×156
×5

Asked: 22 Jan '13, 04:50

Seen: 3,314 times

Last updated: 22 Jan '13, 07:29