เข้าสู่ระบบ  |  สมัครสมาชิก

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ Mr.KKD

สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2



  ใครยังไม่ได้อ่านSeasonแรกก็กลับไปอ่าน แล้วก็สร้างWinPEของตัวเองก่อนนะครับ เดี๋ยวคุยกันไม่รู้เรื่อง



  ก่อนที่จะไปเรื่องปวดหัวๆ เรามาทำความรู้จักกับ.Wim กับเครื่องมือที่ใช้จัดการมันก่อนดีกว่าครับ

  Windows Imaging File Format (WIM) คือไฟล์ที่ถูกบีบอัดไว้ชนิดหนึ่ง ที่ถูกนำมาใช้โดยไมโครซอฟต์ครับ
ซึ่งข้อดีของการเก็บไฟล์แบบWIMนี้ คือการจัดเก็บไฟล์นั้นทำได้เล็กมากครับ ซึ่งตัวอย่างก็คือไฟล์ติดตั้งWindowsนั่นเอง



  ไฟล์Install.wim ที่อยู่ในแผ่นSetupของWindows7 ในไฟล์นี้จะมีWindowsอยู่ทั้งหมด 5เวอร์ชั่น เวอร์ชั่นละประมาณ7.5GB
แต่เมื่อจัดเก็บอยู่ในรูปแบบWimไฟล์แล้วนั้น จะใช้พื้นที่เพียง2Gbเท่านั้นครับ



   สำหรับการจัดการไฟล์.Wimนั้นจะมีอยู่2โปรแกรมครับ คือโปรแกรมImageXที่ไมโครซอฟต์นำมาใช้ในยุคแรก
และโปรแกรมDismซึ่งมีอยู่ในWindows7ขึ้นไปอยู่แล้ว ปัจจุบันนั้นจะนิยมใช้โปรแกรมDismมากกว่า เพราะสามารถจัดการ
ไฟล์Wimได้มากกว่า แต่ข้อเสียของทั้ง2โปรแกรมก็คือ การใช้งานนั้นจะอยู่ในรูปแบบCommand-Lineล้วนๆครับ
จึงทำให้การใช้งานค่อนข้างยากสำหรับผู้ที่เริ่มต้น ดังนั้นจึงได้มีคนทำGUIขึ้นมาครอบ ให้สามารถใช้งานได้ง่ายๆ
ซึ่งImageXก็คือโปรแกรมGimageX และDismก็คือ   NT6x Setup Utility ของท่านอาจารย์ตุลย์แห่งเว็บGGGของเรานี่แหละครับ




คำศัพท์เบื้องต้นเกี่ยวกับ Wimfile

Capture : คือการเก็บโฟลเดอร์ใดๆให้เป็นWIM file โดยจะอยู่ในลำดับ(Index) ที่1เสมอ
Append : คือการเพิ่มโฟลเดอร์ใดๆเข้าไปในWim fileที่มีอยู่ โดยเรียงเป็นลำดับ(Index) ที่2
Apply : การส่งออกไฟล์จากWimไปยังโฟลเดอร์ที่ต้องการ โดยการระบุIndexที่ต้องการ
ImageInfo : ดูรายละเอียดของWim File
Export : ส่งออกไฟล์จากWim fileนึง ไปยังอีกWim fileนึง โดยระบุIndexที่ต้องการ
Mount : การทำให้Wim fileปรากฏเป็นโฟลเดอร์ เพื่อแก้ไขรายละเอียดต่างๆของไฟล์
Unmount : การยกเลิกการMount โดยจะบันทึกหรือยกเลิกการเปลี่ยนแปลงที่ทำกับWim fileก็ได้




  สำหรับกระทู้นี้จะใช้โปรแกรม NT6x Setup Utility ของท่านอาจารย์ตุลเป็นหลักนะครับ
ดาวโหลดได้จากกระทู้นี้ครับ http://www.gggcomputer.com/index.php?topic=15574.0





« แก้ไขครั้งสุดท้าย: 03 พ.ย. 14, 01.21 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #1 เมื่อ: 13 ต.ค. 14, 21.05 »
     A - การMount Wimfile เพื่อปรับแต่ง



  - เข้าไปที่ C:\Win81SE\ISO\WIM\sources จะเจอไฟล์Boot.wim ให้ท่านก๊อปออกมาวางไว้ที่ไดร์ฟC
หรือตรงไหนก็ได้ที่ท่านจะทำงานง่ายๆ

  - สร้างโฟลเดอร์ขึ้นมา1โฟลเดอร์ชื่ออะไรก็ได้ เช่นMount ซึ่งที่อยู่ก็จะเป็น C:\Mount

  - เปิดโปรแกรม NT6x11.57.08.17.exe ขึ้นมา แล้วทำตามรูปเลยครับ




































===========================================================
หรือจะเปิด CMDขึ้นมาแล้วพิมพ์คำสั่งนี้ลงไป มีผลเหมือนกันครับ (Windows7ขึ้นไป)
โค๊ด: [Select]
Dism /mount-wim /wimfile:c:\boot.wim /index:1 /mountdir:c:\mount===========================================================


« แก้ไขครั้งสุดท้าย: 26 ต.ค. 14, 00.14 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #2 เมื่อ: 14 ต.ค. 14, 02.45 »
    B - การตั้งค่าTimezone และ Locale

  เนื่องจากในขั้นตอนการสร้างWinPEนั้น โปรแกรมWinbuilderได้มีสคริปต์สำหรับนำเข้าการตั้งค่าเหล่านี้
จากเครื่องที่ใช้สร้างWinPEอยู่แล้ว แต่อย่างไรก็ตามหากคุณไม่แน่ใจ หรือค่าที่ตั้งไม่เป็นตามตัวอย่าง
ก็สามารถตั้งค่าใหม่ได้เช่นกัน โดยเราจะใช้ความสามารถจาก Dism ที่มีอยู่ในWindowsอยู่แล้วครับ




  คำสังสำหรับดูค่าเริ่มต้น ให้เปิดCMDขึ้นมา พิมพ์คำสั่งนี้ลงไปแล้วกดEnter
โค๊ด: [Select]
Dism /Image:C:\Mount /Get-INTL(C:\Mountคือโฟลเดอร์ที่เราMount Imageไว้)

  - System Locale ต้องเป็น th-TH
หากไม่เป็นth-TH ให้พิมพ์คำสั่งนี้ต่อในCMD แล้วกดEnter
โค๊ด: [Select]
DISM /Image:C:\Mount /Set-SysLocale:th-TH
  - Default Time Zone : SE Asia Standard Time
หากไม่เป็นSE Asia Standard Time ให้พิมพ์คำสั่งนี้ต่อในCMD แล้วกดEnter
โค๊ด: [Select]
DISM /Image:C:\Mount /Set-TimeZone:"SE Asia Standard Time"
  - User Local for Default user : th-TH
หากไม่เป็นth-THให้พิมพ์คำสั่งนี้ต่อในCMD แล้วกดEnter
โค๊ด: [Select]
DISM /Image:C:\Mount /Set-UserLocale:th-TH


« แก้ไขครั้งสุดท้าย: 26 ต.ค. 14, 00.15 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #3 เมื่อ: 14 ต.ค. 14, 03.13 »
    C - การเพิ่มไดรเวอร์ลงไปในWinPE

     สำหรับการเพิ่มไดรเวอร์นั้นให้ท่านพิจารณาตามความเหมาะสม โดยส่วนตัวนั้นผมจะเพิ่มแค่ไดรเวอร์LanและUSB3
แต่ทั้งนี้ทั้งนั้นควรคำนึงถึงขนาดของไฟล์Boot.wimด้วยนะครับ หากมันใหญ่เกินไปก็จะทำให้บูตช้านั่นเอง

     บางท่านอาจจะสงสัยว่าต้องไปเอาไดรเวอร์มาจากไหนถึงจะครบ คำตอบก็คือโปรแกรมWanDrv
ที่เราใช้ลงไดรเวอร์ให้กับงานโกสออโต้ไดรเวอร์นั่นแหละครับ แต่ที่น่าจะเสียดายคือเวอร์ชั่นล่าสุดที่ออกมา
ทางผู้พัฒนาได้เข้ารหัสไฟล์ไดรเวอร์ไว้ ดังนั้นเราจึงจะไปเอาไดรเวอร์จากเวอร์ชั่น6.0.2014.0322แทนครับ
และเนื่องจากในบทความนี้เป็นWin8PE 64Bit ดังนั้นเราจะใช้ชุดออโต้ไดรเวอร์ของWindows8 64Bitนะครับ



  -  อันดับแรกให้สร้างโฟลเดอร์เปล่าๆขึ้นมาโฟลเดอร์นึงก่อนครับ ตั้งชื่ออะไรและเอาไว้ที่ไหนก็ได้ตามสะดวกครับ
