batchfile: Logging and international settings..

Discussion in 'Windows 7' started by tcntad, May 21, 2010.

  1. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    that was just a rough guide they were making a winpe boot disk thats what i said forget the file paths e.c.t and also winpe has only 1 image in it. not like boot.wim.
     
  2. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    ah just rough brief..

    well i now mounted and processed both indexes of boot.wim, and soon to try it.
     
  3. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    #43 tcntad, May 24, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    mounted and did the changes good, dismounted and created iso worked fine.

    But still have to choose keyboard and format when setup starts..

    heres the code
    Code:
    Echo Enter locales
    Echo (For setup only)
    Set /p bootintl=
    
    Echo.
    Echo Enter timezone
    Echo (timezonelist in Logsfolder)
    Set /p zone=
    
    "%WAIK%\Tools\%arch%\Servicing\dism.exe" /Mount-Wim /WimFile:"%work%\dvd\Sources\boot.wim" /index:1 /MountDir:"%work%\mount"
    "%WAIK%\Tools\%arch%\Servicing\dism.exe" /image:"%work%\mount" /Set-SysLocale:"%bootintl%"
    "%WAIK%\Tools\%arch%\Servicing\dism.exe" /image:"%work%\mount" /Set-UserLocale:"%bootintl%"
    "%WAIK%\Tools\%arch%\Servicing\dism.exe" /image:"%work%\mount" /Set-InputLocale:"%bootintl%"
    "%WAIK%\Tools\%arch%\Servicing\dism.exe" /image:"%work%\mount" /Set-TimeZone:"%zone%"
    "%WAIK%\Tools\%arch%\Servicing\dism.exe" /Unmount-Wim /MountDir:"%work%\mount" /commit
    
    Looks exactly the same for boot.wim #2

    Edit: added syslocale..
     
  4. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    What about Set-SysLocale ? don't see it also are you doing images in install.wim
     
  5. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    The syslocale is there, just missed it :p

    Ofcourse.. ive to use "set-uilang" on install.wim right?
     
  6. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    Sorry to bug you urie :p

    I updated the code above..
    Does it look better now? and also the set-uilang has to be set for install.wim right?
     
  7. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    Not getting better i think..

    Edited #1 & #2 of boot.wim and did exact same changes to install.wim but nope.
    Now im trying a script i found over at msfn.. doubt it'll work though.

    Also found the mui tutorial here at MDL (again) but it didnt make sense to me..
     
  8. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Maybe you should start from the beginning... it really isn't that difficult.
    Seems to me you have no in-depth knowledge in MUI operations, but on the other side you seem to start with the more advanced stuff.
    Just follow the MUI tutorial (Step by Step) on the MS MUI Knowledge Center... eventually you might get a hang of things
     
  9. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    Hehe, no i have no real deep knowledge bout this but im trying to learn..
    Ok ill try read that tutorial at MS knowledgecenter, altho it feels like ive tried everything hehe.
     
  10. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Like a said, i do not think you can bypass the Language/Regional screen during setup... at least i couldn't :)
     
  11. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    That really sucks though if its not possible..
    I should be able to, to make setup easier by using inputlocale commands etc but allright, ill look around more tomorrow when i can.
     
  12. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    #54 FreeStyler, May 25, 2010
    Last edited: May 25, 2010
    You can set all these settings, you just have to do this in every index of install.wim, the Language/Regional screen during setup is still shown but the installed WIM file will have Language/Regional settings applied with DISM
    This overrides the choice made during setup... hardly worth all the hassle in my opinion as same result can be achieved by using unattended.xml
     
  13. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    If i dont misremember, during setup you dont make any changes like this, only sets timezone (after setup is done, before login)

    Well sure i can use the commands in unattended instead but that means an extra file on a lets say burned iso (to dvd) which cant be changed anyway after iso been burned..
    I just want to try minimize of extra stuff on the dvd and minimize setuptime in any way i can :p
     
  14. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
  15. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    what are you talking about there is no way you can change the settings without mounting the wim files. Ireally don't know now what you are doing one minute you want to set language and timzone ec.t. into wim image then you are saying user sets it up for the windows part.
     
  16. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Agreed, I have lost his goal somewhere in the last 4 pages as well :D
     
  17. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,487
    150
    Urie: as mentioned, i try to get rid of the regional settings window at the setup (the pic i linked you to), thats been the goal all the time..

    Freestyle: there are only 2 pages.........