MSFN Forum: Using $OEM$ Folder causes problems - MSFN Forum

Jump to content



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

Using $OEM$ Folder causes problems Such as read-only files! Rate Topic: -----

#1 User is offline   nomadturk 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 27-December 07

Posted 31 January 2008 - 01:31 AM

Hey there!

I've a little problem, i'm usin the $OEM$ folder structure to add default settings, languages, plugins for software i'm installing via unattended installation. Such as for Firefox, Thunderbird, SuperCopier2, XnView, AIMP2 and etc. One little problem i have is that once these settings are copied from DVD to HDD, they're marked as "Read Only" which is a big problem since for example i'm getting errors whilst opening Firefox just because all the profile files copied from DVD is read only.

For Firefox, i'm not using the Silent of Foxes or such kind of plugins since i change the settings, add some adblock filters, greasmonkey scripts within the installation.

For the rest, i want them not to be read only.

Is there any way to do this?

The only solution i can think of is creating cab files to be installed during installation, but... Being a real novice i don't know how to do that. :(


#2 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,756
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 January 2008 - 02:35 AM

http://www.ss64.com/nt/attrib.html

#3 User is offline   nomadturk 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 27-December 07

Posted 31 January 2008 - 02:45 AM

View PostKelsenellenelvian, on Jan 31 2008, 03:35 AM, said:




I do that already. I'm using

Quote

CMD> attrib -R *.* /S /D


But it won't work since the files are marked as read-only whilst being copied to the HDD.

This post has been edited by nomadturk: 31 January 2008 - 02:46 AM


#4 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,756
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 January 2008 - 02:54 AM

CMD> attrib -R *.* /S /D


When are you calling this command?

Have you tried adding it in as a .cmd file and calling it via cmdlines.txt? ($oem$ files are copied at the last of the text mode portion and cmdlines runs a t-13\t-12 so the files would be long and copied by then.)

#5 User is offline   nomadturk 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 27-December 07

Posted 31 January 2008 - 03:00 AM

View PostKelsenellenelvian, on Jan 31 2008, 03:54 AM, said:

CMD> attrib -R *.* /S /D


When are you calling this command?

Have you tried adding it in as a .cmd file and calling it via cmdlines.txt? ($oem$ files are copied at the last of the text mode portion and cmdlines runs a t-13\t-12 so the files would be long and copied by then.)


Err, before burning the DVD?
No, i really am a newbie. I didn't touch cmdlines.txt yet since i was unsure how to use that too.
Will it be OK if i create a cmdlines.txt in $OEM$ folder, add only the line

attrib -R *.* /S /D

Or... How will i create a cmdlines.txt and use that?
(I know that it's explained at the home of MSFN. But.. It's kinda confusing.)

This post has been edited by nomadturk: 31 January 2008 - 03:09 AM


#6 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 31 January 2008 - 05:36 AM

You don't say how you are 'copying' to HDD so I thought I'd mention that Xcopy will reset read-only attributes unless told otherwise.

#7 User is offline   nomadturk 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 27-December 07

Posted 31 January 2008 - 05:53 AM

View PostYzöwl, on Jan 31 2008, 06:36 AM, said:

You don't say how you are 'copying' to HDD so I thought I'd mention that Xcopy will reset read-only attributes unless told otherwise.



How?

Well, after creating a new user profile with the settings i need, i've copied the Mozilla folder from

Quote

C:\Documents and Settings\NoXP\Application Data


to

Quote

\$OEM$\$DOCS\All Users\Application Data


These are copied via OEM folder structure, like i said before.
I assume i should add Xcopy command to the cmdlines.txt, right?

#8 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,756
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 31 January 2008 - 06:12 AM

View Postnomadturk, on Jan 31 2008, 03:00 AM, said:

View PostKelsenellenelvian, on Jan 31 2008, 03:54 AM, said:

CMD> attrib -R *.* /S /D


When are you calling this command?

Have you tried adding it in as a .cmd file and calling it via cmdlines.txt? ($oem$ files are copied at the last of the text mode portion and cmdlines runs a t-13\t-12 so the files would be long and copied by then.)


Err, before burning the DVD?
No, i really am a newbie. I didn't touch cmdlines.txt yet since i was unsure how to use that too.
Will it be OK if i create a cmdlines.txt in $OEM$ folder, add only the line

attrib -R *.* /S /D

Or... How will i create a cmdlines.txt and use that?
(I know that it's explained at the home of MSFN. But.. It's kinda confusing.)



Ok you cannot simply add a command to the cmdlines.txt like that.

Open notepad and paste the full command in the notepad window and then save it as "ReadOnlyFix.cmd"

Then place that cmd file in the $oem$ folder and place the cmd files name in cmdlines.txt just like so "ReadOnlyFix.cmd" (You don't even need the quotes unless you are using spaces in the name)

This post has been edited by Kelsenellenelvian: 31 January 2008 - 06:38 AM


#9 User is offline   nomadturk 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 27-December 07

Posted 31 January 2008 - 08:05 AM

Hmm, then i'll do it your way.
But the question is how will i address the folder?

Will i use something like

Quote

cd %ALLUSERSPROFILE%\
attrib -R *.* /S /D


Quote

%ALLUSERSPROFILE%\Application Data\

Quote

%APPDATA%\

Quote

%HOMEPATH%\Application Data\

Quote

%USERPROFILE%\Application Data\


Which one shall i use. I'm adding files and settings to both all users folders and default users folder for different stuff. So it's certain that i'll at least use two of these.

Besides, will i have to use quotation marks for a command like

Quote

CD "%USERPROFILE%\Application Data\"
attrib -R *.* /S /D


One more thing, should i use *.* for filtering or only * will be enough?

Sorry, i am asking to many questions but it'ld be a pain to wait till the end of an installation just to try these commands to see if they're right even though i'm installing to a virtual machine. And none of the windows releases has had such files for me to take as samples or i couldn't see any in the forum either. :(

This post has been edited by nomadturk: 31 January 2008 - 08:06 AM


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