We have a vendor msi. On installation, the program directory has a read only attribute on the folder.

I tried to add an attrib -R command in our custom setup.bat file, but still the directory attributes did not change.

Issue:
The users save configurations on launching the application and all these configurations are saved in that program directory.

So, my thought was since I am unable to change the directory attributes, maybe I should give the authenticated users write access to the folder.

I was thinking of adding this custom action modacl /t "[Programfiles]program directory" /ar users:modify (this was added so authenticated users have write/ modify access to the folder).

Questions:
Is there a way to modify directory attributes (via registry or some other way since attrib is not working)
If I give write permissions, will it overwrite the directory attributes?

Thanks
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
OTTOMH, the only reason I can think for ATTRIB to not work is if the user has insufficient rights to alter the file's attributes. Does the installing user's account have write access to the folder?
Answered 12/11/2008 by: VBScab
Red Belt

Please log in to comment
0
user's account have write access to the folder?

yes. I can uncheck the read only box and click OK. But when I look at the directory properties again, it still has the read only check box checked (lightly grayed out)
Answered 12/11/2008 by: aek
Purple Belt

Please log in to comment
0
That normally indicates that there are read-only files or sub-folders in the folder .

Get the GUI out of the way and do it The Proper Way, via a command prompt:

ATTRIB -R /S [folder_name]
Answered 12/11/2008 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity