MSFN Forum: "Grayed Condition" question - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

"Grayed Condition" question Rate Topic: -----

#1 User is offline   gczobel 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 22-September 05

Posted 31 March 2006 - 09:01 AM

Hi!
I don't understand how exactly work this option.
I want to disable the checkbox if the program was already installed, for this I test if some folder exists.
In the "Grayed Condition" field I wrote:

FileExists('C:\TEST')

and the checkbox is allways checked doesn't matter if the directory exists or not.

What is my error? I need another function and not FileExists?

Thanks!!!


#2 User is offline   gczobel 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 22-September 05

Posted 31 March 2006 - 10:43 AM

Ok. I made some tests...

The function FileExists works ok for files... for directories the result is the same... don't matters if the folder exists or not.

So... to test if .Net framework v 2 is installed THIS WORK:

FileExists('%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\Accessibility.dll')


but this doesn't work (the checkbox is allways checked):

FileExists('%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\')

How I can test if a DIRECTORY exists? (an empty directory)

Thanks!

#3 User is offline   jagsil73 

  • Group: Members
  • Posts: 1
  • Joined: 17-March 06

Posted 04 April 2006 - 04:57 PM

Ok, put in your grayed condition.... It will not look for an empty folder. You have to tell it a file that is in that folder.... then to get it to uncheck that item if it is installed, go to the "Options" area and change the "Check on load?" option to Defaults.... any thing that is installed will be unchecked automaticly.

Hope this helps :-)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy