Share variables when auto updating

Comments

1 comment

  • Avatar
    jesus

    You can use the iniFileSet action in the main installer's postInstallationActionList to set in a file the values that you want to save.

    <iniFileSet>
        <file>${installdir}/folder/myvalues.ini</file>
        <section>section</section>
        <key>key</key>
        <value>${value}</value>
    </iniFileSet>
    

    Then, in your update installer, you can use the iniFileGet action in the readyToInstallActionList and/or installdir parameter's postShowPageActionList to retrieve these values.

    <iniFileGet>
        <file>${installdir}/folder/myvalues.ini</file>
        <key>key</key>
        <section>section</section>
        <variable>value</variable>
    </iniFileGet>
    
    0
    Comment actions Permalink

Please sign in to leave a comment.