Page 1 of 1

Read-Only Attribute

Posted: Mon Feb 27, 2006 7:30 am
by matrix2k
We ar using VSS to manage our sourcecode and NAnt to compile it. After the main build the InstallAware is executed to build setup file.

All of our config files are also in VSS and every file in VSS is read-only so when we want to install our product with InstallAware the files that are installed on new system are also read-only this is not good because I want the setup to modify some of the configuration files.

How do I remove read-only attribute and why is it doing this? Is it a bug?

Posted: Mon Feb 27, 2006 1:52 pm
by MichaelNesmith
I don't think this is a bug - its simply preserving the original attributes of the file. You could call the SetFileAttributesA function in kernel32.dll using Call DLL Function to clear the attribute on files that must be read-write.

Posted: Tue Feb 28, 2006 8:40 am
by matrix2k
I see. I think there's hould be an option somewhere.

I have solved it by executing attrib -r /s on the root folder