I have an installer up and running. It uses quite a few installer variables. I would like to be able to run the installer once in GUI mode and then save the installer variables to a file which could be re-used to run the install in silent mode. Is there some way to do this?

asked 04 May '13, 17:15

Ed%20Ost's gravatar image

Ed Ost
1111
accept rate: 0%


We do not have a built-in mechanism but you could write them in an ini file in the postInstallationActionList. For example, if you want to register the variables ${a} ${b} and ${c}, you could use:

<postInstallationActionList>
    <foreach>
        <values>a b c</values>
        <variables>varname</variables>
        <actionList>
            <iniFileSet>
                <file>${installdir}/install_options.ini</file>
                <key>${varname}</key>
                <section>General</section>
                <value>${{varname}}</value>
            </iniFileSet>
        </actionList>
    </foreach>
</postInstallationActionList>

And load it in a similar way:

<foreach>
    <values>a b c</values>
    <variables>varname</variables>
    <actionList>
        <iniFileGet>
            <file>${installdir}/install_options.ini</file>
            <key>${varname}</key>
            <section>General</section>
            <variable>${varname}</variable>
        </iniFileGet>
    </actionList>
</foreach>
link

answered 06 May '13, 03:17

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:

×36
×17
×14

Asked: 04 May '13, 17:15

Seen: 1,020 times

Last updated: 06 May '13, 03:17