This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- XML File Changes - fails due to read-only
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 26, 2009
02:17 PM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 24, 2010
10:25 AM
Hi,
Men did u get a answer for this??¿?
I wanna change the "Read-Only" property of an specific file, but dont Know how...
Men did u get a answer for this??¿?
I wanna change the "Read-Only" property of an specific file, but dont Know how...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 24, 2010
11:19 AM
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 07, 2011
01:00 AM
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?
If the file is in dynamic linking folder then how can we resolve this issue?