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>

asked 29 Jan '14, 06:12

Vimel%20Raja's gravatar image

Vimel Raja
41313233
accept rate: 8%

edited 29 Jan '14, 06:13


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.

link

answered 29 Jan '14, 06:32

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

thanks for your help :)

link

answered 29 Jan '14, 06:40

Vimel%20Raja's gravatar image

Vimel Raja
41313233
accept rate: 8%

You might want to "accept" the given answer, as this will help others to find this solution :-)

(29 Jan '14, 07:26) Dirk Stegemann

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

link

answered 29 Jan '14, 07:07

Vimel%20Raja's gravatar image

Vimel Raja
41313233
accept rate: 8%

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:

×176
×155
×54
×49
×41
×40
×36
×15

Asked: 29 Jan '14, 06:12

Seen: 3,158 times

Last updated: 29 Jan '14, 07:26