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!!!
Page 1 of 1
"Grayed Condition" question
#2
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!
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
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 :-)
Hope this helps :-)
- ← thank's for all that you learned me alot
- Windows Post-Install Wizard (WPI)
- Errors After Installation →
Share this topic:
Page 1 of 1



Help
Back to top








