锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产日韩欧美中文,国产日产欧产精品推荐色,欧美在线观看天堂一区二区三区
http://m.shnenglu.com/huangyi5209/category/16425.htmlzh-cnTue, 07 Jun 2011 11:01:06 GMTTue, 07 Jun 2011 11:01:06 GMT60- NSIS 杞歡鍜宮ysql鑴氭湰瀵煎叆鐨勫畨瑁呭寘錛堥殣钘忓脊鍑虹獥鍙o級http://m.shnenglu.com/huangyi5209/articles/144656.htmlhuangyi5209huangyi5209Wed, 20 Apr 2011 06:23:00 GMThttp://m.shnenglu.com/huangyi5209/articles/144656.htmlhttp://m.shnenglu.com/huangyi5209/comments/144656.htmlhttp://m.shnenglu.com/huangyi5209/articles/144656.html#Feedback0http://m.shnenglu.com/huangyi5209/comments/commentRss/144656.htmlhttp://m.shnenglu.com/huangyi5209/services/trackbacks/144656.html
#
Name "qdzyServer"

OutFile "qdzyServer.exe"

CRCCheck on
XPStyle on

SetCompressor lzma

!include MUI.nsh
!include InstallOptions.nsh

#!insertmacro MUI_PAGE_WELCOME

Page custom GetInfos "" ": register page"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "SimpChinese"
#!insertmacro MUI_PAGE_FINISH

InstallDir $PROGRAMFILES\i3NVRSystem

RequestExecutionLevel admin

Icon "${NSISDIR}\Contrib\Graphics\Icons\icmsMonitorUI.ico"
UninstallIcon "${NSISDIR}\Contrib\Graphics\Icons\arrow-uninstall.ico"

; Pages


/**//* Page directory
Page instfiles */

Var login
Var password
Var db
Var createdb
Var errorsrc
Var license

Function .onInit
InitPluginsDir
!insertmacro INSTALLOPTIONS_EXTRACT "config.ini"
FunctionEnd
#SilentInstall silent

Section

SectionIn RO
ReadINIStr $license "$PLUGINSDIR\config.ini" "Field 2" "State"
#StrCmp $2 1 0 endinst
WriteRegStr HKLM SOFTWARE\\SOBEY\\ICMS\\CONFIG "License" $license
#StrCpy $errorsrc "license error"
#Goto abortinst
SetOutPath $INSTDIR
File "binr\sblicense.lic"
File "binr\AlarmPlugConfigruation.xml"
File "binr\AudioEncodePlugConfigruation.xml"
File "binr\iSwitchConfigruation.xml"
File "binr\NetworkWatchConfig.xml"
File "binr\PlugConfigruation.xml"
File "binr\iswitchconfig.ini"
File "binr\NVRSystmSet.ini"
File "binr\sbtfsdk.ini"
File "binr\iNVR-iCMS.sql"
File "binr\restorMysql.bat"
File "binr\iCMSAlarm.exe"
File "binr\icmsmc.exe"
File "binr\iSwitchServiceApp.exe"
File "binr\i3NVRSystem.exe"
File "binr\iCMSADOperator.dll"
File "binr\iCMSPCommonTools.dll"
File "binr\IcmspDBOperate.dll"
File "binr\IcmsPIocpSocket.dll"
File "binr\iCMSPLoginInfo.dll"
File "binr\iCMSPSMTPEmail.dll"
File "binr\IcmsPUtility.dll"
File "binr\IcmsPXmlParser.dll"
File "binr\iCMSSAlarmSender.dll"
File "binr\icmsscmdreceiver.dll"
File "binr\icmsscmdsender.dll"
File "binr\icmsscommonfifo.dll"
File "binr\icmssdevcheckmodule.dll"
File "binr\icmssdevcontainer.dll"
File "binr\iCMSSDevFileRetrieval.dll"
File "binr\iCMSSDeviceDetect.dll"
File "binr\icmssdeviceplugsnt.dll"
File "binr\iCMSSDeviceSNCPlus.dll"
File "binr\icmssdevplaybackunit.dll"
File "binr\icmssfilegeneralmodule.dll"
File "binr\icmssgenfilerecorder.dll"
File "binr\iCMSSHttpRequest.dll"
File "binr\icmssmediaplaybackman.dll"
File "binr\icmssmediaswitchcenter.dll"
File "binr\iCMSSMS.dll"
File "binr\icmssplaybackunit.dll"
File "binr\icmssrealstreamman.dll"
File "binr\icmssrealstreamservo.dll"
File "binr\icmssrtpmodule.dll"
File "binr\icmsssonydevpacket.dll"
File "binr\iCMSSSoundForward.dll"
File "binr\icmssstorageman.dll"
File "binr\iCMSSTaskMan.dll"
File "binr\icmsstcpmodule.dll"
File "binr\iCMSSWEDEVCCTVIOBox.dll"
File "binr\sbcommontoolsr.dll"
File "binr\sncatdcv.dll"
File "binr\snccore.dll"
File "binr\SonyDiscoverPlug.dll"
File "binr\icmssuploadman.dll"
File "binr\icmssuploadunit.dll"
File /r binr\MySql
; Write the License into the registry
#WriteRegStr HKLM SOFTWARE\\SOBEY\\ICMS\\CONFIG "License" "ZISECAWXWHHOXRTTI"
WriteRegStr HKLM SOFTWARE\\SOBEY\\ICMS\\CONFIG "i3NVRType" "i3NVR-SW09"