โดยผมจะตั้งชื่อว่า Drivers แและเอาวางไว้ที่ไดร์ฟC:\ ซึ่งแพทช์ของมันก็จะเป็น C:\Driversครับ




  -  ก๊อปไฟล์ Other.USB.7z จาก[Win8.x64]Drivers\Chipset\[Chipset]Drivers
และก๊อปไฟล์ที่ขึ้นต้นด้วยLanทั้งหมดจาก [Win8.x64]Drivers\Network\[Network]Drivers เอาไปวางไว้ใน C:\Drivers





  -  แล้วก็แตกไฟล์ทั้งหมดออกไว้ในโฟลเดอร์นี้ครับ

  



  -  จากนั้นให้พิมพ์คำสั่งนี้ลงไปในCMD แล้วกดEnter โดยโปรแกรมจะค้นหาและเพิ่มไดรเวอร์ให้เองครับ
โค๊ด: [Select]
DISM /Image:C:\Mount /Add-driver /Driver:C:\Drivers /Recurse /ForceUnsigned




  -  รอจนขึ้นว่า The operation completed successfully. ก็เป็นอันว่าเสร็จสิ้นขั้นตอนการเพิ่มไดรเวอร์ครับ


 
« แก้ไขครั้งสุดท้าย: 26 ต.ค. 14, 00.15 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #4 เมื่อ: 14 ต.ค. 14, 04.07 »
   D - การจัดเก็บการเปลี่ยนแปลงWim Fileที่Mountไว้

     สำหรับท่านที่ทำมาถึงตอนนี้แล้วให้ท่านUnmount(จัดเก็บการเปลี่ยน) Wimfileที่เราได้Mountไว้ก่อน
เพื่อที่จะได้ทดสอบการตั้งค่าที่เราได้ทำลงไป และผมจะบูตเข้าWin8PEเพื่อจะได้อธิบายทีเดียวไปเลย
ถึงการแก้ไขค่าต่างๆในWinPE รวมถึงการเพิ่มภาษาไทยเข้าไปด้วย ซึ่งจะกล่าวถึงในหัวข้อต่อไปครับ















(กรณีที่Mountไว้หลายอัน เลือกให้ถูกด้วยนะครับ)







(ข้อควรระวังก่อนกดOK : ห้ามเปิดโฟลเดอร์ใดๆที่อยู่ภายใต้C:\Mountค้างไว้เด็ดขาด ไม่งั้นจะเออเร่อ)





===========================================================
หรือจะเปิด CMDขึ้นมาแล้วพิมพ์คำสั่งนี้ลงไป มีผลเหมือนกันครับ (Windows7ขึ้นไป)
โค๊ด: [Select]
Dism /Unmount-Wim /MountDir:C:\Mount /Commit===========================================================





  เสร็จสิ้นขั้นตอนการUnmountและจัดเก็บการเปลี่ยนแปลงครับ ทีนี้ให้ลองนำไปบูตดูครับ







...ขนาดของไฟล์Boot.wim ก่อนและหลังการเพิ่มไดรเวอร์เข้าไปครับ




« แก้ไขครั้งสุดท้าย: 26 ต.ค. 14, 00.15 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Nunfather™

  • ผู้ดูแลเว็บบอร์ด
  • กระทู้: 3719
  • ขอบคุณ: 35 ครั้ง
  • เพศ: ชาย
  • ...ชีวิตมีวันสิ้น คนไม่มีวันพอ...
    • ดูรายละเอียด
    • อีเมล์
Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #5 เมื่อ: 16 ต.ค. 14, 10.04 »
อ้างถึง
   คำเตือน: กระทู้นี้ถูกล็อกไว้!
เฉพาะผู้ดูแลเท่านั้นที่ตอบได้

รู้ทั้งรู้แต่ก็ยังอยากให้กำลังใจพร้อมทั้งขอบคุณในการเขียนบทความทั้งสองบทความนี้ครับ
สิ่งที่ชอบและถูกใจมากคือ มีทั้ง GUI และ Command line เพื่อให้ผู้ที่ศึกษาได้ศึกษาอย่างละเอียด

และอีกอย่างคือถ้าจบบทความทั้งสองนี้แล้วว่าจะขออนุญาตรวบรวมเป็นไฟล์ PDF จะได้ไหมครับ
ผมเห็นแล้วรู้สึกมีคุณค่ามากๆครับ  065
ธมฺมจารี สุขํ เสติ
ผู้ประพฤติธรรมย่อมอยู่เป็นสุข
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #6 เมื่อ: 16 ต.ค. 14, 11.20 »
อ้างถึง
   คำเตือน: กระทู้นี้ถูกล็อกไว้!
เฉพาะผู้ดูแลเท่านั้นที่ตอบได้

รู้ทั้งรู้แต่ก็ยังอยากให้กำลังใจพร้อมทั้งขอบคุณในการเขียนบทความทั้งสองบทความนี้ครับ
สิ่งที่ชอบและถูกใจมากคือ มีทั้ง GUI และ Command line เพื่อให้ผู้ที่ศึกษาได้ศึกษาอย่างละเอียด

และอีกอย่างคือถ้าจบบทความทั้งสองนี้แล้วว่าจะขออนุญาตรวบรวมเป็นไฟล์ PDF จะได้ไหมครับ
ผมเห็นแล้วรู้สึกมีคุณค่ามากๆครับ  065


  ไม่เป็นไรหรอกครับครูเอก ที่ผมเอามาเขียนก็เอามาจากท่านอาจารย์ตุลย์ทั้งนั้นแหละ
ผมแค่เอามาขยายความ ให้เราเข้าใจง่ายๆแค่นั้นเองครับ ขาดตกบกพร่องตรงไหนก้รบกวนแนะนำด้วยนะครับ  075



•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #7 เมื่อ: 24 ต.ค. 14, 23.58 »
    
   E - ทำความรู้จักกับ Win8.1SE.cfg


     บางท่านอาจจะสงสัยว่าทำไมยังอ่านภาษาไทยไม่ได้..เดี๋ยวค่อยมาดูในขั้นตอนต่อไปครับ
 เพราะมันเกี่ยวข้องกับRegistry ดังนั้นผมจึงจะให้ลองบูตเข้าWinPEที่เราสร้างขึ้นมาก่อน
 เพื่อดูความสัมพันธ์และการตั้งค่าต่างๆที่เราต้องรู้ แล้วหนึ่งในนั้นคือการเพิ่มค่าregistryด้วยนั่นเอง


  

    การตั้งค่าที่เราสามารถแก้ไขได้ของWinPEเกือบทั้งหมดจะอยู่ในไฟล์นี้ครับ system32\Win8.1SE.cfg
ซึ่งไฟล์นี้จะเป็นไฟล์ที่กำหนดค่าต่างๆ เช่นการตั้งค่าRegistry โปรแกรมต่างๆที่จะเปิดตอนบูตเข้าWinPE เป็นต้น

โค๊ด: [Select]
[main]
wpeinit=normal
screen=1024x768

[shortcut]
..\..\TaskbarTmp|iexplore|%SystemDrive%\Program Files\Internet Explorer\iexplore.exe||
..\..\TaskbarTmp|StartScreen|%SystemDrive%\Program Files\StartIsBack\StartScreen.exe||
..\..\TaskbarTmp|explorer|%systemroot%\explorer.exe||
Computer Management\Drivers|Renew USB3|%SystemRoot%\system32\RenewUSB3.cmd|%SystemRoot%\system32\shell32.dll,-27|
Accessories|Sound Recorder|%SystemRoot%\system32\SoundRecorder.exe||
Supplementary\Office|xCHM|X:\Program Files\xCHM\xCHM.exe||
Supplementary\Graphics|MultiRes|X:\Program Files\MultiRes\MultiRes.exe||
File Tasks|Explorer++|X:\Program Files\Explorer++\Explorer++.exe||
Portable|PStart|X:\Program Files\PStart.exe||
Desktop|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||
File Tasks\File Unlock\Unlocker|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||
Desktop|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||
.|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||
AntiVirus|Avira Control Center|X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe||
Desktop|Avira Control Center|X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe||
Desktop|Acronis True Image Home|X:\Program Files\Acronis\TrueImage\TrueImage_starter.exe||
Acronis|Acronis True Image Home|X:\Program Files\Acronis\TrueImage\TrueImage_starter.exe||
File Tasks\Compression|7-Zip File Manager|X:\Program Files\7-Zip_x64\7zfm.exe||
System Tools|ImDisk Virtual Drive Management|%SystemRoot%\System32\imdisk.cpl|%SystemRoot%\System32\imdisk.cpl,-1|
Network\Remote Desktop|Remote Desktop|%SystemRoot%\system32\mstsc.exe||
Network|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Desktop|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Accessories|Notepad2|%SystemRoot%\system32\Notepad.exe||
Accessories|WordPad|%ProgramFiles%\Windows NT\Accessories\wordpad.exe||
Computer Management\Drivers|PnpUtil Net|%SystemRoot%\system32\cmd.exe|%SystemRoot%\system32\hdwwiz.exe|/c pnputil.exe -i -a %SystemRoot%\inf\net*.inf
Computer Management\Drivers|PnpUtil All|%SystemRoot%\system32\cmd.exe|%SystemRoot%\system32\hdwwiz.exe|/c pnputil.exe -i -a %SystemRoot%\inf\*.inf
Computer Management|Shared Folders|%SystemRoot%\system32\fsmgmt.msc|%SystemRoot%\System32\shrpubw.exe|
Computer Management|System Properties|%SystemRoot%\system32\sysdm.cpl|%SystemRoot%\System32\control.exe|
Computer Management|Regional and Language Options|%SystemRoot%\system32\intl.cpl|%SystemRoot%\system32\intl.cpl,-200|
Computer Management|Mouse|%SystemRoot%\system32\main.cpl|%SystemRoot%\system32\main.cpl,-100|
Computer Management|Internet Options|%SystemRoot%\system32\inetcpl.cpl|%SystemRoot%\system32\inetcpl.cpl,-1301|
Computer Management|Hardware Wizard|%SystemRoot%\system32\hdwwiz.exe||
Computer Management|Date and Time|%SystemRoot%\system32\timedate.cpl|%SystemRoot%\system32\control.exe|
Computer Management|Device Manager|%SystemRoot%\system32\mmc.exe|%SystemRoot%\system32\devmgr.dll,4|/b %SystemRoot%\System32\devmgmt.msc
Computer Management|Computer Management|%SystemRoot%\system32\compmgmt.msc|%SystemRoot%\system32\mycomput.dll|/s
Computer Management\Drivers|Force Install USB (HWPnP)|%SystemRoot%\system32\HwPnp.exe||-all -STORAGE\VOLUME +USB\ +USBSTOR\ /a /u /log /p /d /s /rs
Computer Management\Drivers|Force Install Devices (HWPnP)|%SystemRoot%\system32\HwPnp.exe||+all -storage\removable -storage\volume -USB\ROOT +USB\ /log /p /u /d+ /s /rs
Computer Management\Drivers|Install Devices (HWPnP)|%SystemRoot%\system32\HwPnp.exe||+all /p /d /log
System Tools|MountStorPE -RL|%Systemroot%\SysWOW64\MountStorPe.exe||-rl
System Tools|MountStorPE|%Systemroot%\SysWOW64\MountStorPe.exe||
System Tools|DotNet Version Detector|%SystemRoot%\Microsoft.NET\dotnet.exe||
Accessories|Calculator|%SystemRoot%\system32\calc.exe||
Accessories|Show Desktop|%SystemRoot%\explorer.exe|%SystemRoot%\system32\shell32.dll,34|shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}
.|Explorer|%SystemRoot%\explorer.exe||
Desktop|Explorer|%SystemRoot%\explorer.exe||
Accessories|Command Prompt|%SystemRoot%\system32\cmd.exe||
Desktop|Command Prompt|%SystemRoot%\system32\cmd.exe||
System Tools|System Recovery|x:\sources\recovery\recenv.exe||

[autorun]
nowait|Renew USB3|%SystemRoot%\system32\hiderun.exe /w "%SystemRoot%\system32\RenewUSB3.cmd"
hidewait|audio|%SystemRoot%\system32\regsvr32.exe /s %SystemRoot%\system32\quartz.dll
nowait|MultiRes|X:\Program Files\MultiRes\MultiRes.exe
nowait|Small Border Width|%SystemRoot%\system32\swb.exe 0 0
nowait|Install ImDisk Ramdisk|%SystemRoot%\System32\StartImDIsk.exe 50 % B: RAMDisk "NTFS Compressed" "B:\Temp"
hidewait|msi|%SystemRoot%\SysWow64\regsvr32.exe /s %SystemRoot%\SysWow64\msi.dll
hidewait|msi|%SystemRoot%\system32\regsvr32.exe /s %SystemRoot%\system32\msi.dll
nowait|EnableExplorerCache|%SystemRoot%\System32\EnableExplorerCache.exe

[registry]
"HKLM",0x1,"System\ControlSet001\Services\UnlockerDriver5","ImagePath","\??\X:\Program Files\Unlocker\UnlockerDriver5.sys"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\Unlocker.exe","","X:\Program Files\Unlocker\Unlocker.exe"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","Path","%SystemDrive%\Program Files\GoogleChrome\Application"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","StubPath",""%SystemDrive%\Program Files\GoogleChrome\Application\31.0.1650.63\Installer\chrmstp.exe" --configure-user-settings --verbose-logging --system-level --multi-install --chrome"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe""
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\InstallInfo","ShowIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exee" --show-icons"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\InstallInfo","ReinstallCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --make-default-browser"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\InstallInfo","HideIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --hide-icons"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\Capabilities","ApplicationIcon","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","Path","%SystemDrive%\Program Files\GoogleChrome\Application"
"HKLM",0x1,"Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe"
"HKLM",0x1,"Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","StubPath",""%SystemDrive%\Program Files\GoogleChrome\Application\31.0.1650.63\Installer\chrmstp.exe" --configure-user-settings --verbose-logging --system-level --multi-install --chrome"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe""
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\InstallInfo","ShowIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exee" --show-icons"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\InstallInfo","ReinstallCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --make-default-browser"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\InstallInfo","HideIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --hide-icons"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\Capabilities","ApplicationIcon","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKCU",0x1,"Software\Software\Classes\https\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKCU",0x1,"Software\Software\Classes\https\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKCU",0x1,"Software\Software\Classes\http\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKCU",0x1,"Software\Software\Classes\http\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKCU",0x1,"Software\Software\Classes\ftp\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKCU",0x1,"Software\Software\Classes\ftp\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\ChromeHTML\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\ChromeHTML\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\https\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\https\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\http\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\http\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\ftp\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\ftp\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"System\ControlSet001\Services\Eventlog\System\avgntflt","CategoryMessageFile","%SystemRoot%\SYSTEM32\drivers\avgntflt.sys"
"HKLM",0x1,"System\ControlSet001\services\Eventlog\System\avgntflt","EventMessageFile","%SystemRoot%\SYSTEM32\drivers\avgntflt.sys"
"HKLM",0x1,"System\ControlSet001\services\Eventlog\Application\Avira Antivirus","EventMessageFile","X:\Program Files\Avira\Avira Free Antivirus\avevtrc.dll"
"HKLM",0x1,"System\ControlSet001\services\Eventlog\Application\Avira Antivirus","CategoryMessageFile","X:\Program Files\Avira\Avira Free Antivirus\avevtrc.dll"
"HKLM",0x2,"System\ControlSet001\services\AntiVirService","ImagePath",""X:\Program Files\Avira\Avira Free Antivirus\avguard.exe""
"HKLM",0x2,"System\ControlSet001\services\AntiVirSchedulerService","ImagePath",""X:\Program Files\Avira\Avira Free Antivirus\sched.exe""
"HKLM",0x2,"Software\Classes\CLSID\{45AC2688-0253-4ED8-97DE-B5370FA7D48A}\InProcServer32","","X:\Program Files\Avira\Avira Free Antivirus\shlext64.dll"
"HKLM",0x2,"Software\Classes\CLSID\{305CA226-D286-468e-B848-2B2E8E697B74}\Shell\Open\Command","","X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe"
"HKLM",0x2,"Software\Classes\CLSID\{305CA226-D286-468e-B848-2B2E8E697B74}\DefaultIcon","","X:\Program Files\Avira\Avira Free Antivirus\rcimage.dll,-101"
"HKLM",0x1,"Software\Classes\CLSID\{305CA226-D286-468e-B848-2B2E8E697B74}","System.Software.TasksFileUrl","X:\Program Files\Avira\Avira Free Antivirus\avconfig.xml"
"HKLM",0x1,"Software\Wow6432Node\Avira\AntiVir Desktop","AppDataDirectory","%ALLUSERSPROFILE%\Avira\Avira Free Antivirus\"
"HKLM",0x1,"Software\Wow6432Node\Avira\AntiVir Desktop","Path","X:\Program Files\Avira\Avira Free Antivirus\"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","expat.dll","X:\Program Files\Acronis\TrueImage\expat.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","ulxmlrpcpp.dll","X:\Program Files\Acronis\TrueImage\ulxmlrpcpp.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","mspack.dll","X:\Program Files\Acronis\TrueImage\mspack.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\Winpe","A43","X:\Program Files\Acronis\TrueImage\a43\a43.exe"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","vddapi.dll","X:\Program Files\Acronis\TrueImage\vddapi.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","universal_restore.dll","X:\Program Files\Acronis\TrueImage\universal_restore.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","kb_link.dll","X:\Program Files\Acronis\TrueImage\kb_link.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","auto_reactivate64.bin","X:\Program Files\Acronis\TrueImage\auto_reactivate64.bin"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","auto_reactivate.bin","X:\Program Files\Acronis\TrueImage\auto_reactivate.bin"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","rpc_client.dll","X:\Program Files\Acronis\TrueImage\rpc_client.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","libssl10.dll","X:\Program Files\Acronis\TrueImage\libssl10.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","thread_pool.dll","X:\Program Files\Acronis\TrueImage\thread_pool.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","libcrypto10.dll","X:\Program Files\Acronis\TrueImage\libcrypto10.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","icu38.dll","X:\Program Files\Acronis\TrueImage\icu38.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","resource.dll","X:\Program Files\Acronis\TrueImage\resource.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\Settings","WorkingDir","X:\Program Files\Acronis\TrueImage"

