MSFN Forum: Read-Only Attribute - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Read-Only Attribute XP Create & Read-Only Attribute Rate Topic: -----

#1 User is offline   Frank_Sechrist 

  • Member
  • PipPip
  • Group: Members
  • Posts: 105
  • Joined: 07-December 03

Posted 30 December 2003 - 03:03 PM

I recently downloaded XPCreate and successfully slipstreamed SP-1 and the Hotfixes into the CD. I then created a user-controlled, unattended XP install CD. I have a small application (Rainlendar) that does not require an install, so I placed it in the \$OEM$\$Progs subdirectory.

The program copies to the hard disk and runs fine, but, the Program Files folder is now "read-only" and Rainlendar can not write to its .ini configuration file. Unattended installs from CDs created without XPCreate do not have this problem.

Any ideas? Thanks!!


#2 User is offline   GreenMachine 

  • ineXPlicable
  • Group: Developers
  • Posts: 3,062
  • Joined: 22-August 03

Posted 30 December 2003 - 03:26 PM

I have Rainlender as well, and just noticed that if I was not logged on as administrator I had the same problem. I really don't see how XPCREATE effects the NTFS security descriptions, but nothing is impossible. I would think, however, that a member of only the Users group should not have write access to the program files directory. Anybody else having issues with this?

#3 User is offline   Frank_Sechrist 

  • Member
  • PipPip
  • Group: Members
  • Posts: 105
  • Joined: 07-December 03

Posted 03 January 2004 - 10:50 AM

I guess it's not XPCreate, but rather the file attributes. All of the files in Program Files\Rainlendar have the read-only attribute when copied from the $Progs folder on the CD. As a result, Rainlendar is unable to write to its .ini files. And I am logging on as an Administrator.

I added an attrib -r command to my cleanup.cmd file and that solved the problem.

The read-only attribute is a problem. Anyone have any ideas how to handle this correctly?

Thanks!

#4 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 03 January 2004 - 07:32 PM

Sounds like a bug. I don't think Microsoft has ever documented the $Progs folder, so Microsoft might say it's an unsupported way to distribute things. But it wouldn't hurt to bring it to M$ attention.

-gosh

#5 User is offline   Powerhouse 

  • Member
  • PipPip
  • Group: Members
  • Posts: 137
  • Joined: 17-September 04

Posted 22 October 2004 - 10:38 AM

Frank,

Could you post the code you put in your Cleanup.cmd file to fix the Rainlendar problem (the arribe -r command).

Thanks.

#6 User is offline   moo 

  • Junior
  • Pip
  • Group: Members
  • Posts: 86
  • Joined: 29-July 04

Posted 22 October 2004 - 12:54 PM

Yes, it not a problem with XPcreate, but M$ problem.
To fix it I use next code in my clean.cmd

attrib -r "%PROGRAMFILES%\texter /s /d"

-r means to clear attributes (btw + means add, easy ah)
/s process all files into folder and subfolders
/d work with folders

hope it helps
moo

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy