/build/static/layout/Breadcrumb_cap_w.png

Removing directory read only attributes in Wise

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

Answers (3)

Posted by: anonymous_9363 15 years ago
Red Belt
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?
Posted by: aek 15 years ago
Purple Belt
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)
Posted by: anonymous_9363 15 years ago
Red Belt
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]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