[association]

[shells]

[postconfig]

[PINTOOL]
TaskBar5=%AppData%\Microsoft\Windows\TaskBarTmp\explorer.lnk||||||||
StartMenu0=%AppData%\Microsoft\Windows\TaskBarTmp\explorer.lnk||||||||
TaskBar2=$Start_Menu\Programs\Network\PENetwork.lnk||||||||
TaskBar0=%AppData%\Microsoft\Windows\TaskBarTmp\StartScreen.lnk||||||||
TaskBar3=$Start_Menu\Programs\Network\Opera12.lnk||||||||
StartMenu1=$Start_Menu\Programs\Network\Opera12.lnk||||||||
TaskBar4=%AppData%\Microsoft\Windows\TaskBarTmp\iexplore.lnk||||||||
StartMenu2=%AppData%\Microsoft\Windows\TaskBarTmp\iexplore.lnk||||||||
TaskBar1=$Start_Menu\Programs\Accessories\Command Prompt.lnk||||||||



   นี่คือโค้ดในไฟล์Win8.1SE.cfgครับ เดี๋ยวเราจะมาไล่ดูกันว่าค่าไหนคืออะไร
 โดยผมขอแยกเป็นส่วนๆตามหัวข้อหลักๆในไฟล์Win8.1SE.cfg ดังนี้ครับ


[main]

[shortcut]

[autorun]

[registry]

[PINTOOL]










« แก้ไขครั้งสุดท้าย: 26 ต.ค. 14, 00.19 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #8 เมื่อ: 25 ต.ค. 14, 03.55 »


  E1 - Main


โค๊ด: [Select]
[main]
wpeinit=normal
screen=1024x768


  Screen คือค่าความละเอียดเริ่มต้นของหน้าจอ คุณสามารถแก้เป็นค่าอื่นๆได้ตามต้องการครับ

« แก้ไขครั้งสุดท้าย: 26 ต.ค. 14, 00.23 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #9 เมื่อ: 25 ต.ค. 14, 03.56 »
  E2 - Shortcut


โค๊ด: [Select]
[shortcut]   โค้ดในช่องนี้คือการสร้างชอร์ตคัตไปยังโฟลเดอร์ต่างๆ เช่นDesktop, StartMenu เป็นต้นครับ
โดยแบ่งเป็นโฟลเดอร์หลักๆดังนี้ครับ


TaskbarTmp
 

โค๊ด: [Select]
..\..\TaskbarTmp|iexplore|%SystemDrive%\Program Files\Internet Explorer\iexplore.exe||
..\..\TaskbarTmp|StartScreen|%SystemDrive%\Program Files\StartIsBack\StartScreen.exe||
..\..\TaskbarTmp|explorer|%systemroot%\explorer.exe||

  โค้ดนี้จะเป็นการสร้างชอร์ตคัตไปยัง C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\TaskbarTmp
โดยใช้ ..\.. แทนC:\Users\Administrator\AppData\Roaming\Microsoft\Windows
(โค้ดนี้เป็นคำสั่งพิเศษ ซึ่งจะสร้างชอร์ตคัตเตรียมไว้สำหรับPin to Taskbar)




/////////////////////////////////////////////////////////////////////////////////////////////////////////




Desktop


โค๊ด: [Select]
Desktop|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||
Desktop|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||
Desktop|Avira Control Center|X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe||
Desktop|Acronis True Image Home|X:\Program Files\Acronis\TrueImage\TrueImage_starter.exe||
Desktop|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Desktop|Explorer|%SystemRoot%\explorer.exe||
Desktop|Command Prompt|%SystemRoot%\system32\cmd.exe||

   โค้ดนี้จะเป็นการสร้างชอร์ตคัตไปยังเดสก์ทอป ซึ่งหากท่านต้องการลบชอร์ตคัตใดๆทิ้ง
ก็สามารถลบโค้ดแถวนั้นๆทิ้งได้เลยครับ ส่วนการแก้ไขโค้ดมีหลักการดังนี้ครับ

  ตัวอย่างโค้ดของโปรแกรมGoogleChromeครับ

โค๊ด: [Select]
Desktop|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||
Desktop -> จะต้องเปิดด้วยคำสั่งนี้ก่อนเสมอ เพื่อระบุว่าให้สร้างชอร์ตคัตไปยังเดสก์ทอป (1)
Google Chrome -> ชื่อของชอร์ตคัตที่ต้องการ (2)
%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe ->ที่อยู่ของโปรแกรมที่ต้องการสร้างชอร์ตคัต (3)

  สรุปหลักการเขียนโค้ดจะเป็นแบบนี้ครับ
Desktop(1)|ชื่อชอร์ตคัต(2)|ที่อยู่ของโปรแกรม(3)  โดยใช้|คั่นกลาง และใช้||ปิดท้ายคำสั่งครับ




/////////////////////////////////////////////////////////////////////////////////////////////////////////


StartMenu


โค๊ด: [Select]
.|Explorer|%SystemRoot%\explorer.exe||
.|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||

  ใช้ . แทนโฟลเดอร์Startmenu โดยชอร์ตคัตจะถูกสร้างไว้ที่start menuด้านนอกสุด โดยไม่ได้อยู่ในโฟลเดอร์ใดๆ
(ดูรูปประกอบนะครับ) จะเห็นว่ามีexplorerกับgoogle chrome ตรงนี้ก็คือที่เราคลิกStart > AllProgramsนั่นเองครับ
  



/////////////////////////////////////////////////////////////////////////////////////////////////////////



StartMenu\Folder




โค๊ด: [Select]
Accessories|Sound Recorder|%SystemRoot%\system32\SoundRecorder.exe||
Accessories|Notepad2|%SystemRoot%\system32\Notepad.exe||
Accessories|WordPad|%ProgramFiles%\Windows NT\Accessories\wordpad.exe||
Accessories|Calculator|%SystemRoot%\system32\calc.exe||
Accessories|Show Desktop|%SystemRoot%\explorer.exe|%SystemRoot%\system32\shell32.dll,34|shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}
Accessories|Command Prompt|%SystemRoot%\system32\cmd.exe||

Acronis|Acronis True Image Home|X:\Program Files\Acronis\TrueImage\TrueImage_starter.exe||

AntiVirus|Avira Control Center|X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe||

Computer Management\Drivers|Renew USB3|%SystemRoot%\system32\RenewUSB3.cmd|%SystemRoot%\system32\shell32.dll,-27|
Computer Management\Drivers|PnpUtil Net|%SystemRoot%\system32\cmd.exe|%SystemRoot%\system32\hdwwiz.exe|/c pnputil.exe -i -a %SystemRoot%\inf\net*.inf
Computer Management\Drivers|PnpUtil All|%SystemRoot%\system32\cmd.exe|%SystemRoot%\system32\hdwwiz.exe|/c pnputil.exe -i -a %SystemRoot%\inf\*.inf
Computer Management|Shared Folders|%SystemRoot%\system32\fsmgmt.msc|%SystemRoot%\System32\shrpubw.exe|
Computer Management|System Properties|%SystemRoot%\system32\sysdm.cpl|%SystemRoot%\System32\control.exe|
Computer Management|Regional and Language Options|%SystemRoot%\system32\intl.cpl|%SystemRoot%\system32\intl.cpl,-200|
Computer Management|Mouse|%SystemRoot%\system32\main.cpl|%SystemRoot%\system32\main.cpl,-100|
Computer Management|Internet Options|%SystemRoot%\system32\inetcpl.cpl|%SystemRoot%\system32\inetcpl.cpl,-1301|
Computer Management|Hardware Wizard|%SystemRoot%\system32\hdwwiz.exe||
Computer Management|Date and Time|%SystemRoot%\system32\timedate.cpl|%SystemRoot%\system32\control.exe|
Computer Management|Device Manager|%SystemRoot%\system32\mmc.exe|%SystemRoot%\system32\devmgr.dll,4|/b %SystemRoot%\System32\devmgmt.msc
Computer Management|Computer Management|%SystemRoot%\system32\compmgmt.msc|%SystemRoot%\system32\mycomput.dll|/s
Computer Management\Drivers|Force Install USB (HWPnP)|%SystemRoot%\system32\HwPnp.exe||-all -STORAGE\VOLUME +USB\ +USBSTOR\ /a /u /log /p /d /s /rs
Computer Management\Drivers|Force Install Devices (HWPnP)|%SystemRoot%\system32\HwPnp.exe||+all -storage\removable -storage\volume -USB\ROOT +USB\ /log /p /u /d+ /s /rs
Computer Management\Drivers|Install Devices (HWPnP)|%SystemRoot%\system32\HwPnp.exe||+all /p /d /log

