Hi,
One of my installation tasks to install an Access database in a user specified folder which may be on a network drive. (The default location is “[CommonApplicationData]\MyCo\MyApp\”).
The folder is created and the file is installed fine but I have an issue with permissions. If the user installs on a Vista machine, the created folder does not have sufficient permissions to run my application (it does not have the ability to create the database lock file). I thought the fix to this was simple and just modified the folders permissions from within Project Definition->Files and Folders to grant Everyone the necessary access level.
All works fine until the installation is run with the data directory specified on a network drive. The folder is created and file installed fine but I get the error “Could not set file security for file 'X:\Fred\DBDir\'. Error 3. Verify that you have sufficient privileges to modify the security permissions for this file." when it tries to set the permissions. This even occurs if the folder already exists and has the correct permissions.
I have read this topic http://www.advancedinstaller.com/forums ... ion#p17303 which is similar but it doesn’t really work for me since I can’t get xcacls to work on Vista. I have also tried to use icacls.exe from a custom action to just set the permission if installing on a vista machine to a non-network drive but icacls fails me.
This is the last thing I need to fix with my installer and it is driving me mad!!! Please help!
Rob