VMware Cloud Community
AnonymousDefaul
Enthusiast
Enthusiast

how to find directory inside file ???

is there any possible to find directory inside file


example wamp(directory) floder inside wampmanager.ini(file)


what type of rule test i use ' <filetest>'  or ??



  1. <directoryparameter name=' wamp'  description=' wampp'  value=' ' >
        <explanation></explanation>
        <default>${installdir}</default>
        <---- ${installdir} = C:wamp/
        <allowemptyvalue>0</allowemptyvalue>
        <mustbewritable>0</mustbewritable>
        <mustexist>0</mustexist>
        <width>30</width>
        </directoryparameter>


Labels (1)
3 Replies
AnonymousDefaul
Enthusiast
Enthusiast

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= or ' osx or ' />     </ruleList> </findFile>

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

0 Kudos
AnonymousDefaul
Enthusiast
Enthusiast

thanks for your help  🙂

0 Kudos
AnonymousDefaul
Enthusiast
Enthusiast

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

0 Kudos