nomadturk Posted January 31, 2008 Posted January 31, 2008 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.
nomadturk Posted January 31, 2008 Author Posted January 31, 2008 (edited) http://www.ss64.com/nt/attrib.htmlI do that already. I'm using CMD> attrib -R *.* /S /DBut it won't work since the files are marked as read-only whilst being copied to the HDD. Edited January 31, 2008 by nomadturk
Kelsenellenelvian Posted January 31, 2008 Posted January 31, 2008 CMD> attrib -R *.* /S /DWhen 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.)
nomadturk Posted January 31, 2008 Author Posted January 31, 2008 (edited) CMD> attrib -R *.* /S /DWhen 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 lineattrib -R *.* /S /DOr... 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 January 31, 2008 by nomadturk
Yzöwl Posted January 31, 2008 Posted January 31, 2008 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.
nomadturk Posted January 31, 2008 Author Posted January 31, 2008 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 Datato\$OEM$\$DOCS\All Users\Application DataThese are copied via OEM folder structure, like i said before.I assume i should add Xcopy command to the cmdlines.txt, right?
Kelsenellenelvian Posted January 31, 2008 Posted January 31, 2008 (edited) CMD> attrib -R *.* /S /DWhen 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 lineattrib -R *.* /S /DOr... 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 January 31, 2008 by Kelsenellenelvian
nomadturk Posted January 31, 2008 Author Posted January 31, 2008 (edited) Hmm, then i'll do it your way.But the question is how will i address the folder?Will i use something likecd %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 /DOne 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 January 31, 2008 by nomadturk
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now