Hello, During BitRock installation, I have to unzip an archive. I know the location of that archive, and the name of the archive, but I do not exactly know, at run time, the name of a file packaged in it (assume, the archive is from a third-party team, and file inside it can be named anything). In my <postinstallationaction> I have to supply a path to that unzipped file, including its name, to one of my config files. Is there a way to know what will be the name of unzipped file?

Thanks!

asked 10 May '12, 18:22

Sasha's gravatar image

Sasha
6222323
accept rate: 0%


You can use <findFile> action to find the filename after unzipping the archive. For example if you unzipped it to ${installdir}, you can do:

<findFile>
  <baseDirectory>${installdir}</baseDirectory>
  <pattern>myapp-*.xml</pattern>
  <variable>xmlfile</variable>
</findFile>

You can find more information in Find File section of InstallBuilder User Guide.

link

answered 11 May '12, 07:36

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Thank you! That was what I was looking for!!

(11 May '12, 18:44) Sasha
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:

×19
×13
×4
×4

Asked: 10 May '12, 18:22

Seen: 1,345 times

Last updated: 11 May '12, 18:44