PCZONE 討論區

PCZONE 討論區 (https://www.pczone.com.tw/vbb3/)
-   ---- 電 腦 / 網 路 軟 體 精 華 區 (https://www.pczone.com.tw/vbb3/forum/39/)
-   -   【教學】XP 多重開機 + 自動安裝 (https://www.pczone.com.tw/vbb3/thread/39/93459/)

Aquarius 2003-10-30 04:47 AM

考完試了, 耶, 雖然考得不是很理想, 但至少考完了, 哎:corkysm:

[QUOTE][i]最初由 lamina 發表[/i]
[B]如上...可以把這兩行改成下面這模樣...
[CODE]ECHO.
ECHO Applying SP2 Hotfixes1......Please Wait......
for %%i in (%systemdrive%\install\Hotfixes1\*.exe)
do @if exist %%i echo Applying %%~nxi && start /wait
%%i /u /z /n /q
ECHO.
ECHO Applying SP2 Hotfixes2......Please Wait......
for %%i in (%systemdrive%\install\Hotfixes2\*.exe)
do @if exist %%i echo Applying %%~nxi && start /wait
%%i /Q:A /R:N[/CODE]
這樣 CMD 的螢幕會列出目前已執行到哪一個 Hotfixe 檔了... [/B][/QUOTE]

那個realone 安裝的方法看來很複雜的樣子, 不太適合我這種電腦初學者,
我再找個時間試試吧, lamina兄有試過了嗎? :D

另, 我查詢過那個 for 的用法, 雖然有蠻多說明的, 但怎麼都沒看到上述的
使用說明? 如有關於此例子詳盡的說明資料, 也請不吝告知^^

[QUOTE][i]最初由 LJI 發表[/i]
[B]Windows2000對於這種無人值守自動安裝似乎支援的不是很好
我按照相同的方法安裝XP,可以很正確的安裝好各種軟體,並做好相關設定
套用到2000上會出先一些很奇怪的問題,不知道是否是因為使用VM的關係?? [/B][/QUOTE]

我之前也是用2000的(現在還是有在用), 一直不想用XP, 因為不是很習慣..
可是後來我發現XP的效能雖然不及2000, 但軟硬體的相容的確比2000好, 所以
現在雖然兩個都裝, 但偏向使用XP, 之前記憶體用CL2跑, 2000就是會給我當,
換了XP跑, 就是不會, 所以逼得我不得不開始用XP, 不然我還真捨不得離開
2000的懷抱:D

LJI 2003-10-30 10:48 AM

[QUOTE][i]最初由 Aquarius 發表[/i]
[B]我之前也是用2000的(現在還是有在用), 一直不想用XP, 因為不是很習慣..
可是後來我發現XP的效能雖然不及2000, 但軟硬體的相容的確比2000好, 所以
現在雖然兩個都裝, 但偏向使用XP, 之前記憶體用CL2跑, 2000就是會給我當,
換了XP跑, 就是不會, 所以逼得我不得不開始用XP, 不然我還真捨不得離開
2000的懷抱:D [/B][/QUOTE]

目前正在製作Win2000 with SP4無人值守安裝光碟,不過IE6似乎無法整合
一整合進去,在安裝即將完成之時,就會出現"EXPLORER.EXE"發生錯誤...
然後整個系統就掛在那邊不會動了.......:eek:




依舊不死心,繼續向Win2000挑戰中......:mad:

dou0228 2003-10-30 11:48 AM

不會啦, 2K 整合 IE6 比較簡單, 使用 SVCPACK.INF 去裝 IE6 sp1
( Internet Explorer Administrator Kit 抓取 IE6 sp1 )

然後讓他在安裝階段也把 IE6 弄進去..

第一次開機再裝 patch 就 OK ;)

lamina 2003-10-30 09:45 PM

[QUOTE][i]最初由 Aquarius 發表[/i]
[B]那個realone 安裝的方法看來很複雜的樣子, 不太適合我這種電腦初學者,
我再找個時間試試吧, lamina兄有試過了嗎? :D

另, 我查詢過那個 for 的用法, 雖然有蠻多說明的, 但怎麼都沒看到上述的
使用說明? 如有關於此例子詳盡的說明資料, 也請不吝告知^^
[/B][/QUOTE]
VBS 的安裝方式我沒試過, 另外加上一些雜七雜八的程式要塞進去 CDR...
所以一塊 CDR 差不多就滿了, RealOne 就只得排除... :)



For 指令...我從 For/? 中擷取相關的訊息, 你看看就好...

如果要在批次程式中使用 FOR 命令,請指定 %%variable,而不要指定
%variable。 變數名稱有大小寫的區分,所以 %i 不同於 %I。

FOR %variable IN (set) DO 命令 [command-parameters]

%variable:指定一個可以取代的參數。
(set) :指定由一或多個檔案組成的檔案組。您可使用通配字元。
command :指定命令來執行每一個檔案。
command-parameters:為所指定的命令指定變數或參數。

%~nxI:只展開 %I 為檔名與副檔名



If 指令...同樣, 我從 If/? 中擷取相關的訊息, 你看看就好...

IF [NOT] EXIST filename command

EXIST filename:如果指定的檔名存在時,則條件為真。
command :指定當條件為真時所要執行的命令。命令之後可以接著 ELSE 命令。當指定條件為偽時,緊接在 ELSE 命令之後的命令將會被執行。



最後...
「@」符號表示不顯示該命令的自帶訊息...
「&&」符號表示且的意思....

LJI 2003-10-30 11:37 PM

[QUOTE][i]最初由 dou0228 發表[/i]
[B]不會啦, 2K 整合 IE6 比較簡單, 使用 SVCPACK.INF 去裝 IE6 sp1
( Internet Explorer Administrator Kit 抓取 IE6 sp1 )

然後讓他在安裝階段也把 IE6 弄進去..

第一次開機再裝 patch 就 OK ;) [/B][/QUOTE]

呃....可否告知其步驟?小弟快搞瘋了@@"

LJI 2003-10-31 01:04 PM

[QUOTE][i]最初由 琥珀 發表[/i]
[B]lamina 用內建的磁碟重組(應該是'檔案重組'~~~)程式嗎?

Diskeeper 7.0.413 確定可以使用安靜模式安裝。(剛剛琥珀不小心刪除了安裝檔,結果用 FinalData 也救不回來...想辦法中...) [/B][/QUOTE]

Diskeeper Professional v8.0 Build 459 也可使用靜音模式安裝。

Lucky 2003-11-01 01:52 AM

[QUOTE][i]最初由 LJI 發表[/i]
[B]Diskeeper Professional v8.0 Build 459 也可使用靜音模式安裝。 [/B][/QUOTE]

好像可以用AutoIt來達成吧!!!我看大陸是這麼做低
= =!!可惜我不會

[url]http://bbs.wwwfox.net/cgi-bin/forums.cgi?forum=2[/url]


有興趣的人去看看∼另一個網址我忘了∼找到在PO上來

Aquarius 2003-11-01 02:54 AM

[QUOTE][i]最初由 Lucky 發表[/i]
[B]好像可以用AutoIt來達成吧!!!我看大陸是這麼做低
= =!!可惜我不會

[url]http://bbs.wwwfox.net/cgi-bin/forums.cgi?forum=2[/url]


有興趣的人去看看∼另一個網址我忘了∼找到在PO上來 [/B][/QUOTE]

用 /s /v/qn 這個命令就可以了, 前面都有詳細的說明, 請爬一下文^^

LJI 2003-11-01 10:42 AM

我是把它用WinRAR解壓縮後,取其MSI檔,再下靜音模式指令安裝的
DKP80459.MSI /QN

dou0228 2003-11-01 10:20 PM

[QUOTE][i]最初由 LJI 發表[/i]
[B]呃....可否告知其步驟?小弟快搞瘋了@@" [/B][/QUOTE]

[url]http://www.microsoft.com/windows/ieak/default.asp[/url]

先下載 IEAK, 然後安裝並啟動之..

啟動後, IEAK 同步, 它會去網路上下載 IE6 SP1 至 IEAK 啟動時建立的資料夾.

等 IE6 SP1 同步完之後, 選 CD 封裝模式, 就會把 IE6 SP1 弄成給光碟執行的 執行檔, 無須網路下載了..

再來就是細部設定, 它甚至可以幫你設定好 Proxy, 我的最愛, ... etc.

最後就是 把 2K CD 裡的 SVCPACK.INF 加上執行 ie6setup.exe 讓它跑無聲模式.

LJI 2003-11-02 04:22 AM

[QUOTE][i]最初由 dou0228 發表[/i]
[B][url]http://www.microsoft.com/windows/ieak/default.asp[/url]

先下載 IEAK, 然後安裝並啟動之..

啟動後, IEAK 同步, 它會去網路上下載 IE6 SP1 至 IEAK 啟動時建立的資料夾.

等 IE6 SP1 同步完之後, 選 CD 封裝模式, 就會把 IE6 SP1 弄成給光碟執行的 執行檔, 無須網路下載了..

再來就是細部設定, 它甚至可以幫你設定好 Proxy, 我的最愛, ... etc.

最後就是 把 2K CD 裡的 SVCPACK.INF 加上執行 ie6setup.exe 讓它跑無聲模式. [/B][/QUOTE]

前面的步驟我會做了,但最後"把2K裡的SVCPACK.INF加上執行ie6setup.exe"
這點小弟真的不太清楚該如何整合@@?

foxbrian 2003-11-02 03:31 PM

[QUOTE][i]最初由 LJI 發表[/i]
[B]前面的步驟我會做了,但最後"把2K裡的SVCPACK.INF加上執行ie6setup.exe"
這點小弟真的不太清楚該如何整合@@? [/B][/QUOTE]

用記事本開啟i386\svcpack.inf,如果沒這個檔,就自己做一個
加入下面內容

[code][Version]
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=1
BuildNumber=2600

[SetupData]
CatalogSubDir="\i386\Update"

[ProductCatalogsToInstall] <--這一行應該可以不加

[SetupHotfixesToRun]
update.exe -q -n
[color=red]ie6setup.exe[/color][/code]

紅色字是你封裝完IE6後,該執行檔的檔名,記得把ie6setup.exe放到i386\Update

做完上面步驟,2K安裝時就會安裝IE6了

PS.這是參考整合Hotfixes的方法推測出來的,沒實測:eek:

LJI 2003-11-02 08:32 PM

感謝[B]dou0228[/B]跟[B]foxbrian[/B]兄的回覆,小弟受教了。

但是奇怪的是,我採用CD封裝,但是並未封裝成一個安裝檔。
封裝好的版本,跟網路下載的版本內容差不多,只是多了一堆"CUSTOMx.CAB"的檔案。(x內為數字,內容為修正檔)
試問一下,這樣就算是做好封裝了嗎@@?

Aquarius 2003-11-03 12:50 PM

關於事先整合優化XP註冊表部份, 有興趣的人可以到這裡參考
相當的豐富
[url]http://www.kellys-korner-xp.com/xp_tweaks.htm[/url]

dou0228 2003-11-03 06:20 PM

[QUOTE][i]最初由 LJI 發表[/i]
[B]
但是奇怪的是,我採用CD封裝,但是並未封裝成一個安裝檔。
[/B][/QUOTE]

它是會產生 ie6setup.exe, 還有一大堆的 CAB 檔案..
所以你如果有看到 ie6setup.exe 就算是完成 CD 封裝 :)

LJI 2003-11-04 04:02 PM

感謝,弟已經完成了!

