Read-Only Attribute

Got a problem you cannot solve? Try here.
matrix2k
Posts: 16
Joined: Tue Feb 07, 2006 5:27 am

Read-Only Attribute

Postby matrix2k » Mon Feb 27, 2006 7:30 am

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?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon Feb 27, 2006 1:52 pm

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

matrix2k
Posts: 16
Joined: Tue Feb 07, 2006 5:27 am

Postby matrix2k » Tue Feb 28, 2006 8:40 am

I see. I think there's hould be an option somewhere.

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 130 guests