Jump to content

Recommended Posts

Posted

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. :(


Posted

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.)

Posted (edited)
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.)

Edited by nomadturk
Posted

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.

Posted
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

C:\Documents and Settings\NoXP\Application Data

to

\$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?

Posted (edited)
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)

Edited by Kelsenellenelvian
Posted (edited)

Hmm, then i'll do it your way.

But the question is how will i address the folder?

Will i use something like

cd %ALLUSERSPROFILE%\

attrib -R *.* /S /D

%ALLUSERSPROFILE%\Application Data\
%APPDATA%\
%HOMEPATH%\Application Data\
%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

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. :(

Edited by nomadturk

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...