CreateShortCut "$DESKTOP\i3NVRSystem.lnk" "$INSTDIR\i3NVRSystem.exe"\
"" "" 2 SW_SHOWNORMAL \
"" "浣嶇疆:$INSTDIR"

WriteUninstaller "uninstall.exe"
CreateShortCut "$INSTDIR\uninstall.lnk" "$INSTDIR\uninstall.exe"\
"" "" 2 SW_SHOWNORMAL \
"" "浣嶇疆:$INSTDIR"

; import mysql script

/**//* ReadINIStr $login "$PLUGINSDIR\config.ini" "MyQL Setting" "Login"
ReadINIStr $password "$PLUGINSDIR\config.ini" "MyQL Setting" "Password"
ReadINIStr $db "$PLUGINSDIR\config.ini" "MyQL Setting" "DB"
ReadINIStr $createdb "$PLUGINSDIR\config.ini" "MyQL Setting" "Createdb"
ExecWait '"$INSTDIR\mysql\mysql" --user=$login --password=$password --execute="SHOW DATABASES;"' $0
StrCmp $0 1 0 +4
StrCpy $errorsrc "Wrong login or password"
Goto abortinst
DetailPrint "Running import"
StrCmp $createdb 1 createdbs importdbs
createdbs:
DetailPrint "Creating database"
ExecWait '"$INSTDIR\mysql\mysql" --user=$login --password=$password --execute="CREATE DATABASE $db"' $1
StrCmp $1 1 0 +4
StrCpy $errorsrc "Unable to create database"
Goto abortinst
importdbs:
DetailPrint "SQL file import"
ExecWait '"$INSTDIR\mysql\mysql" --user=$login --password=$password --execute="source $INSTDIR\iNVR-iCMS.sql"' $2
StrCmp $2 1 0 endinst
StrCpy $errorsrc "File import error"
Goto abortinst */

Execcmd::exec 'D:\restorMysql.bat "$INSTDIR"'
Pop $0
Execcmd::wait $0
#MessageBox MB_OK "Exit code $0"
StrCmp $0 1 0 endinst
StrCpy $errorsrc "File import error"
Goto abortinst
abortinst:
DetailPrint " "
DetailPrint "$\n An error occured ! $\n"
DetailPrint " $errorsrc "
DetailPrint " "
endinst:

SectionEnd

Section "Uninstall"
RMDir /r $INSTDIR
Delete "$DESKTOP\i3NVRSystem.lnk"
; Remove registry keys
DeleteRegKey HKLM "SOFTWARE\\SOBEY\\ICMS\\CONFIG"
SectionEnd

Function GetInfos
!insertmacro MUI_HEADER_TEXT "register informations" "register informations "
!insertmacro INSTALLOPTIONS_DISPLAY "config.ini"
FunctionEnd

]]> - NSIS 璋冪敤winAPI 鑾峰彇紜洏搴忓垪鍙?/title>http://m.shnenglu.com/huangyi5209/articles/143171.htmlhuangyi5209huangyi5209Thu, 31 Mar 2011 21:33:00 GMThttp://m.shnenglu.com/huangyi5209/articles/143171.htmlhttp://m.shnenglu.com/huangyi5209/comments/143171.htmlhttp://m.shnenglu.com/huangyi5209/articles/143171.html#Feedback0http://m.shnenglu.com/huangyi5209/comments/commentRss/143171.htmlhttp://m.shnenglu.com/huangyi5209/services/trackbacks/143171.html
Name "test"

OutFile "test.exe"



!include MUI.nsh



Function GetDiskVolumeSerialNumber

!define GetVolumeInformation "Kernel32::GetVolumeInformation(t,t,i,*i,*i,*i,t,i) i"

System::Call '${GetVolumeInformation}("$0",,${NSIS_MAX_STRLEN},.r0,,,,${NSIS_MAX_STRLEN})'

FunctionEnd



Section

StrCpy $0 "C:\"

Call GetDiskVolumeSerialNumber

IntFmt $0 "%08X" $0

MessageBox MB_OK "$0"

SectionEnd




]]>
91精品国产高清久久久久久国产嫩草|
无码精品久久久天天影视|
久久人人妻人人爽人人爽|
精品国产91久久久久久久a|
精品久久久久久国产三级|
一本大道久久东京热无码AV|
99国产欧美久久久精品蜜芽|
开心久久婷婷综合中文字幕|
久久久精品国产sm调教网站
|
欧美午夜A∨大片久久|
久久66热人妻偷产精品9|
久久人与动人物a级毛片|
久久高潮一级毛片免费|
无码AV中文字幕久久专区|
久久久久免费视频|
精品久久久无码中文字幕|
久久亚洲AV成人出白浆无码国产
|
欧美日韩精品久久久久|
久久99精品国产麻豆|
久久久黄色大片|
久久久久国产精品三级网|
91精品国产9l久久久久|
久久99久久99精品免视看动漫|
久久天天躁狠狠躁夜夜2020|
免费精品99久久国产综合精品|
丰满少妇人妻久久久久久|
久久久亚洲欧洲日产国码是AV|
亚洲第一永久AV网站久久精品男人的天堂AV
|
久久久久久无码Av成人影院
|
日韩人妻无码精品久久久不卡|
久久综合久久综合亚洲|
久久这里只有精品视频99|
欧美久久久久久精选9999|
99久久人人爽亚洲精品美女|
精品久久香蕉国产线看观看亚洲
|
国产午夜精品理论片久久
|
狠狠色丁香婷婷久久综合|
无码人妻精品一区二区三区久久|
久久福利资源国产精品999|
久久久久久久久66精品片|
亚洲国产精品无码久久一线
|