锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品无码一区二区三区,91精品观看91久久久久久,久久精品国产一区http://www.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://www.shnenglu.com/huangyi5209/articles/144656.htmlhuangyi5209huangyi5209Wed, 20 Apr 2011 06:23:00 GMThttp://www.shnenglu.com/huangyi5209/articles/144656.htmlhttp://www.shnenglu.com/huangyi5209/comments/144656.htmlhttp://www.shnenglu.com/huangyi5209/articles/144656.html#Feedback0http://www.shnenglu.com/huangyi5209/comments/commentRss/144656.htmlhttp://www.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://www.shnenglu.com/huangyi5209/articles/143171.htmlhuangyi5209huangyi5209Thu, 31 Mar 2011 21:33:00 GMThttp://www.shnenglu.com/huangyi5209/articles/143171.htmlhttp://www.shnenglu.com/huangyi5209/comments/143171.htmlhttp://www.shnenglu.com/huangyi5209/articles/143171.html#Feedback0http://www.shnenglu.com/huangyi5209/comments/commentRss/143171.htmlhttp://www.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




]]>
久久亚洲中文字幕精品一区四
|
久久精品成人免费观看97|
久久夜色精品国产欧美乱|
国内精品伊人久久久久AV影院|
97久久超碰国产精品旧版|
日本精品久久久久中文字幕|
欧美久久一级内射wwwwww.|
中文字幕乱码人妻无码久久|
久久亚洲精品视频|
麻豆久久久9性大片|
国内精品伊人久久久久|
亚洲成av人片不卡无码久久|
久久久无码一区二区三区|
精品国产热久久久福利|
久久99精品久久久久婷婷|
久久综合久久伊人|
99久久精品毛片免费播放|
精品久久久一二三区|
99久久久久|
久久亚洲精品国产精品|
久久福利青草精品资源站免费|
国产精品亚洲综合专区片高清久久久
|
久久精品亚洲日本波多野结衣
|
久久久久久精品成人免费图片|
亚洲国产精品久久久久|
久久国产精品99国产精|
最新久久免费视频|
激情综合色综合久久综合|
久久这里只有精品久久|
69SEX久久精品国产麻豆|
东方aⅴ免费观看久久av|
日韩欧美亚洲综合久久影院Ds|
国内精品久久久久久麻豆
|
久久大香萑太香蕉av|
久久精品成人|
欧美色综合久久久久久|
精品国产青草久久久久福利|
国产ww久久久久久久久久|
日韩亚洲欧美久久久www综合网|
无码国产69精品久久久久网站|
亚洲日本va中文字幕久久|