PDA

View Full Version : Problem with "Check File/Folder Attributes" rule



aesparza
03-30-2009, 05:58 AM
Hi,

I'm trying to create an installer that checks if there is a configuration file in the same folder as the installer. In order to do so, I thought about a "Set InstallAnywhere Variable" action in the Pre-Install actions, and a "Check File/Folder Attributes" rule with that action, so if the file exists, the variable is set, and if the file doesn't exist, the variable won't be set.

The problem is when I try this installer. If the file doesn't exist, it works just fine, the variable is not set, and the installer runs, but when the file exists, the installer freezes in the pre-install part, and I have to kill it.

Anyone has any idea why this happens?

Thanks
Alberto E.

Gaoyuan Lv
03-31-2009, 09:22 PM
how do you set?
can you post your action?

aesparza
04-02-2009, 03:38 AM
Never mind, it just works fine now.
I don't know what was I doing wrong, but somehow it's fixed now.
Thanks for the answer and sorry for wasting your time.
Regards
Alberto E.

msankar
06-25-2009, 05:08 AM
Hi,
I am facing the Problem with "Check File/Folder Attributes" rule.I am setting the single variable $USER_MAGIC_FOLDER_10$.

The variable name:$USER_MAGIC_FOLDER_10$ and i am setting the value to : $ENGINE_DRIVER_CLASSES_DIR$.

For that my rule is "Check File/Folder Attributes".suppose the value of $ENGINE_DRIVER_CLASSES_DIR$ is empty or not set what is will going to happen.