kluaytord พิมพ์ว่า:กรณีที่ 1.โปรแกรมจะต้องใส่ License Key หลังจากลงเสร็จ
ยกตัวอย่างโปรแกรมนี้ครับ > Downloadพอลงโปรแกรมเสร็จโปรแกรมก็จะรันขึ้นมา...เราต้องการทำให้เป็น Full version
โดยใส่ License Key แบบ Automatic เราจะต้องเขียนสคริป Autoit อย่างไรครับ...
รบกวนเขียนสคริปของ Autoit พร้อมคำอธิบายมาให้ผมดูเพื่อเป็นตัวอย่างหน่อยครับ
ผมไม่มีพื้นฐานเรื่องภาษาคอมฯเลย...ศึกษาเอาเองจากในเว็บทั้งนั้นครับ...
ที่ทำได้เพราะเขามีไกด์ไลน์มาให้....แต่โปรแกรมพวกที่จะต้องใส่ License Key
หรือจะต้องแคร๊ก, Patch ผมต่อยอดสคริปไม่เป็นเลยครับ...
ผมเขียนได้เพียงแค่นี้ครับ...ไปต่อไม่เป็น...Run("Auslogicb.exe")
WinWaitActive("","Welcome")
Send("{ENTER}")
WinWaitActive("","License Agreement")
send("{TAB}{UP}{ENTER}{ENTER}{ENTER}{ENTER}")
WinWaitActive("","Select Additional Task")
Send("{DOWN}{SPACE}{DOWN}{SPACE}{ENTER}")
Sleep(8000)
Send("{TAB}{TAB}{ENTER}")-----------------------------------------------------------------------------------------------กรณีที่ 2.โปรแกรมจะต้อง Crack ให้เป็น Full version โดยการ Replace แคร๊กไฟล์ใน Directory folder ของโปรแกรม
ยกตัวอย่างโปรแกรมนี้ครับ > Downloadรบกวนเขียนสคริปให้ดูเป็นแนวทางหน่อยครับ...-----------------------------------------------------------------------------------------------กรณีที่ 3.โปรแกรมจะต้อง Patch ให้เป็น Full version โดยการใช้ Patch file ที่แนบมาให้ เสร็จแล้วเราจะ Add ไฟล์ภาษาไทยเข้าไปด้วยโดยมีไฟล์ add_Thai
เป็น Self Extract มาให้ เราจะต้องเขียนสคริป Autoit ทำให้เป็น Silent Install อย่างไรครับ รบกวนขอตัวอย่างด้วยครับ...
ยกตัวอย่างโปรแกรมนี้ครับ > Download[You must be registered and logged in to see this image.]
ไฟล์ Patch.exe ผมใช้คำสั่งนี้ง่ายเลย
@echo off
TASKKILL /f /t /im IDMan.exe
start /wait Patch.exe /silent /backup /overwrite
exit
ทำเป็น .bat
ส่วนไฟล์ติดตั้งออโต้ผมใช้ ไฟล์ .inf ตามนี้เลย
[Version]
Signature=$Windows NT$
[DefaultInstall]
RegisterDLLs=Start.Register
[Install]
OptionDesc = %AppName%
Tip = %Beschreibung%
Modes =0,1,2,3
RegisterDlls=IDM.register
ProfileItems=DownloadManager.Shortcut1, DownloadManager.Shortcut2, Uninstaller.Shortcut3
CopyFiles=RootOrdner1.Copy, UnterOrdner1.Copy, UnterOrdner2.Copy, @IDM.inf
[Optional Components]
IDM
[IDM]
OptionDesc = %AppName%
Tip = %Beschreibung%
Modes =0,1,2,3
RegisterDlls =IDM.register
ProfileItems =DownloadManager.Shortcut1, DownloadManager.Shortcut2, Uninstall IDM.Shortcut3
CopyFiles =RootOrdner1.Copy, UnterOrdner1.Copy, UnterOrdner2.Copy
[SourceDisksNames]
1="IDM Files","IDM.cab"
[DestinationDirs]
RootOrdner1.Copy=16422,"Internet Download Manager"
UnterOrdner1.Copy=16422,"Internet Download Manager\Languages"
UnterOrdner2.Copy=16422,"Internet Download Manager\Toolbar"
PNF.File=17
DefaultDestDir=17
[SourceDisksFiles]
defexclist.txt=1
downlWithIDM.dll=1
grabber.chm=1
idman.chm=1
IDMan.exe=1
idmantypeinfo.tlb=1
idmbrbtn.dll=1
idmfsa.dll=1
idmftype.dll=1
IDMGetAll.dll=1
IDMGrHlp.exe=1
IDMIECC.dll=1
idmmbc.dll=1
idmmkb.dll=1
idmmzcc.xpi=1
IDMSetup.log=1
IEExt.htm=1
IEGetAll.htm=1
IEGetVL.htm=1
IEGetVL2.htm=1
IEMonitor.exe=1
license.txt=1
NP_IDM.dll=1
scheduler.chm=1
tips.txt=1
tutor.chm=1
Uninstall.exe=1
idm_ar.lng=1
idm_de.lng=1
idm_es.lng=1
idm_fr.lng=1
idm_it.lng=1
idm_jp.lng=1
idm_nl.lng=1
idm_tr.lng=1
idm_th.lng=1
template.lng=1
tips_ar.txt=1
tips_de.txt=1
tips_es.txt=1
tips_fr.txt=1
tips_it.txt=1
tips_jp.txt=1
tips_nl.txt=1
tips_tr.txt=1
tips_th.txt=1
3d_largeHot_3.bmp=1
3d_large_3.bmp=1
3d_smallHot_3.bmp=1
3d_small_3.bmp=1
3d_style_3.tbi=1
[RootOrdner1.Copy]
defexclist.txt
downlWithIDM.dll
grabber.chm
idman.chm
IDMan.exe
idmantypeinfo.tlb
idmbrbtn.dll
idmfsa.dll
idmftype.dll
IDMGetAll.dll
IDMGrHlp.exe
IDMIECC.dll
idmmbc.dll
idmmkb.dll
idmmzcc.xpi
IDMSetup.log
IEExt.htm
IEGetAll.htm
IEGetVL.htm
IEGetVL2.htm
IEMonitor.exe
license.txt
NP_IDM.dll
scheduler.chm
tips.txt
tutor.chm
Uninstall.exe
[UnterOrdner1.Copy]
idm_ar.lng
idm_de.lng
idm_es.lng
idm_fr.lng
idm_it.lng
idm_jp.lng
idm_nl.lng
idm_tr.lng
idm_th.lng
idm_thisan.lng
template.lng
tips_ar.txt
tips_de.txt
tips_es.txt
tips_fr.txt
tips_it.txt
tips_jp.txt
tips_nl.txt
tips_tr.txt
tips_th.txt
tips_thisan.txt
[UnterOrdner2.Copy]
3d_largeHot_3.bmp
3d_large_3.bmp
3d_smallHot_3.bmp
3d_small_3.bmp
3d_style_3.tbi
[Create.EmptyDirectorys]
[DownloadManager.Shortcut1]
Name =Internet Download Manager,0x00000008,25
CmdLine =16422,"Internet Download Manager","IDMan.exe"
WorkingDir=16422,"Internet Download Manager"
[DownloadManager.Shortcut2]
Name =Internet Download Manager,0x00000008,23
SubDir ="Internet Download Manager"
CmdLine =16422,"Internet Download Manager","IDMan.exe"
WorkingDir=16422,"Internet Download Manager"
[Uninstaller.Shortcut3]
Name =Uninstall IDM,0x00000008,23
SubDir ="Internet Download Manager"
CmdLine =16422,"Internet Download Manager","Uninstall.exe"
WorkingDir=16422,"Internet Download Manager"
[Start.Register]
11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %1%\IDM.inf,Install"
[IDM.register]
16422,Internet Download Manager,downlWithIDM.dll,1
16422,Internet Download Manager,idmbrbtn.dll,1
16422,Internet Download Manager,idmfsa.dll,1
16422,Internet Download Manager,idmftype.dll,1
16422,Internet Download Manager,IDMGetAll.dll,1
16422,Internet Download Manager,IDMIECC.dll,1
16422,Internet Download Manager,idmmbc.dll,1
16422,Internet Download Manager,idmmkb.dll,1
16422,Internet Download Manager,NP_IDM.dll,1
[Strings]
AppName = "IDM"
Beschreibung = "silent"
ราละเอียดไฟล์ที่ใช้ตามนี้
[You must be registered and logged in to see this image.]