Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"Grayed Condition" question

Featured Replies

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!!!

  • Author

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!

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 :-)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.