File Tasks|Explorer++|X:\Program Files\Explorer++\Explorer++.exe||
File Tasks\File Unlock\Unlocker|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||
File Tasks\Compression|7-Zip File Manager|X:\Program Files\7-Zip_x64\7zfm.exe||

Network|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Network\Remote Desktop|Remote Desktop|%SystemRoot%\system32\mstsc.exe||

Portable|PStart|X:\Program Files\PStart.exe||

Supplementary\Office|xCHM|X:\Program Files\xCHM\xCHM.exe||
Supplementary\Graphics|MultiRes|X:\Program Files\MultiRes\MultiRes.exe||

System Tools|MountStorPE -RL|%Systemroot%\SysWOW64\MountStorPe.exe||-rl
System Tools|MountStorPE|%Systemroot%\SysWOW64\MountStorPe.exe||
System Tools|DotNet Version Detector|%SystemRoot%\Microsoft.NET\dotnet.exe||
System Tools|System Recovery|x:\sources\recovery\recenv.exe||
System Tools|ImDisk Virtual Drive Management|%SystemRoot%\System32\imdisk.cpl|%SystemRoot%\System32\imdisk.cpl,-1|


  นอกเหนือจากคำเฉพาะ ..\..\  , Desktop , .  ชื่อที่อยู่ด้านหน้าจะหมายถึงการสั่งให้สร้างโฟลเดอร์ในStart menuเสมอ

  จากรูปตัวอย่าง (เลข1)  
โค๊ด: [Select]
Portable|PStart|X:\Program Files\PStart.exe||Portableจะเป็นการสร้างโฟลเดอร์Portable และสร้างชอร์ตคัตPStartไว้ในโฟลเดอร์

  และส่วนที่จะกล่าวถึงคือ(เลข2)ในรูปตัวอย่าง
โค๊ด: [Select]
Network|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Network\Remote Desktop|Remote Desktop|%SystemRoot%\system32\mstsc.exe||
Network|PeNetwork สร้างโฟลเดอร์Networkและสร้างชอร์ตคัตPENetworkไว้ในโฟลเดอร์
Network\Remote Desktop|Remote Desktop ใช้เครื่องหมาย \ เพื่อให้สร้างโฟลเดอร์Remote Desktop อยู่ในโฟลเดอร์Networkอีกที




/////////////////////////////////////////////////////////////////////////////////////////////////////////






================================================================

  สำหรับข้อควรระวังในการเพิ่ม/แก้ไขโค้ดในหมวดShortcutนั้น แพทช์ของโปรแกรมต้องมีอยู่จริง
ถ้าไม่งั้นโปรแกรมจะข้ามโค้ดนั้นไปครับ  เช่น
โค๊ด: [Select]
Desktop|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||โค้ดนี้คือสั่งให้สร้างชอร์ตคัตโปรแกรมUnlocker.exe จากX:\Program Files\Unlocker\Unlocker.exeไปยังเดสก์ทอป
แต่หากโปรแกรมนี้ไม่มีในโฟลเดอร์ตามที่ระบุตอนบูต ชอร์ตคัตก็จะไม่ถูกสร้างครับ

================================================================
« แก้ไขครั้งสุดท้าย: 26 ต.ค. 14, 00.40 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #10 เมื่อ: 25 ต.ค. 14, 13.24 »
  E3 - Autorun

  สำหรับโค้ดของAutorunนี้ เราจะมาดูกันนะครับว่าWinPEโหลดอะไรในตอนเข้าWinPEบ้าง
ซึ่งหากเราต้องการสั่งให้WinPEเปิดอะไรในตอนบูตเข้า ก็สามารถตั้งค่าได้ในส่วนนี้ครับ

โค๊ด: [Select]
[autorun]
nowait|Renew USB3|%SystemRoot%\system32\hiderun.exe /w "%SystemRoot%\system32\RenewUSB3.cmd"
hidewait|audio|%SystemRoot%\system32\regsvr32.exe /s %SystemRoot%\system32\quartz.dll
nowait|MultiRes|X:\Program Files\MultiRes\MultiRes.exe
nowait|Small Border Width|%SystemRoot%\system32\swb.exe 0 0
nowait|Install ImDisk Ramdisk|%SystemRoot%\System32\StartImDIsk.exe 50 % B: RAMDisk "NTFS Compressed" "B:\Temp"
hidewait|msi|%SystemRoot%\SysWow64\regsvr32.exe /s %SystemRoot%\SysWow64\msi.dll
hidewait|msi|%SystemRoot%\system32\regsvr32.exe /s %SystemRoot%\system32\msi.dll
nowait|EnableExplorerCache|%SystemRoot%\System32\EnableExplorerCache.exe


  จะเห็นว่าการเปิดโค้ดจะเป็นการระบุว่าให้รอ(Wait) ไม่ต้องรอ(Nowait)เป็นต้น ซึ่งคำสั่งทั้งหมดจะมีดังนี้ครับ

  wait > ให้รอขั้นตอนนี้เสร็จก่อนถึงจะไปยังขั้นตอนถัดไป
(สมมติว่าเราสั่งให้โปรแกรมลงไดร์เวอร์และใช้โค้ดWait ระบบก็จะรอจนกว่าโปรแกรมจะปิดไปถึงจะไปยังขั้นตอนต่อไป และจะแสดงหน้าต่างของโปรแกรมขึ้นมาให้เห็นด้วย)

  hidewait > ให้รอขั้นตอนนี้เสร็จก่อน และไม่ต้องแสดงหน้าต่างGUIใดๆขึ้นมา
ซึ่งไม่เหมาะกับคำสั่งที่อาจมีหน้าต่างเออเร่อแสดงขึ้นมา เพราะเราได้สั่งซ่อนไว้เราก็จะไม่รู้ว่ามันเออเร่ออะไร และโปรแกรมก็จะไม่ข้ามไปยังขั้นตอนต่อไปอัตโนมัติ (มันก็ค้างอยู่อย่างงั้นแหละ)

  nowait > ไม่ต้องรอคำสั่งนี้เสร็จเมื่อโหลดขึ้นมาแล้วก็ข้ามไปยังคำสั่งถัดไปได้เลย

  hidenowait > ไม่ต้องรอให้คำสั่งนี้เสร็จและข้ามไปยังคำสั่งถัดไปได้เลย ดดยไม่ต้องแสดงหน้าต่างGuiใดๆ
การตั้งค่าแบบนี้เหมาะสำหรับสคริปต์ที่เราไม่ต้องการให้แสดงหน้าต่างใดๆขึ้นมาในระหว่างรันสคริปต์


    


ตัวอย่างการเพิ่ม/แก้ไขโค้ดในส่วนของAutorun

nowait(1)|MultiRes(2)|X:\Program Files\MultiRes\MultiRes.exe (3)

(1) nowait > จะต้องเปิดด้วยโค้ดนี้เสมอ ซึ่งท่านจะใช้ wait, hidewait, nowait, hidenowait ก็เลือกใช้ตามเหมาะสม
(2) MultiRes > ส่วนนี้จะเป็นการใส่คำอธิบายว่าโค้ดนี้คืออะไร ก็ตั้งตามต้องการ
(3) X:\Program Files\MultiRes\MultiRes.exe > แพทช์ที่อยู่ของโปรแกรม/สคริปต์ที่ต้องการ
โดยใช้ | คั่นกลางในแต่ละส่วนเสมอ

 และหากเป็นโปรแกรมหรือสคริปต์ที่มีCommand-line switches สามารถใส่ต่อท้ายไปได้เลย
เช่น
 
 Nowait|MyReg|Regedit /s MyReg.reg
 
เป็นการสั่งให้Mergeโดยไม่ต้องแสดงหน้าต่างใดๆ โดยใช้ /s เป็นต้น



« แก้ไขครั้งสุดท้าย: 27 ต.ค. 14, 04.05 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #11 เมื่อ: 26 ต.ค. 14, 02.17 »

  E4 - registry


    ส่วนนี้จะเป็นการตั้งค่าเกี่ยวกับRegistryที่WinPEจะทำการตั้งค่าเมื่อบูตเข้ามาครับ ซึ่งในจุดนี้ผมจะอธิบาย
