Guest Posted July 30, 2009 Posted July 30, 2009 (edited) [TO]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_s01",0x00000000,"rundll32 advpack.dll,LaunchINFSection nlite.inf,U"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_s02",0x00020000,"nhelper del /q /s """"%10%\SET*.TMP"""""HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_s03",0x00020000,"nhelper delete ""%10%\SET3.TMP"""HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_s04",0x00020000,"nhelper delete ""%17%\INFCACHE.1"""HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_s07",0x00020000,"nhelper delete ""%11%\nhelper.exe"""HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_00",0x00000000,"nhelper net1 accounts /maxpwage:unlimited"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_01",0x00020000,"nhelper rd /q /s """"%SystemRoot%\Help\Tours"""""HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_s05",0x00020000,"nhelper moveex ""%17%\syssbck.dll"" ""%11%\syssetup.dll"""HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","nlite_post_s06",0x00020000,"nhelper moveex ""%17%\syssbck.inf"" ""%17%\syssetup.inf"""HKU,".DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnce","_nltide_3",0x00020000,"rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,C,,4,N"Notice nhelper is deleted before it's supposed to do other things.Edit: Then again maybe not if runonce processes them alphabetically. I'll have to experiment and see. nlite_post_s07 Edited July 30, 2009 by -X-
elance Posted July 30, 2009 Author Posted July 30, 2009 So far the runonce is processing in the exact order that I entered them. I experimented with this order to get them run the way I wanted them to and it is working.
johnhc Posted July 30, 2009 Posted July 30, 2009 elance, -X- is talking about how the sections (eg, [TO]) are executed in an .inf file. I did some experimenting with this one time and it is a function of how the .inf is called. The section to be run is specified in the calling process. RunOnce is just a batch file and will run in order. A comment on your posting nLite.inf. I took both your files, combined them, then compressed them with 7-Zip. The result was a 15 kB file. You can post a .7z file. The last line in the nLite.inf file should be a delete of nhelper by nhelper (suicide). The fact that your nhelper is deleted earlier is a symptom of running more than once. I would expect you to get errors during install concerning missing nhelper.exe. If you are not getting these messages, then the section(s) that should be run (after nhelper was prematurely deleted) are not getting called. Basically you have a mess and it is not possible to determine what is occurring. There are some thing things that can be done running nLite more than once and some that do not work. I suspect no one with the possible exception of nuhi (author/owner) can tell us which is which. We have not seen nuhi here for some time and may not for a while. A minor comment on your Last Session files. You need to remove the Tweak "Explorer-Launch folder windows in a separate process". It exposes a Windows bug. Enjoy, John.
elance Posted July 30, 2009 Author Posted July 30, 2009 John, All I can tell you is the disk I made from those sessions loads and runs fine. I have had no errors. In fact, the system I am typing on right now was loaded from that disk. All my apps are on the machine and I've been using them without any issues.
johnhc Posted July 30, 2009 Posted July 30, 2009 (edited) elance, I understand and it may well continue, but it may well come around and bite you in the ....back. The bottom line is, of course, your are in total control and can do whatever works for you, even if we give you a hard time. Enjoy, John. Edited July 30, 2009 by johnhc
Guest Posted July 30, 2009 Posted July 30, 2009 I'm beginning to have some doubts john. Maybe we have been giving wrong advice. I just ran a test to see if the order mattered in nlite.inf and it does not. It goes alphabetically. I think nLite is smart enough to rename "nhelper delete ""%11%\nhelper.exe" to be the last one. In his case "nlite_post_s07".Also I read this last night in nuhi's faq.I made an ISO, can i add more drivers in second run?Yes, since nLite 1.0 RC4.Maybe it was a problem before but he has since ironed out any quirks that happen when you run it multiple times.I'm off to do some multiple runs with different tweaks and see what happens.
elance Posted July 30, 2009 Author Posted July 30, 2009 Oh, no, I don't feel like you are giving me a hard time, I'm learning from this, which is a good thing.And seeing -X-'s reply there seems to be a chance I may have discovered something (totally by accident) that might be helpful as well...so it's win-win for all.I appreciate the time you guys have taken to help/educate me to this point. It's a rare thing these days, by now I'd usually be told to get lost and receive nothing but sarcasm. You guys have been very professional.
johnhc Posted July 30, 2009 Posted July 30, 2009 As I have stated before, there are some processes that can be rerun and some that can't. Perhaps if nuhi were here, we could understand the right and wrong ones. On the nLite web site, it states that you can remove components in one run and come back and remove more later. I have not tried this and don't think I will take the time to do so. I will continue to advise posters to run nLite only once. I have seen too many problems corrected by this simple change. I continue to learn - mainly why I am here. Enjoy, John.
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