Hi, In the installer I'm building with the cdrom option, looks like the installerFileName setting is not being honored, and all installer launchers for various platforms are being generated in "setup-${platform}.${platform_exec_suffix}" format. Is there a way to override the "setup-" part? I tried the "--setvars project.installerFilename=name", but that doesnt seem to take either.

Thanks, Reddy

asked 11 Dec '12, 14:58

laxmireddy's gravatar image

laxmireddy
1202020
accept rate: 0%


It is not possible to configure the filename, however, it is possible to rename or copy the file to a different name after the build is complete. For example the XML below will rename setup-windows.exe to install-windows.exe, deleting install-windows.exe first if it exists.

<postBuildActionList> <actionGroup> <actionList> <deleteFile> <path>${project.outputDirectory}/${project.cdromDirectory}/install-windows.exe</path> <ruleList> <fileExists> <path>${project.outputDirectory}/${project.cdromDirectory}/install-windows.exe</path> </fileExists> </ruleList> </deleteFile> <renameFile> <destination>${project.outputDirectory}/${project.cdromDirectory}/install-windows.exe</destination> <origin>${project.outputDirectory}/${project.cdromDirectory}/setup-windows.exe</origin> </renameFile> </actionList> <ruleList> <compareText> <logic>equals</logic> <text>${platform_name}</text> <value>cdrom</value> </compareText> </ruleList> </actionGroup> </postBuildActionList>

This may not work properly if <outputDirectory> is not set in the project - in which case, the output path has to be specified in the actions. It can, of course, be extended to check for <outputDirectory> and use ${installbuilder_install_root}/output if <outputDirectory> is empty.

link

answered 12 Dec '12, 02:58

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:

×15

Asked: 11 Dec '12, 14:58

Seen: 1,140 times

Last updated: 12 Dec '12, 02:58