ให้เห็นถึงความสัมพันธ์ของค่าRegistry และโปรแกรมที่เราได้เพิ่มไว้ในWimFile

โค๊ด: [Select]
[registry]
"HKLM",0x1,"System\ControlSet001\Services\UnlockerDriver5","ImagePath","\??\X:\Program Files\Unlocker\UnlockerDriver5.sys"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\Unlocker.exe","","X:\Program Files\Unlocker\Unlocker.exe"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","Path","%SystemDrive%\Program Files\GoogleChrome\Application"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe"
"HKLM",0x1,"Software\Wow6432Node\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","StubPath",""%SystemDrive%\Program Files\GoogleChrome\Application\31.0.1650.63\Installer\chrmstp.exe" --configure-user-settings --verbose-logging --system-level --multi-install --chrome"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe""
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\InstallInfo","ShowIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exee" --show-icons"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\InstallInfo","ReinstallCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --make-default-browser"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\InstallInfo","HideIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --hide-icons"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\Capabilities","ApplicationIcon","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","Path","%SystemDrive%\Program Files\GoogleChrome\Application"
"HKLM",0x1,"Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe"
"HKLM",0x1,"Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","StubPath",""%SystemDrive%\Program Files\GoogleChrome\Application\31.0.1650.63\Installer\chrmstp.exe" --configure-user-settings --verbose-logging --system-level --multi-install --chrome"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe""
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\InstallInfo","ShowIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exee" --show-icons"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\InstallInfo","ReinstallCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --make-default-browser"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\InstallInfo","HideIconsCommand",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" --hide-icons"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Clients\StartMenuInternet\Google Chrome\Capabilities","ApplicationIcon","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKCU",0x1,"Software\Software\Classes\https\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKCU",0x1,"Software\Software\Classes\https\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKCU",0x1,"Software\Software\Classes\http\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKCU",0x1,"Software\Software\Classes\http\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKCU",0x1,"Software\Software\Classes\ftp\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKCU",0x1,"Software\Software\Classes\ftp\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\ChromeHTML\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\ChromeHTML\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\https\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\https\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\http\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\http\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"Software\Classes\ftp\shell\open\command","",""%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe" -- "%1""
"HKLM",0x1,"Software\Classes\ftp\DefaultIcon","","%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe,0"
"HKLM",0x1,"System\ControlSet001\Services\Eventlog\System\avgntflt","CategoryMessageFile","%SystemRoot%\SYSTEM32\drivers\avgntflt.sys"
"HKLM",0x1,"System\ControlSet001\services\Eventlog\System\avgntflt","EventMessageFile","%SystemRoot%\SYSTEM32\drivers\avgntflt.sys"
"HKLM",0x1,"System\ControlSet001\services\Eventlog\Application\Avira Antivirus","EventMessageFile","X:\Program Files\Avira\Avira Free Antivirus\avevtrc.dll"
"HKLM",0x1,"System\ControlSet001\services\Eventlog\Application\Avira Antivirus","CategoryMessageFile","X:\Program Files\Avira\Avira Free Antivirus\avevtrc.dll"
"HKLM",0x2,"System\ControlSet001\services\AntiVirService","ImagePath",""X:\Program Files\Avira\Avira Free Antivirus\avguard.exe""
"HKLM",0x2,"System\ControlSet001\services\AntiVirSchedulerService","ImagePath",""X:\Program Files\Avira\Avira Free Antivirus\sched.exe""
"HKLM",0x2,"Software\Classes\CLSID\{45AC2688-0253-4ED8-97DE-B5370FA7D48A}\InProcServer32","","X:\Program Files\Avira\Avira Free Antivirus\shlext64.dll"
"HKLM",0x2,"Software\Classes\CLSID\{305CA226-D286-468e-B848-2B2E8E697B74}\Shell\Open\Command","","X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe"
"HKLM",0x2,"Software\Classes\CLSID\{305CA226-D286-468e-B848-2B2E8E697B74}\DefaultIcon","","X:\Program Files\Avira\Avira Free Antivirus\rcimage.dll,-101"
"HKLM",0x1,"Software\Classes\CLSID\{305CA226-D286-468e-B848-2B2E8E697B74}","System.Software.TasksFileUrl","X:\Program Files\Avira\Avira Free Antivirus\avconfig.xml"
"HKLM",0x1,"Software\Wow6432Node\Avira\AntiVir Desktop","AppDataDirectory","%ALLUSERSPROFILE%\Avira\Avira Free Antivirus\"
"HKLM",0x1,"Software\Wow6432Node\Avira\AntiVir Desktop","Path","X:\Program Files\Avira\Avira Free Antivirus\"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","expat.dll","X:\Program Files\Acronis\TrueImage\expat.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","ulxmlrpcpp.dll","X:\Program Files\Acronis\TrueImage\ulxmlrpcpp.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","mspack.dll","X:\Program Files\Acronis\TrueImage\mspack.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\Winpe","A43","X:\Program Files\Acronis\TrueImage\a43\a43.exe"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","vddapi.dll","X:\Program Files\Acronis\TrueImage\vddapi.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","universal_restore.dll","X:\Program Files\Acronis\TrueImage\universal_restore.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","kb_link.dll","X:\Program Files\Acronis\TrueImage\kb_link.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","auto_reactivate64.bin","X:\Program Files\Acronis\TrueImage\auto_reactivate64.bin"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","auto_reactivate.bin","X:\Program Files\Acronis\TrueImage\auto_reactivate.bin"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","rpc_client.dll","X:\Program Files\Acronis\TrueImage\rpc_client.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","libssl10.dll","X:\Program Files\Acronis\TrueImage\libssl10.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","thread_pool.dll","X:\Program Files\Acronis\TrueImage\thread_pool.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","libcrypto10.dll","X:\Program Files\Acronis\TrueImage\libcrypto10.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","icu38.dll","X:\Program Files\Acronis\TrueImage\icu38.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\CommonComponents","resource.dll","X:\Program Files\Acronis\TrueImage\resource.dll"
"HKLM",0x1,"Software\Wow6432Node\Acronis\TrueImage\Settings","WorkingDir","X:\Program Files\Acronis\TrueImage"




  จากโค้ดด้านบนจะเห็นว่ามีแพทช์ของโปรแกรมที่อ้างอิงตามนี้

โค๊ด: [Select]
X:\Program Files\Unlocker\UnlockerDriver5.sys
X:\Program Files\Unlocker\Unlocker.exe
%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe
%SystemRoot%\SYSTEM32\drivers\avgntflt.sys
X:\Program Files\Avira\Avira Free Antivirus\avevtrc.dll
X:\Program Files\Avira\Avira Free Antivirus\avguard.exe
X:\Program Files\Avira\Avira Free Antivirus\sched.exe
X:\Program Files\Avira\Avira Free Antivirus\shlext64.dll
X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe
X:\Program Files\Avira\Avira Free Antivirus\rcimage.dll,-101
X:\Program Files\Avira\Avira Free Antivirus\avconfig.xml
X:\Program Files\Acronis\TrueImage\expat.dll
X:\Program Files\Acronis\TrueImage\ulxmlrpcpp.dll
X:\Program Files\Acronis\TrueImage\mspack.dll"
X:\Program Files\Acronis\TrueImage\a43\a43.exe"
X:\Program Files\Acronis\TrueImage\vddapi.dll"
X:\Program Files\Acronis\TrueImage\universal_restore.dll
X:\Program Files\Acronis\TrueImage\kb_link.dll"
X:\Program Files\Acronis\TrueImage\auto_reactivate64.bin
X:\Program Files\Acronis\TrueImage\auto_reactivate.bin
X:\Program Files\Acronis\TrueImage\rpc_client.dll
X:\Program Files\Acronis\TrueImage\libssl10.dll
X:\Program Files\Acronis\TrueImage\thread_pool.dll
X:\Program Files\Acronis\TrueImage\libcrypto10.dll
X:\Program Files\Acronis\TrueImage\icu38.dll
X:\Program Files\Acronis\TrueImage\resource.dll


  สำหรับโค้ดRegistryนั้น แพทช์ของโปรแกรมในตอนบูตอาจจะมีหรือไม่มีอยู่จริงก็ได้ เพียงแต่ว่าหากต้องการเรียกใช้
โปรแกรมนั้นๆก็จะทำให้มีปัญหาไม่สามารถทำงานได้อย่างถูกต้อง โดยผมจะยกตัวอย่างดังนี้ครับ

  โปรแกรมGoogleChrome ในโฟลเดอร์ Program Files หากดูค่าRegistryที่ตั้งไว้ จะเห็นว่ามีการอ้างอิงไปยัง
โค๊ด: [Select]
%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe
   โดยหนึ่งในโค้ดRegistryคือการตั้งให้โปรแกรมChrome.exeเป็นโปรแกรมเริ่มต้นในการเปิดเว็บ
