How do I direct the installer to perform actions after installation finishes?

asked 13 Sep '11, 04:03

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


You can direct the installer to perform some actions after installation is complete by using the <postInstallationActionList> section. The following example makes the installer run different scripts at the end of the installatiion process depending on whether or not is the root user who is performing the installation.

<postInstallationActionList>
  <runProgram>
    <program>${installdir}/scripts/root_script.sh</program>
    <programArguments>${installdir}</programArguments>
    <ruleList>
      <compareText>
       <logic>equals</logic>
       <text>${installer_root_install}</text>
       <value>1</value>
       </compareText>
    </ruleList>
  </runProgram>
  <runProgram>
    <program>${installdir}/scripts/myscript.sh</program>
    <programArguments>${installdir}</programArguments>
    <ruleList>
      <compareText>
       <logic>equals</logic>
       <text>${installer_root_install}</text>
       <value>0</value>
      </compareText>
    </ruleList>
  </runProgram>
</postInstallationActionList>
link

answered 13 Sep '11, 04:04

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

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:

×14
×5
×4
×3

Asked: 13 Sep '11, 04:03

Seen: 1,411 times

Last updated: 13 Sep '11, 04:04