v000 Posted January 24, 2010 Posted January 24, 2010 Details:System.IO.IOException was unhandled Message="The file '.\\xxxxxxxx\\yyyyyyy\\Shellstyle.dll' already exists." Source="mscorlib" StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) at System.IO.FileInfo.CopyTo(String destFileName, Boolean overwrite) at System.IO.FileInfo.CopyTo(String destFileName) at ..(String , String ) at ..(String , String ) at ..(FileInfo , String ) at ..(String , String , Boolean ) at ..(DirectoryInfo , String , String , String , Boolean ) at ..(DirectoryInfo , String , String , String , Boolean ) at ..() at ..$() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:More details:.\bin\nLite\nlite.exe /preset:%%presets%%\%1 /path:.\xxxxxxxx\yyyyyyynLite crashes after extracting drivertmp and sp3tmp, this time it was on theme integration. Doing attrib -R .\xxxxxxxx\yyyyyyy\*.* /S /D does not help - when started manually, everything is OK.
johnhc Posted January 24, 2010 Posted January 24, 2010 v000, I tried to get a feel for running nLite from a command prompt (see here) and got no response. I suspect very few run nLite this way. It looks like you are running nLite in a script. What is the %1 for in your Preset path? The bad news is that nuhi (author/owner) is on hiatus from nLite and he may be the only one who can comment. Have you tried it in a command prompt? Good luck, John.
v000 Posted January 24, 2010 Author Posted January 24, 2010 Thank you, John. You are correct, I'm using Windows NT Command Script files to streamline ISO creation. %1 is just a profile name - M50SA in my case (notebook model name). I sent nuhi PM as soon as I created the topic; too bad he lost interest... Well, in any case I can share with you my setup so more people can use nLite this way (hence more will complain).I've written several scripts: - for 7-Zip to extract the original ISO into the working directory and extract ZIP files (such as M50SA.zip that contains PnP/TextMode drivers and favorite themes for integration): .\bin\7z\7z.exe x -y -o"%2" "%1" - for nLite to process the directory based on the predefined profile: .\bin\nLite\nlite.exe /preset:%%presets%%\%1 /path:.\release\oemdisc - for mkisofs to create ISO image for CD: .\bin\nLite\mkisofs.exe -iso-level 4 -l -d -D -r -J -joliet-long -allow-multidot -no-emul-boot -boot-load-size 4 -hide bootsec.img -hide boot.catalog -V %1 -b $OEM$/$BOOT$/bootsec.img -o .\release\%1.iso .\release\oemdisc - for calling other scripts to prepare the working directory, unzip required and optional packages, and cleanupI'm using PowerISO for burning (not automated yet). Another thing that can be improved is creating either CD or DVD ISO based on the folder size.The reason I'm doing all this is that I'm experimenting with different nLite settings - I had to, actually, since I figured out nLite 1.4.9.1 can damage Windows installation. For instance, any tweaks in the Start Menu sooner or later result in the context menu not showing up for My Computer (sooner if you ticked off disable Drag & Drop). Same for Control Panel inside My Computer if you tweaked Explorer (won't go away no matter what). And lots of other little things.
johnhc Posted January 24, 2010 Posted January 24, 2010 v000, I don't think we can say - I certainly cannot - that nuhi has lost interest. Based on some of the "where's nuhi" threads, I would infer that he is very busy and has no time to give to nLite right now. Whether he will ever come back is unknown.I am not aware of the problems you refer to at the end of your last post. When strange things happen, my most suspect action is running nLite more than once against the same source folder. If you have specific problems/questions, please post them for us to look into the possible causes. From your response to my referenced thread, I assume command line running of nLite works OK, just trying to invoke it via your script is giving troubles. Since I got no response to my thread, I did a little of what I wanted to do using AutoIt and am happy with my process. Enjoy, John.
Martin H Posted January 26, 2010 Posted January 26, 2010 Sorry cannot help, but just wanted to add that when i used nLite then i had to call nLite twice in the NT command script, as nLite would close down alittle after it was started, and only after it's second call it would retain open throughout the process. I also reported it in the stickied nLite-release thread, but as you know, nuhi isn't developing nLite "at the momment/anymore".As for writing the ISO to disc, then i would strongly recommend ImgBurn, which besides featuring a nice command-line interface(to call from script), then also is one he** of a good writing app, with many nice options/features not found in any other comparabel program...
v000 Posted January 26, 2010 Author Posted January 26, 2010 Hmm... As for "call nLite twice in the NT command script" - just tried that to be sure - after restart (it crashes on "Integrating hotfixes, service packs and themes"), nLite detects an unfinished operation. "Don't reuse broken installations." and all that.Thank you for the tip on ImgBurn.
Martin H Posted January 27, 2010 Posted January 27, 2010 Yeah, your situation dosen't seem comparabel to mine...When nLite was called first, then it started and a couple of seconds later it closed without any errors, so i then called it twice in the script and then everything worked without prompts, since it haden't changed anything during it's initial run... When running it attended, then that issue weren't there...Sorry that i cannot help you here... It's obviously a nLite command-line interface bug in both our cases...
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