目前Win2000也已經整合完畢,系統安裝完會安裝IE6SP1及其相關HOTFIX
以MBSA(Mircorsoft Baseline Security Analyzer)測試已無漏HOTFIX。
感謝提供相關資訊的大德,讓小弟得以打造自己喜歡的整合光碟。
(其後整合、測試、安裝已超過50次,實際安裝超過20次.......^^")

lamina 2003-11-13 03:03 AM

2 個附加檔案
之前的開機選單是用 diskem1x 作出來的...
雖然很簡陋, 但還滿實用的
不過有時候圖形介面也蠻不錯的....

Boot Scriptor 1.2.18
[url]http://www.bootscriptor.org/[/url]
下載:http://www.cs.uic.edu/~mter/bscript/distro/Boot%20Scriptor%20(1.2.18).zip

Bootable CD Script for Boot Scriptor
[url]http://bootcd.narod.ru/[/url]
bcds105bsm.zip - v1.05 (23.07.2003) 下載:http://bootcd.narod.ru/bcds105bsm.zip

建一個 TEST 目錄
把 Boot%20Scriptor%20(1.2.18).zip 和 bcds105bsm.zip 解壓縮到此 TEST 目錄下
然後可以把 licenses、tools 目錄和 changes.txt 、 rpm.txt 都刪除
我們只要 bscript 目錄就行了...
然後再進入 bscript 目錄, 把 bscript.bmp、bscript.bsi 和 bscriptw.com 刪除...

編輯 bscript.ini 輸入
[CODE]clear
Print "Press any key to boot from CD..."
getkey 6 goto boothd
goto bootcd

boothd:
clear
bcdw C:

bootcd:
clear
script bcds/bcds.ini[/CODE]

最後進入 bcds 目錄內編輯 bcds.ini 檔案
在 bcds.ini 內, 可以把多餘的項目移除...
至於 gif 圖檔, 請使用 GIF98 的格式 256 色
最重要的是所有圖檔的索引調色盤, 都必須一致...
否則圖形將會顯示不正常....





showgif 語法
[CODE]/>help showgif
Show GIF for Boot Scriptor (23.07.2003)
Copyright (c)2003 by [email][email protected][/email]. [url]http://bootcd.narod.ru[/url]
Usage:
showgif filename,X,Y,S,C
X,Y - Position
S - Stop condition:
0 - Show GIF and exit (default)
1 - Show GIF and wait for any key
2..255 - Show GIF and wait for any key, but not longer than 2..255 sec.
C - Clear screen and reload palette:
0 - No
1 - Yes (default)
[/CODE]
bcdw 語法
[CODE]/>help bcdw
Bootable CD Wizard v1.50c - Boot Scriptor module (23.07.2003)
Copyright (c)1999-2003 by [email][email protected][/email]. [url]http://bootcd.narod.ru[/url]
Usage:
bcdw A:|C:|<boot_image_file> [parameters_for_boot_image_file]
Examples:
bcdw A:
bcdw C:
bcdw \bootsect.bin
bcdw \i386\setupldr.bin
bcdw \acronis\acronis.wbt
bcdw \images\floppy_disk_700mb.img
bcdw \images\hard_disk_700mb.img
bcdw \images\dos4bcdw.ima \vc\vc.com
bcdw \images\dos4bcdw.ima \win9x\setup.exe
bcdw /isolinux/isolinux.bin /isolinux/memdisk initrd=/images/rescue.gz
bcdw /isolinux/isolinux.bin /linux/kernel initrd=/linux/rescue.gz[/CODE]

其他語法請參考:
[url]http://www.cs.uic.edu/~mter/bscript/bscript.html[/url]

最後可以使用 cdimage.exe 來作成開機 ISO 檔...
[CODE]cdimage -lTest -t08/23/2001,09:00:00 -bc:\TEST\bscript\loader.bin -h -n -m -o c:\TEST c:\bcdw.iso[/CODE]

lamina 2003-11-13 03:10 AM

我的 bcds.ini 給有興趣之人參考用...
[CODE]
goto start

item_01_go:
bcdw \VOL1.DAT
goto quit

item_02_go:
bcdw \VOL2.DAT
goto quit

item_03_go:
bcdw \image\boot98sc.ima
goto quit

item_04_go:
bcdw \image\bootmec.ima
goto quit

item_05_go:
bcdw \image\boot622.ima
goto quit

hdd_boot:
bcdw C:

quit:
show console
cd /

start:
cd bcds
showgif logonscr.gif,0,0
showgif welcome.gif,300,270,3,0
getkey
showgif desktop.gif,0,0,,0
showgif window.gif,25,25,,0
showgif item_h.gif,40,70,,0
showgif help.gif,80,70,,0
showgif welcome.gif,40,130,,0
showgif whats.gif,60,160,,0

showgif item_n_p.gif,80,220,,0
showgif f1.gif,115,220,,0
showgif item_01.gif,155,220,,0

showgif item_n_p.gif,80,250,,0
showgif f2.gif,115,250,,0
showgif item_02.gif,155,250,,0

showgif item_n_p.gif,80,280,,0
showgif f3.gif,115,280,,0
showgif item_03.gif,155,280,,0

showgif item_n_p.gif,80,310,,0
showgif f4.gif,115,310,,0
showgif item_04.gif,155,310,,0

showgif item_n_p.gif,80,340,,0
showgif f5.gif,115,340,,0
showgif item_05.gif,155,340,,0

showgif item_x_p.gif,40,520,,0
showgif altf4.gif,80,520,,0

showgif item_x_p.gif,310,520,,0
showgif esc.gif,350,520,,0

showgif item_n_a.gif,80,220,30,0
goto timeout

item_01_active:
showgif item_n_a.gif,80,220,1,0
timeout:
getkey
showgif item_n_p.gif,80,220,,0
onkey enter goto item_01_go
onkey up goto item_esc_active
onkey down goto item_02_active
onkey f1 goto item_01_go
onkey f2 goto item_02_go
onkey f3 goto item_03_go
onkey f4 goto item_04_go
onkey f5 goto item_05_go
onkey af4 goto quit
onkey esc goto hdd_boot
goto item_01_active

item_02_active:
showgif item_n_a.gif,80,250,1,0
getkey
showgif item_n_p.gif,80,250,,0
onkey enter goto item_02_go
onkey up goto item_01_active
onkey down goto item_03_active
onkey f1 goto item_01_go
onkey f2 goto item_02_go
onkey f3 goto item_03_go
onkey f4 goto item_04_go
onkey f5 goto item_05_go
onkey af4 goto quit
onkey esc goto hdd_boot
goto item_02_active

item_03_active:
showgif item_n_a.gif,80,280,1,0
getkey
showgif item_n_p.gif,80,280,,0
onkey up goto item_02_active
onkey enter goto item_03_go
onkey down goto item_04_active
onkey f1 goto item_01_go
onkey f2 goto item_02_go
onkey f3 goto item_03_go
onkey f4 goto item_04_go
onkey f5 goto item_05_go
onkey af4 goto quit
onkey esc goto hdd_boot
goto item_03_active

item_04_active:
showgif item_n_a.gif,80,310,1,0
getkey
showgif item_n_p.gif,80,310,,0
onkey up goto item_03_active
onkey enter goto item_04_go
onkey down goto item_05_active
onkey f1 goto item_01_go
onkey f2 goto item_02_go
onkey f3 goto item_03_go
onkey f4 goto item_04_go
onkey f5 goto item_05_go
onkey af4 goto quit
onkey esc goto hdd_boot
goto item_04_active

item_05_active:
showgif item_n_a.gif,80,340,1,0
getkey
showgif item_n_p.gif,80,340,,0
onkey up goto item_04_active
onkey enter goto item_05_go
onkey down goto item_altf4_active
onkey f1 goto item_01_go
onkey f2 goto item_02_go
onkey f3 goto item_03_go
onkey f4 goto item_04_go
onkey f5 goto item_05_go
onkey af4 goto quit
onkey esc goto hdd_boot
goto item_05_active

item_altf4_active:
showgif item_x_a.gif,40,520,1,0
getkey
showgif item_x_p.gif,40,520,,0
onkey up goto item_05_active
onkey enter goto quit
onkey down goto item_esc_active
onkey f1 goto item_01_go
onkey f2 goto item_02_go
onkey f3 goto item_03_go
onkey f4 goto item_04_go
onkey f5 goto item_05_go
onkey af4 goto quit
onkey esc goto hdd_boot
goto item_altf4_active

item_esc_active:
showgif item_x_a.gif,310,520,1,0
getkey
showgif item_x_p.gif,310,520,,0
onkey up goto item_altf4_active
onkey enter goto hff_boot
onkey down goto item_01_active
onkey f1 goto item_01_go
onkey f2 goto item_02_go
onkey f3 goto item_03_go
onkey f4 goto item_04_go
onkey f5 goto item_05_go
onkey af4 goto quit
onkey esc goto hdd_boot
goto item_esc_active
[/CODE]

lamina 2003-11-13 01:02 PM

這是 CD Shell 的版本....

[url]http://www.cdshell.org/[/url]
CD Shell 2.0.10b 下載:http://www.cs.uic.edu/~mter/cdshell/files/cds2010.zip

Bootable CD Script for CD Shell
[url]http://bootcd.narod.ru/[/url]
bcds105csm.zip - v1.05 (23.07.2003) 下載:http://bootcd.narod.ru/bcds105csm.zip

同樣的...兩個檔都解壓縮後...
可以刪除 licenses、tools 目錄和 changes.txt、readme.txt
只留 cdsh 目錄...

進入 cdsh 目錄後,可刪除 graphics、samples 等目錄

cdsh\cdshell.ini 內容...
[CODE]clear
Print "Press any key to boot from CD..."
getkey 6 bcdw C:
clear
script bcds/bcds.ini
end[/CODE]

cdsh\bcds\bcds.ini 內容
[CODE]goto start

item_01_go:
bcdw \VOL1.DAT
goto quit

item_02_go:
bcdw \VOL2.DAT
goto quit

item_03_go:
bcdw \image\boot98sc.ima
goto quit

item_04_go:
bcdw \image\bootmec.ima
goto quit

item_05_go:
bcdw \image\boot622.ima
goto quit

hdd_boot:
bcdw C:

quit:
show console
cd /


start:
cd bcds
showgif logonscr.gif,0,0
showgif welcome.gif,300,270,3,0
getkey
showgif desktop.gif,0,0,,0
showgif window.gif,25,25,,0
showgif item_h.gif,40,70,,0
showgif help.gif,80,70,,0
showgif welcome.gif,40,130,,0
showgif whats.gif,60,160,,0

showgif item_n_p.gif,80,220,,0
showgif f1.gif,115,220,,0
showgif item_01.gif,155,220,,0

showgif item_n_p.gif,80,250,,0
showgif f2.gif,115,250,,0
showgif item_02.gif,155,250,,0

showgif item_n_p.gif,80,280,,0
showgif f3.gif,115,280,,0
showgif item_03.gif,155,280,,0

showgif item_n_p.gif,80,310,,0
showgif f4.gif,115,310,,0
showgif item_04.gif,155,310,,0

showgif item_n_p.gif,80,340,,0
showgif f5.gif,115,340,,0
showgif item_05.gif,155,340,,0

showgif item_x_p.gif,40,520,,0
showgif altf4.gif,80,520,,0

showgif item_x_p.gif,310,520,,0
showgif esc.gif,350,520,,0

showgif item_n_a.gif,80,220,30,0
goto timeout

item_01_active:
showgif item_n_a.gif,80,220,1,0
timeout:
getkey
showgif item_n_p.gif,80,220,,0
if $lastKey == key[enter]; then goto item_01_go
if $lastKey == key[up]; then goto item_esc_active
if $lastKey == key[down]; then goto item_02_active
if $lastKey == key[f1]; then goto item_01_go
if $lastKey == key[f2]; then goto item_02_go
if $lastKey == key[f3]; then goto item_03_go
if $lastKey == key[f4]; then goto item_04_go
if $lastKey == key[f5]; then goto item_05_go
if $lastKey == key[af4]; then goto quit
if $lastKey == key[esc]; then goto hdd_boot
goto item_01_active

item_02_active:
showgif item_n_a.gif,80,250,1,0
getkey
showgif item_n_p.gif,80,250,,0
if $lastKey == key[enter]; then goto item_02_go
if $lastKey == key[up]; then goto item_01_active
if $lastKey == key[down]; then goto item_03_active
if $lastKey == key[f1]; then goto item_01_go
if $lastKey == key[f2]; then goto item_02_go
if $lastKey == key[f3]; then goto item_03_go
if $lastKey == key[f4]; then goto item_04_go
if $lastKey == key[f5]; then goto item_05_go
if $lastKey == key[af4]; then goto quit
if $lastKey == key[esc]; then goto hdd_boot
goto item_02_active

item_03_active:
showgif item_n_a.gif,80,280,1,0
getkey
showgif item_n_p.gif,80,280,,0
if $lastKey == key[up]; then goto item_02_active
if $lastKey == key[enter]; then goto item_03_go
if $lastKey == key[down]; then goto item_04_active
if $lastKey == key[f1]; then goto item_01_go
if $lastKey == key[f2]; then goto item_02_go
if $lastKey == key[f3]; then goto item_03_go
if $lastKey == key[f4]; then goto item_04_go
if $lastKey == key[f5]; then goto item_05_go
if $lastKey == key[af4]; then goto quit
if $lastKey == key[esc]; then goto hdd_boot
goto item_03_active

item_04_active:
showgif item_n_a.gif,80,310,1,0
getkey
showgif item_n_p.gif,80,310,,0
if $lastKey == key[up]; then goto item_03_active
if $lastKey == key[enter]; then goto item_04_go
if $lastKey == key[down]; then goto item_05_active
if $lastKey == key[f1]; then goto item_01_go
if $lastKey == key[f2]; then goto item_02_go
if $lastKey == key[f3]; then goto item_03_go
if $lastKey == key[f4]; then goto item_04_go
if $lastKey == key[f5]; then goto item_05_go
if $lastKey == key[af4]; then goto quit
if $lastKey == key[esc]; then goto hdd_boot
goto item_04_active

item_05_active:
showgif item_n_a.gif,80,340,1,0
getkey
showgif item_n_p.gif,80,340,,0
if $lastKey == key[up]; then goto item_04_active
if $lastKey == key[enter]; then goto item_05_go
if $lastKey == key[down]; then goto item_altf4_active
if $lastKey == key[f1]; then goto item_01_go
if $lastKey == key[f2]; then goto item_02_go
if $lastKey == key[f3]; then goto item_03_go
if $lastKey == key[f4]; then goto item_04_go
if $lastKey == key[f5]; then goto item_05_go
if $lastKey == key[af4]; then goto quit
if $lastKey == key[esc]; then goto hdd_boot
goto item_05_active

item_altf4_active:
showgif item_x_a.gif,40,520,1,0
getkey
showgif item_x_p.gif,40,520,,0
if $lastKey == key[up]; then goto item_05_active
if $lastKey == key[enter]; then goto quit
if $lastKey == key[down]; then goto item_esc_active
if $lastKey == key[f1]; then goto item_01_go
if $lastKey == key[f2]; then goto item_02_go
if $lastKey == key[f3]; then goto item_03_go
if $lastKey == key[f4]; then goto item_04_go
if $lastKey == key[f5]; then goto item_05_go
if $lastKey == key[af4]; then goto quit
if $lastKey == key[esc]; then goto hdd_boot
goto item_altf4_active

item_esc_active:
showgif item_x_a.gif,310,520,1,0
getkey
showgif item_x_p.gif,310,520,,0
if $lastKey == key[up]; then goto item_altf4_active
if $lastKey == key[enter]; then goto hff_boot
if $lastKey == key[down]; then goto item_01_active
if $lastKey == key[f1]; then goto item_01_go
if $lastKey == key[f2]; then goto item_02_go
if $lastKey == key[f3]; then goto item_03_go
if $lastKey == key[f4]; then goto item_04_go
if $lastKey == key[f5]; then goto item_05_go
if $lastKey == key[af4]; then goto quit
if $lastKey == key[esc]; then goto hdd_boot
goto item_esc_active
[/CODE]

最後 bcds 目錄底下的 gif 圖檔...
請依照自己的須要, 使用影像處理軟體修改
記得索引調色盤必需要一致, 而且色數不能超過 256色(8 Bit)

其他 CD Shell 相關資料
[url]http://www.cs.uic.edu/~mter/cdshell/bguide.html[/url]

最後...關於 Boot Scriptor 和 CD Shell
我傾向有興趣之人可以使用 CD Shell
因為 CD Shell 的語法比較強...

Lucky 2003-11-13 05:41 PM

謝謝大大的細心指導
又多學會了一招

lym520 2003-11-15 05:41 PM

請問有辦法將應用程式指定安裝在別的磁碟嗎?
(例:D槽)
感謝^^

lamina 2003-11-15 10:19 PM

[QUOTE][i]最初由 lym520 發表[/i]
[B]請問有辦法將應用程式指定安裝在別的磁碟嗎?
(例:D槽)
感謝^^ [/B][/QUOTE]
一般應用程式預設都是 Program Files的目錄
除非...應程式的安裝程式有可以指定位置的參數或是回應檔...
否則沒有法子...

Aquarius 2003-11-16 12:31 AM

如果你能預先知道你要將應用程式灌哪一槽
或許你可以試試這個改登錄檔這個方法[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"ProgramFilesDir"="C:\\Program Files"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"CommonFilesDir"="C:\\Program Files\\Common Files"

Aquarius 2003-11-16 12:40 AM

另外請教lamina兄幾個笨問題, 像98SE跟me的command mode有什麼不同?
然後有辦法可以抓得到NTFS嗎?

lamina 2003-11-16 05:06 AM

2 個附加檔案
[QUOTE][i]最初由 Aquarius 發表[/i]
[B]另外請教lamina兄幾個笨問題, 像98SE跟me的command mode有什麼不同?
然後有辦法可以抓得到NTFS嗎? [/B][/QUOTE]
一般而言, 應該是 DOS 版本不同
95: Windows 95. [Version 4.00.950]
98: Windows 98 [Version 4.10.1998]
98SE: Windows 98 [Version 4.10.2222]
ME: Windows Millennium [Version 4.90.3000]
NT4: Windows NT Version 4.0
2K: Microsoft Windows 2000 [Version 5.00.2195]
XP: Microsoft Windows XP [Version 5.1.2600]

DOS 底下是捉得到 NTFS 的, 但必須加載一些驅動器...
你可以到新DOS時代或是中國DOS聯盟下載 image 檔
自製超級通用MS-DOS 7.10啟動盤
hk.geocities.com/tiqit2/doswarea.htm

捉下來後, 不管你是用 diskemu ,Boot Scriptor 或是 CD Shell
直接把他和一般的 Win9X DOS Command mode 一樣加載上去就行了

如圖

lym520 2003-11-16 08:52 PM

感謝lamina及Aquarius兄
我會囉

Aquarius 2003-11-16 09:02 PM

[QUOTE][i]最初由 lamina 發表[/i]
[B]一般而言, 應該是 DOS 版本不同
恕刪 [/B][/QUOTE]

之前(N年前) 玩Ghost時也有自己作一份開機選單
不過都是改CONFIG.sys跟AUTOEXEC.bat, 改天來
試試MS-DOS 7.10^^成功再回報

PS: lamina兄電腦程度這麼高, 是不是玩game玩出來的?
因為我哥也很愛玩game, 從98就開始了, 每次都要改
一堆有的沒有的, 改到都成精了:D

lamina 2003-11-17 05:23 AM

[QUOTE][i]最初由 Aquarius 發表[/i]
[B]是不是玩game玩出來的?
[/B][/QUOTE]
我也是從遊戲中慢慢去學習的
從 640k 中去壓榨更多的記憶體空間:D
不過...DOS 久沒碰了, 差不多快忘光了...

LJI 2003-11-17 03:58 PM

多重開機的部分,不太想去動它,除非要作多合一版的Windows。:D
目前正在製作Server版的自動安裝光碟,卡在怎麼自動讓它Load驅動程式。
不然每次都要按F6去載入驅動程式,不符自動安裝的精神。

等到Server版的自動安裝光碟完成後,就可以計劃來做多合一光碟了。:D

DOS的640KB記憶體阿~~我以前最多可以壓榨到開機完還有611KB:D

lamina 2003-11-17 11:41 PM

不知有沒有人在玩 Bart's PE Builder ?
[url]http://www.nu2.nu/pebuilder/[/url]
它可以作出類似 Win PE 免 HD 的啟動開碟...
因為911論壇資料太多, 看得有點頭大....
所以不知道有沒有人作出來完整的中文包含 Internet Explorer, Explorer Shell和開始工作列....

daemon 2003-11-19 05:41 PM

[QUOTE][i]最初由 lamina 發表[/i]
[B]不知有沒有人在玩 Bart's PE Builder ?
[url]http://www.nu2.nu/pebuilder/[/url]
它可以作出類似 Win PE 免 HD 的啟動開碟...
因為911論壇資料太多, 看得有點頭大....
所以不知道有沒有人作出來完整的中文包含 Internet Explorer, Explorer Shell和開始工作列.... [/B][/QUOTE]

要Hack WinPE一定要對Registry和INF有一定的認識.

現在的PE Builder(V3)據Bart的講法是尚未可以產生其他特定的語言.
加上自從V 3開始自訂INF layout(以免又被M$善意勸導),基本上用Winpe_TW(MS出的)版本來研究再Hack的成功性比較大.

aphoneman 2003-11-20 05:58 AM

謝謝各位大大的分享,讓我學到了很多,小弟現在也已經把自動的xp裝好了,不過我有一個想法想問看看大家,winnt.sif中有一段AutoPartition=0,這一段我知道是安裝程序到這地方時,會停下來讓使用者自已決定要裝在那一個分割區,但我每次作的,大部份都是把c刪除,再建一個c:,順便快速格式化,不知道這一部份可不可以做成自動啊?請大家分享一下,謝謝

LJI 2003-11-20 10:44 AM

[QUOTE][i]最初由 aphoneman 發表[/i]
[B]謝謝各位大大的分享,讓我學到了很多,小弟現在也已經把自動的xp裝好了,不過我有一個想法想問看看大家,winnt.sif中有一段AutoPartition=0,這一段我知道是安裝程序到這地方時,會停下來讓使用者自已決定要裝在那一個分割區,但我每次作的,大部份都是把c刪除,再建一個c:,順便快速格式化,不知道這一部份可不可以做成自動啊?請大家分享一下,謝謝 [/B][/QUOTE]

我沒記錯的話,設定為1的話就是以現有的主分割區去進行安裝。
但是似乎不會進行格式化,所以當你安裝好的時候,可能會發現還有之前殘留的資料=.=|||

aphoneman 2003-11-20 03:20 PM

[QUOTE][i]最初由 LJI 發表[/i]
[B]我沒記錯的話,設定為1的話就是以現有的主分割區去進行安裝。
但是似乎不會進行格式化,所以當你安裝好的時候,可能會發現還有之前殘留的資料=.=||| [/B][/QUOTE]

大大,這一段我也知道啊,真是可惜,:corkysm: ,一般來說,電腦都是掛了才會重裝,所以我才會有上述的那一段作業,沒有辦法了,我再找找看有沒有其他相關的文件,看看可不可以解決?

另外,有沒有可能作一片全自動安裝的,裡面有win2000和xp(同時做在一起,好像有點困難說:jump: )
我去研究一下,有心得再跟各位大大分享:circle:

dou0228 2003-11-20 04:41 PM

[QUOTE][i]最初由 aphoneman 發表[/i]
[B]所以我才會有上述的那一段作業,沒有辦法了,我再找找看有沒有其他相關的文件,看看可不可以解決?
[/B][/QUOTE]

問題是你的 C: 卻不一定是 XP, 那假設 2K 的安裝片看到, 不就直接蓋過去了?
這樣做有其風險在, 不如整合 Partition Magic, 做 Format 動作之後再行重開安裝即可.

aphoneman 2003-11-21 08:09 PM

各位大大,請問一下,我把nero放進去application裡面,程式安裝跟中文化都沒有問題,但我匯入註冊的登錄檔,確出現了下面的訊息:
無法匯入指定的登錄檔,指定的檔案不是登錄指令碼,你只能在登錄編輯程式中匯入登錄檔案。
我的nero.reg...
[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info]
"User"="aphoneman"
"Company"="nero"
"Serial7"="1A23-2001-3001-7582-0928-3977"
請問是那裡出錯了呢?^^

琥珀 2003-11-21 08:17 PM

[QUOTE][i]最初由 aphoneman 發表[/i]
[/QUOTE]指令?

foxbrian 2003-11-21 11:20 PM

XviD & DivX Decoder & AC3 Filter 安裝
 
從[color=red] [WINDOWS\system32 ][/color]複製 divxdec.ax 跟 xvid.ax 跟xvid.dll 這幾個檔案到[color=red] [ $OEM$\$$\system32 ][/color]

下載AC3Filter (最新版本為0.70b) 丟到[color=red] [ $OEM$\$$\system32 ][/color]

把下面的參數加到batch檔裡
[code]regsvr32.exe %systemroot%\system32\xvid.ax /s
regsvr32.exe %systemroot%\system32\divxdec.ax /s
ac3filter_0_70b.exe /S /D="%systemdrive%\Program Files\AC3Filter"
[/code]

把下面的參數加到登錄檔裡
[code][HKEY_CURRENT_USER\Software\GNU\XviD]
"Brightness"=dword:00000019
"Deblock_H_Y"=dword:01010101
"Deblock_V_Y"=dword:01010101
"Deblock_H_C"=dword:01010101
"Deblock_V_C"=dword:00010101
"Dering_Y"=dword:00000101
"Dering_C"=dword:00000001
"Horiz_Threshold"=dword:00000014
"Vert_Threshold"=dword:00000028
"ForceColorspace"=dword:00000000

[HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows]
"Auto PP"=dword:00000001
"Disable PP"=dword:00000000
"Dering PP Level"=dword:00000000
"Deblock PP Level"=dword:0000000f
"Warmth Strength"=dword:00000002
"Warmth Filter"=dword:00000001
"Brightness"=dword:00000000
"Contrast"=dword:00000000
"Saturation"=dword:00000000
"AspectRatio_X"=dword:00000000
"AspectRatio_Y"=dword:00000000
"Smooth Playback"=dword:00000001
"Extended Yuv Mode"=dword:00000001
"Double Buffering"=dword:00000000
"Extended Overlay Mode"=dword:00000000
"Disable Logo"=dword:00000001
"ATI Disable"=dword:00000000
[/code]

上面的登錄檔主要是對XviD的Output最佳化以及關閉DivX的logo片頭顯示

原始文章出處:
[url]http://www.msfn.org/board/index.php?showtopic=11145[/url]

foxbrian 2003-11-21 11:22 PM

[QUOTE][i]最初由 aphoneman 發表[/i]
[B]各位大大,請問一下,我把nero放進去application裡面,程式安裝跟中文化都沒有問題,但我匯入註冊的登錄檔,確出現了下面的訊息:
無法匯入指定的登錄檔,指定的檔案不是登錄指令碼,你只能在登錄編輯程式中匯入登錄檔案。
我的nero.reg...
[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info]
"User"="aphoneman"
"Company"="nero"
"Serial7"="xxxx-xxxx-xxxx-xxxx-xxxx-xxxx"
請問是那裡出錯了呢?^^ [/B][/QUOTE]

Serial7改成Serial6,因為nero只出到6.0
同理,若要安裝nero5則改成Serial5

PS.這裡不適合PO出序號喔

aphoneman 2003-11-22 12:45 AM

[QUOTE][i]最初由 foxbrian 發表[/i]
[B]Serial7改成Serial6,因為nero只出到6.0
同理,若要安裝nero5則改成Serial5

PS.這裡不適合PO出序號喔 [/B][/QUOTE]
呵呵,謝謝,我下次會注意的^^


所有時間均為 +8。現在的時間是 04:07 AM



 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。