On linux platform, we would like the installer to check for 2 dependencies being present on user's system prior to running our product's install: ia32-libs and make. How to accomplish this inside the InstallBuilder script?

Thanks.

asked 07 Sep '12, 21:19

Sasha's gravatar image

Sasha
6222323
accept rate: 0%


To check if make is installed, you could simply use the <programTest> rule:

<showInfo text="make is installed!" >
  <ruleList>
    <programTest>
       <condition>is_in_path</condition>
       <name>make</make>
    </programTest>
  </ruleList>
</showInfo>

Checking for the ia32-libs may be harder if you try to directly obtain it from the system (executing dpkg -l, rpm -qa,... depending on the system) but you could create a simple 32bit binary and try to execute it at runtime, if it crash because it cannot find the 32bit libraries then the ia32-libs are not installed.

link

answered 10 Sep '12, 04:21

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

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:

×73
×12
×3

Asked: 07 Sep '12, 21:19

Seen: 1,791 times

Last updated: 10 Sep '12, 04:21