ซึ่งปกตินั้นหากเราไม่ได้ย้ายโฟลเดอร์GoogleChromeไปไหน เมื่อดับเบิ้ลคลิกไฟล์ที่เป็นลิงก์ไปยังเว็บ
GoogleChromeก็จะเปิดหน้าเว็บนั้นขึ้นมาโดยอัตโนมัติ
   (ไม่ลืมใช่มั้ยว่าWimfileยิ่งเล็กยิ่งดี และด้วยขนาดของโฟลเดอร์GoogleChromeที่ใหญ่ถึง138เมก จึงต้องเอามันออกมาจากWimfile..เดี๋ยวค่อยพูดถึงในหัวข้อต่อไปครับ) ดังนั้นหากเราGoogleChromeออกจากโฟลเดอร์Program Files
ก็จะทำให้แพทช์ของโปรแกรมนี้ไม่มีอยู่จริง หากเราดับเบิ้ลคลิกที่ไฟล์ที่เป็นลิงก์ มันก็จะไม่เปิดหน้าเว็บขึ้นมา
กลายเป็นเออเร่อแทน


(ไม่มีGoogleChrome ก็จะเออเร่อแบบนี้แทน)


   .....แต่อย่างที่เกริ่นไว้ในตอนแรกว่าแพทช์ของโปรแกรมนั้นไม่จำเป็นต้องมีอยู่จริงในตอนบูตก็ได้
ซึ่งหมายความว่าหากเราเอาโฟลเดอร์GoogleChromeมาใส่ทีหลัง เราก็สามารถเปิดลิงก์หรือเข้าเว็บได้เหมือน
ตอนที่มีโฟลเดอร์GoogleChromeอยู่ในไฟล์Boot.wimมาตั้งแต่แรก ส่วนวิธีการดึงออกเพื่อลดขนาดWim
และใส่คืนหลังจากการบูตเพื่อให้ทำงานได้ตามปกตินั้น จะไปเจาะลึกในหัวข้อถัดไปครับ





•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #12 เมื่อ: 27 ต.ค. 14, 04.30 »
  E5 - PINTOOL

โค๊ด: [Select]
[PINTOOL]
TaskBar5=%AppData%\Microsoft\Windows\TaskBarTmp\explorer.lnk||||||||
StartMenu0=%AppData%\Microsoft\Windows\TaskBarTmp\explorer.lnk||||||||
TaskBar2=$Start_Menu\Programs\Network\PENetwork.lnk||||||||
TaskBar0=%AppData%\Microsoft\Windows\TaskBarTmp\StartScreen.lnk||||||||
TaskBar3=$Start_Menu\Programs\Network\Opera12.lnk||||||||
StartMenu1=$Start_Menu\Programs\Network\Opera12.lnk||||||||
TaskBar4=%AppData%\Microsoft\Windows\TaskBarTmp\iexplore.lnk||||||||
StartMenu2=%AppData%\Microsoft\Windows\TaskBarTmp\iexplore.lnk||||||||
TaskBar1=$Start_Menu\Programs\Accessories\Command Prompt.lnk||||||||

    ส่วนนี้จะเป็นการสั่งให้Pinชอร์ตคัตของโปรแกรมที่ตั้งไว้ ไปยังTaskbarและStartMenu


ตามรูป(1) คือ Pin to StartMenu  และ(2) คือpin to Taskbarนั่นเองครับ



  โดยหลักการเขียนโค้ดจะเป็นแบบนี้ครับ

StartMenu Pin

StartMenu2(1)=%AppData%\Microsoft\Windows\TaskBarTmp\iexplore.lnk(2)||||||||(3)

(1) StartMenu2 > เป็นการระบุว่าให้pinไปยังStartMenu โดยเลข2คือลำดับในการPin ซึ่งจะเรียงจาก0,1,2,3...
(2) ตรงนี้จะเป็นที่อยู่ของชอร์ตคัตที่ต้องการPin โดยต้องเป็น.LNK เท่านั้น
(3) |||||||| > เป็นการใส่เพื่อปิดท้ายคำสั่ง



Taskbar Pin

TaskBar0(1)=%AppData%\Microsoft\Windows\TaskBarTmp\StartScreen.lnk(2)||||||||(3)

(1) TaskBar0 > เป็นการระบุว่าให้pinไปยังTaskBarโดยเลข0คือลำดับในการPin ซึ่งจะเรียงจาก0,1,2,3...
(2) ตรงนี้จะเป็นที่อยู่ของชอร์ตคัตที่ต้องการPin โดยต้องเป็น.LNK เท่านั้น
(3) |||||||| > เป็นการใส่เพื่อปิดท้ายคำสั่ง


========================================================
  และในคำสั่งPinนี้ จะต้องเป็นPatchที่มีอยู่จริงเท่านั้น
หากคำสั่งไหนไม่มีอยู่ จะไม่ถูกPinไว้ ซึ่งการเรียงลำดับก็จะไล่จาก,1,2,3...ขึ้นไปเช่นกัน
  สมมติว่าเราสั่งให้Pin Opera.lnkไปยังTaskBarลำดับ0 และPin Explorer.lnkไปยังTaskBarลำดับ2
หากOpera.lnkไม่มีอยู่จริง ลำดับที่1ที่ถูกPinก็จะกลายเป็น Explorer.lnkแทนครับ
========================================================









  การสร้างไฟล์.cfgของเราเอง เพื่อใช้กับPinTool

    การสร้างไฟล์.cfgนี้ จะเป็นการสั่งให้Pinชอร์ตคัตไปยังTaskbar ในกรณีที่เราดึงบางโปรแกรมออกมาจากboot.wim
และต้องการให้Pinชอร์ตคัดไว้ที่Taskbar มีหลักการดังนี้ครับ (ไม่สามารถPinไปยังStartMenuได้)

1.เปิดnotepadขึ้นมา แล้วใส่โค้ดลงไปตามนี้

[PINTOOL]
TaskBar1=%AppData%\Microsoft\Windows\TaskBarTmp\explorer.lnk||||||||
TaskBar2=$Start_Menu\Programs\Remote Desktop.lnk||||||||
TaskBar3=$Start_Menu\Programs\PENetwork.lnk||||||||

(อันนี้เป็นแค่ตัวอย่างนะครับ ท่านสามารถเรียงลำดับและใส่ชอร์ตคัดของโปรแกรมตามที่ท่านต้องการ)

2.บันทึก และทำการเปลี่ยนนามสกุลเป็น.cfg โดยตั้งชื่อเป็นอะไรก็ได้ เช่น MyPin.cfg

3.เมื่ออยู่ในWinPE ท่านสามารถสั่งให้Pinโดยใช้คำสั่ง
โค๊ด: [Select]
Pintool -f C:\Mypin.cfgโดยC:\Mypin.cfg คือที่อยู่และชื่อของไฟล์.cfgของเราครับ
    

 หากโค้ดถูกต้อง ก็จะมีชอร์ตคัตมาPinไว้ที่Taskbarตามรูปครับ





===================================================
 $Start_Menu\Programs  เป็นโค้ดที่หมายถึงโฟลเดอร์Programs ที่อยู่ในStratMunu
หรือ %SystemDrive%\Users\UserName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs นั่นเอง
===================================================



« แก้ไขครั้งสุดท้าย: 27 ต.ค. 14, 05.02 โดย Mr.KKD »
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #13 เมื่อ: 27 ต.ค. 14, 16.54 »

     จบการอธิบายเกี่ยวกับหัวข้อ E - ทำความรู้จักกับ Win8.1SE.cfg

  ซึ่งเราก็ได้รู้แล้วว่าเมื่อบูตเข้าWinPE มีชอร์ตคัตตัวไหนที่ต้องการใส่เพิ่มหรือปรับแต่ง คุณก็สามรถแก้ไขไฟล์
Win8.1se.cfgที่อยู่ในSystem32 เพื่อให้เวลาบูตเข้าPEแล้วตั้งค่าตามที่เราต้องการ โดยทำดังนี้ครับ

1.ทำการMountไฟล์Boot.wim ตามตัวอย่าง  A - การMount Wimfile เพื่อปรับแต่ง

2.เข้าไปแก้ไขไฟล์Win8.1SE.cfgในSystem32ตามต้องการ

3.จัดเก็บการเปลี่ยนแปลง(Unmount-Wim) ตามตัวอย่าง D - การจัดเก็บการเปลี่ยนแปลงWim Fileที่Mountไว้

  เมื่อเราบูตเข้าWinPEในครั้งต่อๆไป ชอร์ตคัตต่างๆก็จะถูกเซตตามที่เราต้องการแล้วครับ  065


 
•---We Make it Easy---•
 

ออฟไลน์ Mr.KKD

