cmdlines.txt + .reg files - installed into OEm folder..New to this,need help..

Discussion in 'Windows 7' started by tnx, Feb 9, 2011.

  1. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    @searchengine...

    I have just installed W7x64 with your edited $OEM$ folder....
    Firstly I love all the Dell stuff in there. I now have to remind my self I dont actually own a Dell but Abit is at the heart of my setup...LOL...

    Then........

    WOW !!!!!

    Exactly what i was looking for those two reg tweaks work like a dream....I can not thank you enough for all your help.

    But....Just a very small but....

    This makes me now think about other reg tweaks. In Trinket post #45 there are quite a few to look at.
    If i were to add these or similar tweaks all I would have to do is make .reg file and add it to the sources\$oem$\$$\Setup\scripts folder and add a script to the OOBE.cmd.
    This in theory would work would it not.

    Dont worry mate,not gunna ask for owt else on this matter now...


    Well this is a forum at it's best. Somebody ,ME has no idea of how to achive something but lots of folk comes to the rescue and now I walk away knowing more than I did....I love MDL !!! :wub:

    I would like to thank all of you for helping out with this problem :biggrin:

    Cheers..
     
  2. searchengine

    searchengine Guest

    @tnx...

    LOL :D:D:D...I made Dell as the folder u uploaded had Dell stuff (I thought it was for Dell) :biggrin:, but at least you will see how you can custom the install.

    Reg tweaks ...yeah just add additional .reg files to the OOBE.cmd (and put the .reg file in the scripts folder, like the others), or instead of having a bundle of reg files, just put all your tweaks on one file

    remember thou, HKCU reg tweaks need to be done from runonce
     
  3. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Hi all...

    Well I can't leave it alone.Sorry.But summet is bothering me about the runonce.cmd.

    What I mean is there are a couple more tweaks I wish to add,one of them is
    I do understand that
    can not be run via the oobe.cmd and must be a runonce.cmd.

    Now what i do know what to do is for this tweak make :-
    .vbs
    .cmd
    .reg
    I know how to add these into $OEM$\$$ so they will be in C:\Windows after the install.
    What I don't know is where to put a runonce.cmd and what the script should be to call the .reg file. :confused:

    I have been reading all the posts in this thread and I can't pin this down.
    I just know once I have this I will be set to alter any registry value i wish. Well that's what I'm hoping anyhow.

    So please for one last time can somebody spoon feed me this info..:biggrin:

    Cheers..
     
  4. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    #64 woebetide, Feb 19, 2011
    Last edited by a moderator: Apr 20, 2017
    @tnx
    runonce is an exe and part of windows (look in /windows/system32)

    @searchengine
    isn't it easier to create a let's call it tweaks.reg, and start it from the oobe.cmd and another reg file with all the HKCU tweaks and do a runonce?

    A tweaks.reg like this:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power]
    "HibernateEnable"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
    "EnableLUA"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
    "UacDisableNotify"=dword:00000001
    
    ;Add "My Computer" to the Desktop by default for all users
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
    "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
    
     
  5. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Now this is something else I did not know. "runonce" just sits in System32. I did look and yes there it is.
    I thought runonce was just a sort of script.It is an actual .exe.
    can you explain how this works then and what script do I have to write to call it and how do I link it to run .reg files.

    can the oobe.cmd call the runonce.exe

    Thanks for this info.
     
  6. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    #67 woebetide, Feb 19, 2011
    Last edited: Feb 19, 2011
    Check post #32 from searchengine.

    Ok tested in vm, the runonce with all the HKCU reg works!!! (just 1 reg file with all the tweaks)
    But not for the tweaks reg (with the HKLM keys),just the first is executed!

    Will try to put ALL tweaks in 1 reg and do a runonce!
     
  7. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Right....I have read those posts again. making more sence now.

    @searchengine....Thanks for that link,I have logged into my subscriptions so I can easily get to it.

    @woebetide...Thanks

    Cheers guys
     
  8. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    Oooopq, with the HKLM, forgot putting the cmdo_O

    But everything works with only 1 reg file with runonce!

    @searchengine
    Thanks!
     
  9. woebetide

    woebetide MDL Member

    May 28, 2007
    240
    78
    10
    #71 woebetide, Feb 19, 2011
    Last edited: Feb 19, 2011
    Yes it will!
    I've made one reg file with approx 30 entries and works like a charm!

    Now will surch for reg entries for powercfg settings and dissabling services:cool:
     
  10. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Sounds good.:cool:


    I have just done a new
    .vbs
    .cmd
    .reg

    The .reg is holding quite a few tweaks which i always do. Some I cant find how to do..
    I have ammended the OOBE.cmd to point to my new .vbs and I have named all these files "Tweaks" just to keep things simple.
    I have also messed with the logo's and wallpapers,seems daft but I have not done this before so I will see what happens. I liked the Dell one on the Start Menu so I made some new ones,very simple pics with just "TN" on....
    Off to test right now...

    Fingers crossed..Will let you know what happens..

    Cheers..

    :bye:
     
  11. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Well what can I say.

    GOT IT.
    GOT IT.
    GOT IT.

    With a LOT of help from all you guys I have now tweaked my install to do,act and look how I want it to.
    This feels good.

    BIG THANKS to ALL of you....:biggrin:

    This is what I have.
    It is not many but it is a start. I could think of half dozen more tweaks I like to do and once I find out how to alter the registry for these I'm sure I will add them to my "Tweaks" list.

    Once again..Thanks...

    :biggrin:
     
  12. searchengine

    searchengine Guest

    #74 searchengine, Feb 20, 2011
    Last edited by a moderator: Apr 20, 2017
    @tnx...
    :D:D:D ...glad to see u r sorted :biggrin:


    @woebetide...
    "powercfg settings" are applied from cmd (not reg tweak) ....
    if you open cmd and type POWERCFG -L existing power schemes will be displayed like below:-

    Existing Power Schemes (* Active)
    -----------------------------------
    Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)
    Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance) *
    Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)

    to apply a power sheme add to .cmd file like this (example to set "High Performance"):-
    Code:
    POWERCFG -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c >NUL
    windows services are under reg key [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services]
    .... if you google Black Viper, and visit website, custom services reg tweak can be obtained.
     
  13. rasputinuk

    rasputinuk MDL Member

    May 21, 2007
    115
    7
    10
    :worthy:Thanks for this, cause I have a lot of little programs, drivers and tweeks I have had to make a seperate DVD to hold them all. But I can see from this discussion I can move some of them to the installation disk And run the drivers disk automaticaly from the runonce command.....Hmmm, I know where to come if I run into problems
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Trinket

    Trinket MDL Senior Member

    Feb 20, 2010
    487
    169
    10
    Maybe make all your findings in one concise post (like add to the bottom of your first post) to make it easy for others to implement if they want. Glad you got it all working now :D
     
  15. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Good idea...

    This leads me into something elase but sort of on the ame lines....

    Dont know wether to start a new thread,maybe a MOD could advise..

    What I would like to try is to have all My Favourites sat waiting for me after a fresh install. These files wont take that much room up on a DVD so it would be worth a go.

    One question I would like to ask is in the OOBE.cmd I have added a line
    Could another line for RunOnce be added under it.
    What I have in mind is a .cmd which would after the install "RunOnce" delete all the folder from "My Favorites"
    Then copy the files from,let say "Favs" into "My Favorites"
    I was thinking if I added $OEM$\$$\Favs this would then install a folder into C:\Windows\Favs at install.
    Then RunOnce could be pointed to a .cmd file also sitting in C:\Windows.
    This .cmd file would then del all files from %USERPROFILE%\Favorites
    Then copy files from C:\Windows\favs into %USERPROFILE%\Favorites

    I am just at the first stage of this learning the script to copy files from one folder to another...
    I have this script and it's working quite well
    There is a folder on my Desktop with three files in. Two .txt and one .gif files. The .cmd makes the new folder "2" and copies all the files into there.
    So I think I am on the way to having a better understanding of .cmd now ,thanks to this thread.

    Right now though I'm not sure if more than one RunOnce scripts can be added to the OOBE.cmd ?

    Is this possible ?

    Cheers..
     
  16. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #78 tnx, Feb 20, 2011
    Last edited: Feb 20, 2011
    (OP)
    Well just to bore you, I now have this script and it works a treat.

    Getting there...:)
     
  17. searchengine

    searchengine Guest

    yes multiple "RunOnce" instances can be added to the OOBE.cmd

    ....or, alternatively, add more instructions to the already existing .cmd file, that is already added to OOBE.cmd
     
  18. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60

    Ahhhhhh. Thats good and I never thought to add extra commands to my existing .cmd file. I still have loads to learn..

    Thanks again.