首页
社区
课程
招聘
求助,请各位帮个忙,关于NSIS脚本的
发表于: 2010-1-12 14:17 6705

求助,请各位帮个忙,关于NSIS脚本的

2010-1-12 14:17
6705
Push $R0
Push $R1
SetFlag 2 74
ReadRegStr 10 2147483650 76 106 0
IfFlag 0 18 2 0
ReadRegStr 10 2147483650 121 163 0
StrCpy $R1 "$R0" 1
StrCmp  "$R1" "4" 0 36 0
StrCpy $R1 "$R0" 3
StrCmp  "$R1" "4.0" 12 0 0
StrCmp  "$R1" "4.9" 16 14 0
StrCpy $R0 "95"
Goto 37
StrCpy $R0 "98"
Goto 37
StrCpy $R0 "ME"
Goto 37
StrCpy $R1 "$R0" 1
StrCmp  "$R1" "3" 26 0 0
StrCmp  "$R1" "4" 26 0 0
StrCpy $R1 "$R0" 3
StrCmp  "$R1" "5.0" 28 0 0
StrCmp  "$R1" "5.1" 30 0 0
StrCmp  "$R1" "5.2" 32 0 0
StrCmp  "$R1" "6.0" 34 36 0
StrCpy $R0 "NT $R0" 6
Goto 37
StrCpy $R0 "2000"
Goto 37
StrCpy $R0 "XP"
Goto 37
StrCpy $R0 "2003"
Goto 37
StrCpy $R0 "Vista"
Goto 37
StrCpy $R0 ""
Pop $R1
Push $R0
Exch
Pop $R0
Return
Pop $R0
Pop $R1
Pop $R2
Call 1
Pop $R3
StrCmp  "$R3" "2000" 52 0 0
StrCmp  "$R3" "XP" 52 0 0
StrCmp  "$R3" "2003" 52 0 0
UpdateSatusText Windows $R3 doesn't support automatic driver updates. 0
Goto 75
Call 577
File $PLUGINSDIR\System.dll
UpdateSatusText  0
Push newdev::UpdateDriverForPlugAndPlayDevices(i, t, t, i, *i) i
RegisterDLL $PLUGINSDIR\System.dll Get 0
Pop $0
StrCmp  "$0" "error" 74 0 0
UpdateSatusText Updating the driver... 0
Push $INSTDIR
Call 577
File $PLUGINSDIR\System.dll
UpdateSatusText  0
Push newdev::UpdateDriverForPlugAndPlayDevices(i, t, t, i, *i) i?e (0, R0, R1, 0, 0) .r0
RegisterDLL $PLUGINSDIR\System.dll Call 0
Pop $1
Pop $INSTDIR
IntCmp 395 177 93 0 0 0
IntCmp 521 525 72 0 0 0
UpdateSatusText Driver update has failed. ($R3:$0,$1) 0
Goto 75
UpdateSatusText The device is not plugged in, cannot update the driver. 0
Goto 75
UpdateSatusText Your Windows $R3 doesn't support driver updates. 0
Call 577
File $PLUGINSDIR\System.dll
UpdateSatusText  0
Push setupapi::SetupCopyOEMInf(t, t, i, i, i, i, *i, t) i
RegisterDLL $PLUGINSDIR\System.dll Get 0
Pop $0
StrCmp  "$0" "error" 92 0 0
UpdateSatusText Installing the driver... 0
Call 577
File $PLUGINSDIR\System.dll
UpdateSatusText  0
Push setupapi::SetupCopyOEMInf(t, t, i, i, i, i, *i, t) i?e (R1, R2, 1, 0, 0, 0, 0, 0) .r0
RegisterDLL $PLUGINSDIR\System.dll Call 0
Pop $1
IntCmp 395 177 93 0 0 0
UpdateSatusText Driver pre-installation has failed with error #$1 ($R3) 0
Goto 93
UpdateSatusText Your Windows $R3 doesn't support driver pre-installation. 0
Return
Push $R0
SetFlag 2 74
ReadRegStr 10 2147483650 960 1015 0
IfFlag 98 99 2 0
StrCpy $R0 "KO"
Push $R0
Exch
Pop $R0
Return
ReadRegStr 10 2147483650 1037 1098 0
StrCmp  "$R0" "" 109 0 0
MessageBox 49 1114 1 107 0
Abort
SetFlag 2 74
Execute 1226 0 0
Return
SetOutPath $INSTDIR
UpdateSatusText Checking for USB cable drivers... 0
Call 94
Pop $R0
StrCmp  "$R0" "KO" 0 121 0
UpdateSatusText Cable Driver not installed 0
File Nokia_Connectivity_Cable_Driver_rel_7_0_2_0_eng.msi
UpdateSatusText Installing USB cable driver please wait... 0
Execute 1415 -1 1
Delete $INSTDIR\Nokia_Connectivity_Cable_Driver_rel_7_0_2_0_eng.msi
Goto 128
UpdateSatusText Found cable driver version $R0 0
StrCmp  "$R0" "7.0.2.0" 128 0 0
MessageBox 36 1594 7 128 0
File Nokia_Connectivity_Cable_Driver_rel_7_0_2_0_eng.msi
UpdateSatusText Installing USB cable driver please wait... 0
Execute 1415 -1 1
Delete $INSTDIR\Nokia_Connectivity_Cable_Driver_rel_7_0_2_0_eng.msi
File JAF.exe
File JAFCOMEMULATOR.exe
File JAFLogger.exe
File PKEYAccess.exe
File UFS.dll
File flashid.ini
File jaf.ini
File jaf4.ico
File jaf_nok4models.ini
File jafarabic.lng
File jafbox.dll
File jafchinese.lng
File jafdutch.lng
File jafenglish.lng
File jafgerman.lng
File jafhebrew.lng
File jafmagyar.lng
File jafpolski.lng
File jafportugues.lng
File jafromana.lng
File jafswedish.lng
File license.txt
File phoneinfo.ini
File providerlist.ini
SetOutPath $INSTDIR\DCT3EEPROM
SetOutPath $INSTDIR\DCT3EEPROM
File 2100_eeprom.fls
File 3310 virgin eeprom 003D0000.fls
File 3315 virgin eeprom 003D0000.fls
File 3330 virgin eeprom 005F0000.fls
File 3350 virgin eeprom 005F0000.fls
File 3390 virgin eeprom 003D0000.fls
File 3410 virgin eeprom 00570000.fls
File 5210 virgin eeprom 00580000.fls
File 5510 virgin eeprom 005E0000.fls
File 6210 virgin eeprom 005FA000.fls
File 6250 virgin eeprom 005FA000.fls
File 7110 virgin eeprom 005FA000.fls
File 8210 virgin eeprom 003D0000.fls
File 8250 virgin eeprom 003D0000.fls
File 8290 virgin eeprom 003D0000.fls
File 8850 virgin eeprom 003D0000.fls
File ee2100-5.49.fls
File eeprom2100.fls
SetOutPath $INSTDIR\Flash
SetOutPath $INSTDIR\Flash
File ADLREVA00.adl
File ADLREVC00.adl
File ADLTIEC01-0542-1.adl
File ADLTIEC01-0542-2.adl
File ADLTIEC01-0542-8.adl
File ADLTIEC01-0542-9.adl
File ADLTIEC01-0543-1.adl
File ADLTIEC11-0542-3.adl
File ADLTIEC11-0542-4.adl
File ADLTIEC11-0542-5.adl
File ADLTIEC11-0542-6.adl
File ADLTIEC11-0542-7.adl
File OMAP1510_SAMSUNGSEIJA_7.adl
File OMAP1510_TOSHIBAMDOCG3_7.adl
File RAP3Gv2_2nd.fg
File RAP3Gv2_2nd_fps8.fg
File RAP3Gv3_2nd.fg
File RAP3Gv3_2nd_fps8.fg
File RAP3Gv3_algo.fg
File RAP3Gv3_algo_fps8.fg
File RAP3Gv3_algo_xsr15.fg
File RAP3Gv4_2nd.fg
File RAP3Gv4_algo_xsr16.fg
File RAPIDOv100_2nd.fg
File RAPIDOv102_2nd.fg
File RAPIDOv11_2nd.fg
File RAPIDOv11_algo.fg
File RAPIDOv1_2nd.fg
File RAPIDOv1_algo.fg
File RAPUv11_2nd.fg
File RAPUv11_algo_xsr16.fg
File RAPUv1_2nd.fg
File RAPUv1_algo.fg
File RAPUv1_algo_xsr16.fg
File algerase.fia
File fps8upd.ini
File fpsxupd.ini
File fuinst.dll
File h3_sam_nand_format.fg
File h3_sam_nand_gbbm.fg
File h3_sam_nand_hdd.fg
File h3_sam_nand_xsr.fg
File h3_sam_nand_xsr_small.fg
File h3_xsr15_flash_alg.fg
File helen3_2nd.fg
File helen3_2nd_hdd.fg
File i28f640.fia
File lindabt2.fia
File loader_TIKUEDGE_INTEL_1.adl
File loader_TIKUEDGE_SAMSUNG_1.adl
File loader_TIKU_INTEL_2.adl
File loader_TIKU_SAMSUNG_2.adl
File m_amd.fia
File m_intel.fia
File m_st_i.fia
File nomadik8815A1_2nd.fg
File nomadik8815_2nd.fg
File nomadik8815_A1.fg
File nomadik8815_alg.fg
File nomadik8815_sam_nand.fg
File nomadik_sam_nand.fg
File omap2420_m1_2nd.fg
File s2_amd_b.fia
File s2_int_b.fia
File s3_amd_b.fia
File s3_int_b.fia
File t2_2nd.fia
File t2_amd.fia
File t2_amd_b.fia
File t2_cbusb.fia
File t2_int_b.fia
File t2_intel.fia
File t2_st_i.fia
File t2_st_ib.fia
File te_2nd.fia
File te_amd.fia
File te_amd_b.fia
File te_cbusb.fia
File te_e_2nd.fia
File te_essr.fia
File te_int_b.fia
File te_intel.fia
File te_mucsm.fia
File te_oncsm.fia
File te_st_i.fia
File te_st_ib.fia
File te_uem.fia
File teflon_sam_nand_xsr151_m1.fg
File teflon_sam_nand_xsr_m1.fg
File u3_2nd.fia
File u3_amd.fia
File u3_intel.fia
File u3_st_i.fia
File u_2nd.fia
File u_amd.fia
File u_amd_b.fia
File u_cbusb.fia
File u_int_b.fia
File u_intel.fia
File u_st.fia
File u_st_i.fia
File u_uem.fia
File uh_amd.fia
File uh_intel.fia
File uh_st_i.fia
File version.fia
File w2_2nd.fia
File w2_amd.fia
File w2_amd_b.fia
File w2_cbusb.fia
File w2_int_b.fia
File w2_intel.fia
File w2_st_i.fia
File w2_st_ib.fia
File w2_uem.fia
File w3_2nd.fia
File w3_amd.fia
File w3_amd_b.fia
File w3_cbusb.fia
File w3_int_b.fia
File w3_intel.fia
File w3_st_i.fia
File w3_st_ib.fia
SetOutPath $INSTDIR\Flash\UFS
SetOutPath $INSTDIR\Flash\UFS
File RAP3Gv2_2nd.fg
File RAP3Gv2_2nd_fps8.fg
File RAP3Gv3_2nd.fg
File RAP3Gv3_2nd_fps8.fg
File RAP3Gv3_algo_fps8.fg
File RAPGSMv10_2nd.fg
File fps8upd.ini
File h3_sam_nand_gbbm.fg
File h3_sam_nand_xsr_fps8.fg
File h3_sam_nand_xsr_small.fg
File helen3_2nd.fg
File omap2420_m1_2nd.fg
File teflon_sam_nand_xsr_m1.fg
SetOutPath $INSTDIR\Flash\SILO
SetOutPath $INSTDIR\Flash\SILO
File OMAP2420_2nd.fg
File OMAP2420_XSR15_alg.fg
File RAPIDOv11_2nd.fg
File RAPIDOv11_XSR15_alg.fg
File RAPIDOv11_algo.fg
File RAPIDOv1_algo.fg
File RAPUv11_2nd.fg
File RAPUv11_XSR16_alg.fg
File RAPUv11_algo_xsr16.fg
File RAPUv1_algo.fg
File RAPUv1_algo_xsr16.fg
File STn8815_2nd.fg
File STn8815_STNFMS_alg.fg
File fpsxupd.ini
SetOutPath $INSTDIR\Flash3
SetOutPath $INSTDIR\Flash3
File AW49BV16.TIA
File DCT3BT2.TIA
File I28F008.TIA
File I28F160.TIA
File IW28F008.TIA
File IW28F016.TIA
File Lindabt2.fia
File M28W320C.TIA
File Posflashtia.ini
File W29LV800.TIA
File W49BV819.TIA
File WD1BT2.TIA
File dct3boot.cfg
File dev_list.fia
File i28f640.fia
SetOutPath $INSTDIR\FlashUSB
SetOutPath $INSTDIR\FlashUSB
File adsp_usb_flash_appl.bin
File echusb.inf
File flashusb.ini
File hhk_usb_cleanup.exe
File hhkusb.inf
File hhkusb.sys
File hhkusb98.sys
File i_28f160b3_ac.bin
File st_m28w160bt_ac.bin
File st_m28w160ct_ac.bin
SetOutPath $INSTDIR\FunFiles
SetOutPath $INSTDIR\JAF COM Driver
SetOutPath $INSTDIR\JAF COM Driver
File VSPort.dll
File vsb.inf
File vsb.sys
File vsbsetup.exe
File vserial.inf
File vserial.sys
UpdateSatusText Installing JAF COM Emulator driver... 0
Execute 5203 -1 1
RegisterDLL $INSTDIR\JAF COM Driver\VSPort.DLL DllRegisterServer 4294967258
SetOutPath $INSTDIR\JAF Documents
SetOutPath $INSTDIR\JAF Documents
File ADSP flashing.pdf
File Basic installation.pdf
SetOutPath $INSTDIR\USB CCID Driver
SetOutPath $INSTDIR\USB CCID Driver
File usbccid.inf
File usbccid.sys
UpdateSatusText Installing/Updating USB CCID Driver... 0
Push $INSTDIR\USB CCID Driver
Push $INSTDIR\USB CCID Driver\usbccid.inf
Push
Call 42
SetOutPath $INSTDIR\JAF USB Driver
SetOutPath $INSTDIR\JAF USB Driver
File FTBUSUI.dll
File FTD2XX.dll
File FTDIBUS.INF
File FTDIBUS.sys
File FTDIPORT.INF
File FTDIUN2K.INI
File FTDIUNIN.exe
File FTLang.dll
File TempUpdate.txt
File ftcserco.dll
File ftdibus.cat
File ftdiport.cat
File ftser2k.sys
File ftserui2.dll
UpdateSatusText Installing/Updating JAF box driver... 0
Push $INSTDIR\JAF USB Driver
Push $INSTDIR\JAF USB Driver\FTDIBUS.INF
Push USB\VID_9999&PID_0001
Call 42
SetOutPath $INSTDIR\JAF USB Driver
SetOutPath $INSTDIR\JAF USB Driver
File FTBUSUI.dll
File FTD2XX.dll
File FTDIBUS.INF
File FTDIBUS.sys
File FTDIPORT.INF
File FTDIUN2K.INI
File FTDIUNIN.exe
File FTLang.dll
File TempUpdate.txt
File ftcserco.dll
File ftdibus.cat
File ftdiport.cat
File ftser2k.sys
File ftserui2.dll
UpdateSatusText Installing/Updating JAF COM box driver... 0
Push $INSTDIR\JAF USB Driver
Push $INSTDIR\JAF USB Driver\FTDIPORT.INF
Push USB\VID_9999&PID_0001
Call 42
SetOutPath $INSTDIR\pkey driver
SetOutPath $INSTDIR\pkey driver
File Driver_setup_English.exe
File readme.txt
SetOutPath $INSTDIR\pm
SetOutPath $INSTDIR\pm
File 1100-RH18.pm
File 1100-RH36.pm
File 1100-RH38.pm
File 1220.pm
File 1221.pm
File 2220.pm
File 2300 RM4.pm
File 2300 RM5.pm
File 2300-rm5.pm
File 2650.pm
File 3100.pm
File 3108.pm
File 3120.pm
File 3200.pm
File 3200b.pm
File 3220.pm
File 3300.pm
File 3320.pm
File 3360_3320 .pm
File 3510.pm
File 3510i.pm
File 3520.pm
File 3595.pm
File 3650.pm
File 3660.pm
File 5100.pm
File 6100.pm
File 6108.pm
File 6200.pm
File 6220.pm
File 6230.pm
File 6260.pm
File 6310.pm
File 6310i.pm
File 6510.pm
File 6560.pm
File 6600.pm
File 6610.pm
File 6610i.pm
File 6650.pm
File 6670.pm
File 6800.pm
File 6820.pm
File 7200.pm
File 7210.pm
File 7250.pm
File 7250i.pm
File 7260.pm
File 7600.pm
File 7610.pm
File 7650.pm
File 8310.pm
File 8910.pm
File 8910i.pm
File N-GAGE.pm
File N-Gage QD.pm
SetOutPath $INSTDIR\ProgData\asic2
SetOutPath $INSTDIR\ProgData\asic5
SetOutPath $INSTDIR\ProgData\asic2
File 350604101457724.rpl
File 350604105057181.rpl
File 350604108593158.rpl
File 350604300998833.rpl
File 350604400464140.rpl
File 350604406773759.rpl
File 350697100042653.rpl
File 350697101295888.rpl
File 350697101691896.rpl
File 350697301141551.rpl
File 350697302707921.rpl
File 350697305764986.rpl
File 350697402429939.rpl
File 350697402677164.rpl
File 350697403229809.rpl
File 350697404039124.rpl
File 350697404161118.rpl
File 350700100373894.rpl
File 350700104873014.rpl
File 350700105577549.rpl
File 350700301366267.rpl
File 350777105656945.rpl
File 350780201471672.rpl
File 350780201472324.rpl
File 350780201476556.rpl
File 350780201476887.rpl
File 350780201478453.rpl
File 350780201479931.rpl
File 350841208326507.rpl
File 350843300673596.rpl
File 350843400057922.rpl
File 350843400251426.rpl
File 350843800846734.rpl
File 350844105324484.rpl
File 350893100206196.rpl
File 350893100334238.rpl
File 350893402304897.rpl
File 350894107757470.rpl
File 350894108864291.rpl
File 350894301556488.rpl
File 350894401819893.rpl
File 350894402105284.rpl
File 350984203982740.rpl
File 350986208933347.rpl
File 350991203722711.rpl
File 350991300081003.rpl
File 350991302870437.rpl
File 350998400206976.rpl
File 350998400335114.rpl
File 350998807492096.rpl
File 351104107523693.rpl
File 351104107552437.rpl
File 351110204471827.rpl
File 351346800874333.rpl
File 351451208738260.rpl
File 351538001799554.rpl
File 351538005821941.rpl
SetOutPath $INSTDIR\ProgData\asic5
File 350774100145578.rpl
File 350774103917650.rpl
File 350774105385898.rpl
File 350774105427047.rpl
File 350774105509380.rpl
SetOutPath $INSTDIR
WriteReg 2147483649 7649 7664 7672 1
WriteReg 2147483649 7649 7677 7686 1
WriteReg 2147483649 7649 7705 177 4
WriteReg 2147483649 7715 7741 7754 1
WriteReg 2147483649 7715 7767 7776 1
WriteReg 2147483649 7788 7814 7823 1
WriteReg 2147483649 7788 7834 7843 1
WriteReg 2147483649 7788 7741 7857 1
WriteReg 2147483649 7788 7885 7899 1
WriteReg 2147483649 7788 7913 7928 1
SetOutPath $COMMONFILES\ODEON\JAF
CreateShortCut  "$COMMONFILES\ODEON\JAF\Launch JAF.lnk "  "$INSTDIR\jaf.exe " 0 7997 0
CreateShortCut  "$COMMONFILES\ODEON\JAF\Launch JAF COM Emulator.lnk "  "$INSTDIR\jafcomemulator.exe " 0 8052 0
CreateShortCut  "$COMMONFILES\ODEON\JAF\Launch JAF Logger.lnk "  "$INSTDIR\jaflogger.exe " 0 8111 0
CreateShortCut  "$COMMONFILES\ODEON\JAF\Uninstall.lnk "  "$INSTDIR\uninstall.exe " 0 1226 0
CreateShortCut  "$COMMON_DESKTOPDIRECTORY\Launch JAF.lnk "  "$INSTDIR\jaf.exe " 0 7997 0
CreateShortCut  "$COMMON_DESKTOPDIRECTORY\Launch JAF COM Emulator.lnk "  "$INSTDIR\jafcomemulator.exe " 0 8052 0
CreateShortCut  "$COMMON_DESKTOPDIRECTORY\Launch JAF Logger.lnk "  "$INSTDIR\jaflogger.exe " 0 8111 0
WriteReg 2147483650 1037 8234 8246 1
WriteReg 2147483650 1037 1098 8256 1
WriteReg 2147483650 1037 8276 177 4
WriteReg 2147483650 1037 8285 177 4
WriteUninstaller uninstall.exe 18203449 756
Return
UpdateSatusText  16
StrCmp  "$PLUGINSDIR" "" 0 587 0
Push $0
SetFlag 2 0
GetTempFileName  $TEMP
Delete 8 $0
SetOutPath $0
IfFlag 588 0 2 0
StrCpy $PLUGINSDIR "$0"
Pop $0
Return
MessageBox 2097168 8302 0 0 0
Quit
Return

各位请帮忙看看,怎么和我看的教程里面不一样呢?还不能运行,写注册表呢后面是一堆数字,看不懂了,大部分都不懂,请各位大大帮我个忙啊!谢谢了。。

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 245
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
你这个是 解压出来的,不是原本的 代码,自然不行了

熟悉了之后,可以大致看出别人安装包的流程,呵呵
2010-1-20 16:12
0
游客
登录 | 注册 方可回帖
返回
//