how to find directory inside file ???

Comments

3 comments

  • Avatar
    wojciechka

    Such things are not done by rules, but actions. <iniFileGet> action can be used to reat an .ini file - for example:

    <iniFileGet> <file>${install_location}/properties.ini</file> <key>installdir</key> <section>General</section> <variable>property_installdir</variable> </iniFileGet>

    You can then use ${property_installdir} as default value for installdir parameter.

    It is documented in more details in Get INI File Property section of InstallBuilder user guide.

    Also, to find a specific file, you can use the <findfile> action - but this may take very long time to complete as it has to traverse the entire base directory. For example:

    <findFile> <baseDirectory>C:/bitnami</baseDirectory> <pattern>properties.ini</pattern> <variable>install_properties_file</variable> <ruleList> <platformTest type="osx"/> </ruleList> </findFile>

    It is documented in more details in Find File section of InstallBuilder user guide.

  • Avatar
    Vimel Raja

    thanks for your help :)

  • Avatar
    Vimel Raja

    how to set if condition ??? 1. if condition properties.ini file is there then install the wamp application

    2 otherwise it is not wamp floder

Please sign in to leave a comment.