Read INI file from a loop?

Comments

2 comments

  • Avatar
    Codename K

    This worked,

        <setInstallerVariable>
            <abortOnError>0</abortOnError>
            <name>myvarcount</name>
            <show>0</show>
            <showMessageOnError>0</showMessageOnError>
            <value>1</value>
        </setInstallerVariable>
        <iniFileGet>
            <abortOnError>0</abortOnError>
            <file>${myfolder}\my.ini</file>
            <key>test${myvarcount}</key>
            <section>test</section>
            <show>0</show>
            <showMessageOnError>0</showMessageOnError>
            <variable>myvar</variable>
        </iniFileGet>
        <while>
            <abortOnError>0</abortOnError>
            <show>0</show>
            <showMessageOnError>0</showMessageOnError>
            <actionList>
                <mathExpression>
                    <abortOnError>0</abortOnError>
                    <show>0</show>
                    <text>${myvarcount}+1</text>
                    <variable>myvarcount</variable>
                </mathExpression>
                <iniFileGet>
                    <abortOnError>0</abortOnError>
                    <file>${myfolder}\my.ini</file>
                    <key>test${myvarcount}</key>
                    <section>test</section>
                    <show>0</show>
                    <showMessageOnError>0</showMessageOnError>
                    <variable>myvar</variable>
                </iniFileGet>
            </actionList>
            <conditionRuleList>
                <compareValues>
                    <logic>equals</logic>
                    <negate>1</negate>
                    <value1>${myvar}</value1>
                    <value2></value2>
                </compareValues>
            </conditionRuleList>
        </while>

    0
    Comment actions Permalink
  • Avatar
    BitRock support

    Hi,

    Thanks for sharing the solution with the community!

    Regards,

    Michiel

    1
    Comment actions Permalink

Please sign in to leave a comment.