Re: สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Season 2
« ตอบกลับ #14 เมื่อ: 28 ต.ค. 14, 03.05 »
     F - การเพิ่ม/แก้ไขRegistry ในไฟล์ boot.wim
 

  สำหรับหัวข้อการแก้ไขRegistryนั้น จะใช้สำหรับท่านที่ต้องการแก้ไขค่าบางอย่างของWinPE
ซึ่งการแก้ไขนั้นจะต้องทำการMountไฟล์Boot.wimก่อน โดยทำตาม A - การMount Wimfile เพื่อปรับแต่ง

  การเพิ่ม/แก้ไขregistryจะแบ่งเป็น2แบบคือ
  1.การแก้แบบOffline หรือLoad Hive ซึ่งวิธีนี้จะเป็นการแก้ในตัวRegistryของWinPEเลย เมื่อบูตเข้าWinPE
ค่าRegistryจะเป็นค่าเริ่มต้นตามที่เราแก้เลย
  2.การใช้.Reg หรือสคริปต์ของRegistry ซึ่งเราจะต้องไปตั้งในWin8.1SE.cfgให้Mergeไฟล์Registryของเรา
ซึ่งหมายถึงว่าค่าRegistryจะถูกแก้ไขตอนบูตเข้าWinPEนั่นเอง


  ก่อนจะอธิบายเกี่ยวกับการเพิ่ม/แก้ไขregistryทั้ง2แบบ เราไปดูกันก่อนว่าค่าRegistryของWindowsเก็บไว้ที่ไหน
และแต่ละไฟล์คืออะไร



  ค่าหลักๆจะถูกเก็บไว้ที่ C:\Mount\Windows\System32\config ซึ่งไฟล์Registryจะเป็นไฟล์ที่ไม่มีนามสกุล


  และเมื่ออยู่ในWindows(PE)ปกติ ตำแหน่งของRegistryจะเป็นแบบนี้ครับ

 - DEFAULT     > [HKEY_CURRENT_USER]
 - SAM            > [HKEY_LOCAL_MACHINE\SAM]
 - SECURITY   > [HKEY_LOCAL_MACHINE\SECURITY]
 - SOFTWARE > [HKEY_LOCAL_MACHINE\SOFTWARE]
 - SYSTEM      > [HKEY_LOCAL_MACHINE\SYSTEM]




« แก้ไขครั้งสุดท้าย: 28 ต.ค. 14, 04.51 โดย Mr.KKD »
•---We Make it Easy---•
 

ความคิดเห็น สมัครงาน  



กระทู้เมื่อเร็วๆนี้   ลงขายสินค้า  


กระทู้เมื่อเร็วๆนี้
  Zombie Army 4: Dead War [PC] กองทัพฮิตเลอร์กลับมาอีกครั้ง   โดย... MajuSoftware (ห้องเกมส์)  03 ก.ย. 23, 11.12
  Steel Division 2 [PC] เกมกลยุทธ์สงครามโลกครั้งที่ 2   โดย... MajuSoftware (ห้องเกมส์)  03 ก.ย. 23, 08.38
  Immortals Fenyx Rising [PC] เกมผจญภัยสุดยิ่งใหญ่แห่งเทวตำนาน   โดย... MajuSoftware (ห้องเกมส์)  03 ก.ย. 23, 08.34
  Metro Exodus [PC] เกมเอาชีวิตรอดพังทลายของรถไฟใต้ดิน   โดย... MajuSoftware (ห้องเกมส์)  03 ก.ย. 23, 08.28
  Remix OS for PC ระบบปฏิบัติการ Android บน PC [ใช้งานผ่าน FlashDrive]   โดย... mong (ฟรีซอฟแวร์)  31 ส.ค. 23, 08.39
  Ghost KKD Windows 10 x64 V.2 [Full] ไฟล์ Ghost ที่ปรับแต่งมาให้เบาเครื่องสุดๆ 20   โดย... winningya (ฟรีซอฟแวร์)  25 ส.ค. 23, 17.50
  BIOMUTANT [PC] เกม RPG แนวกังฟูยุคหลังหายนะ   โดย... MajuSoftware (ห้องเกมส์)  19 ส.ค. 23, 20.48
  The Ascent [PC] (ALL DLC) เกมแอคชั่นชูตเตอร์   โดย... MajuSoftware (ห้องเกมส์)  19 ส.ค. 23, 20.42
  HUMANKIND [PC] สร้างอารยธรรมที่ไม่เหมือนใคร   โดย... MajuSoftware (ห้องเกมส์)  19 ส.ค. 23, 20.35
  Pathfinder: Wrath of the Righteous [PC] (v2.1.4w & ALL DLC)   โดย... MajuSoftware (ห้องเกมส์)  13 ส.ค. 23, 10.53
  Kena: Bridge of Spirits [PC] (ALL DLC) เกมแอ็กชั่นผจญภัย   โดย... MajuSoftware (ห้องเกมส์)  13 ส.ค. 23, 10.44
  Forza Horizon 5 [PC] (ALL DLC) เกมแข่งรถไร้ขีดจำกัด   โดย... MajuSoftware (ห้องเกมส์)  13 ส.ค. 23, 10.30
  ICARUS [PC] เอาชีวิตรอดในดินแดนอันที่ป่าเถื่อน   โดย... MajuSoftware (ห้องเกมส์)  13 ส.ค. 23, 10.26
  Sifu [PC] เกมต่อสู้แบบกังฟู   โดย... MajuSoftware (ห้องเกมส์)  09 ส.ค. 23, 21.41
  POSTAL 4: No Regerts [PC] เกมโอเพ่นเวิลด์ตลกขบขันเสียดสี   โดย... MajuSoftware (ห้องเกมส์)  09 ส.ค. 23, 21.36
  Marvel’s Guardians of the Galaxy [PC] เกมรวมพันธุ์นักสู้พิทักษ์จักรวาล   โดย... MajuSoftware (ห้องเกมส์)  09 ส.ค. 23, 21.27
  Saints Row [PC] (ALL DLC) เกมในโลกที่เต็มไปด้วยอาชญากรรม   โดย... MajuSoftware (ห้องเกมส์)  09 ส.ค. 23, 21.15
  Maneater [PC] เกมสุดยอดนักล่าแห่งท้องทะเล   โดย... MajuSoftware (ห้องเกมส์)  09 ส.ค. 23, 21.08


กระทู้แนะนำ   กลับหน้าแรก  


  สอน+++ขุดบิทคอยล์จากแอพฯมือถือ ขุดได้ฟรีๆทุกที่ทุกเวลา    โดย...System
  การติดตั้ง Android Studio เพื่อสร้าง แอพพลิเคชั่น สำหรับมือใหม่   โดย... Wittawat
  NT6x Setup Utility.....ศึกษาดูเองว่าเอาไว้ทำอะไร?   โดย... TµlTang­­™
  แปลง Windows ที่ติดตั้งแล้วแบบ BIOS/MBR เป็น UEFI/GPT   โดย... TµlTang­­™
  สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Chapter 1   โดย... Mr.KKD
  สร้างWin8.1PEในสไตล์ของเรา ด้วยWinbuilder : Chapter 2   โดย... Mr.KKD
  วิธีโกสใบออสแบบ UEFI+GPT+Win8 8.1 64Bit   โดย... จินตะ
  คู่มือการโกสด้วย Easy sysprep 4 English Version By Socoman ภาคแรก   โดย... Socoman
  คู่มือการโกสด้วย Easy sysprep 4 English Version By Socoman ภาคสอง   โดย... Socoman
  คู่มือการโกสด้วย Easy sysprep 4 English Version By Socoman ภาคสาม Win7   โดย... Socoman
  คู่มือการโกสด้วย Easy sysprep 4 English Version By Socoman ภาค4 Win10   โดย... Socoman
  MULTIBOOT HDD + EXTERNAL HDD + USB FLASH DRIVE   โดย... Dawud
  MULTIBOOT HDD+EXTERNAL HDD+USB FLASH DRIVE II   โดย... Dawud
  10 PE SE UEFI ทดสอบได้แล้วครับ ติชม เพิ่มเติมก้บอกมาได้ครับ   โดย... ยาจกวุฒิ™
  คู่มือการทำ Ghost Auto Driver ด้วย Sysprep ceo 2015 / 2016   โดย... Socoman
  วิธีการติดตั้งGhost Windows ที่สร้างจาก MBR/BIOS ให้ใช้ได้กับ GPT/UEFI   โดย... Socoman
  Ghost auto driver แปลงเป็น WIM การเก็บ image และแตก image ด้วย WIM   โดย... lnwfern13
  การใช้งาน Ghost แบบละเอียด สำหรับมือใหม่ (Backup & Restore)   โดย... กฤษ
  การทำ Ghost Boot Menu สำหรับการ Backup & Restore แบบ Auto   โดย... กฤษ
  การทำ Ghost Restore ที่ Boot Menu สำหรับยูสเซอร์ (Support Win 7,8,10)   โดย... กฤษ




 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24