cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
curtisdehaven
Level 3

XML File Changes - fails due to read-only

Hi All...

We have an install script project where we're changing an installed XML file - web.config - using XML File Changes.

Before we build the release, we download all of the install files out of a source-control project - Visual SourceSafe.

Since all of the files being downloaded out of SourceSafe are written as read-only, the XML File Changes is failing.

We've tried changing the attributes of that file unsing a call to SetFileInfo inside OnMoving() and OnMoved(), but neither one seems to do the trick.

If after the files are downloaded out of SourceSafe we go and change the attribute of this xml file explicitly, everything works. The extra step is annoying... It'd be nice if IS 2010 could turn off the read-only before modifying the file.

Any thoughts?

Many thanks! -- Curt
Labels (1)
0 Kudos
(3) Replies
ccRubens
Level 5

Hi,

Men did u get a answer for this??¿?

I wanna change the "Read-Only" property of an specific file, but dont Know how...
0 Kudos
Vijay__K
Level 7

curtisdehaven wrote:
Hi All...

We have an install script project where we're changing an installed XML file - web.config - using XML File Changes.

Before we build the release, we download all of the install files out of a source-control project - Visual SourceSafe.

Since all of the files being downloaded out of SourceSafe are written as read-only, the XML File Changes is failing.

We've tried changing the attributes of that file unsing a call to SetFileInfo inside OnMoving() and OnMoved(), but neither one seems to do the trick.

If after the files are downloaded out of SourceSafe we go and change the attribute of this xml file explicitly, everything works. The extra step is annoying... It'd be nice if IS 2010 could turn off the read-only before modifying the file.

Any thoughts?

Many thanks! -- Curt


Hi,
If you are using the msi project type you can change the read-only flag for the file.

If the file is included in a component in your project.

Goto the components view and right click -- properties.

You can override the file attributes.


Vijay__k
0 Kudos
chandu_mca06
Level 4

But the above solution is only applicable when the file is added individually to the component.

If the file is in dynamic linking folder then how can we resolve this issue?
0 Kudos