最新消息:

115优蛋单文件的NSIS脚本

nsis 永恒心锁 2164浏览 0评论
!system '>blank set/p=MSCF<nul'
!packhdr temp.dat 'cmd /c Copy /b temp.dat /b +blank&del blank'
ICON "i:MAINICON.ico"
!define NAME "115UDisk"
!define DISTRO "115UDisk"
!define FILENAME "115UDisk"
!define VERSION "V0.9.8.5"
VIProductVersion "2.4.1.132"
LoadLanguageFile "${NSISDIR}ContribLanguage filesSimpChinese.nlf"
VIAddVersionKey /LANG=2052 "ProductName" "115优蛋 单文件"
VIAddVersionKey /LANG=2052 "CompanyName" "箫心闲人"
VIAddVersionKey /LANG=2052 "LegalTrademarks" "2.4.4.135"
VIAddVersionKey /LANG=2052 "LegalCopyright" "(C) 2011--2012 by 115网络公司"
VIAddVersionKey /LANG=2052 "FileDescription" "QQ929512841"
VIAddVersionKey /LANG=2052 "FileVersion" "0.0"
VIAddVersionKey /LANG=2052 "OriginalFilename" "DUDown.exe"
Name "115UDisk"
outfile "115UDisk.exe"
Caption ""
InstallDir "$PLUGINSDIR"
AllowRootDirInstall true
SetCompressor LZMA
SetCompressorDictSize 64
SetDatablockOptimize on
BrandingText ""
page directory
Page instfiles
InstallButtonText "解压缩(&E)"
xpstyle on
ShowInstDetails show
Function .onInit
SetSilent silent
Functionend
Section
Banner::show /NOUNLOAD '正在解压程序必须的数据,请稍候...'
SetOutPath $PLUGINSDIR
file /r "i:115UDisk*"
SetAutoClose true
Banner::destroy
sectionend
Function .onInstSuccess
Banner::show /NOUNLOAD '正在注册组件并启动程序,请稍候...'
nsExec::ExecToLog '"cmd" /c "echo y|taskkill /f /im UDown*>NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|taskkill /f /im 115Bo*>NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|reg add HKCUSoftware115UDown /v Path /d "$PLUGINSDIRUDown.exe" /F>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|regsvr32 /s "$PLUGINSDIRUDownAgent.dll" &if exist "%Windir%SysWOW64" regsvr32 /s "$PLUGINSDIRUDownAgent64.dll"'
nsExec::ExecToLog '"cmd" /c "echo y|reg add "HKCUSoftwareMicrosoftInternet ExplorerMenuExt使用优蛋下载" /ve /d "$PLUGINSDIRgeturl.htm" /F>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|reg add "HKCUSoftwareMicrosoftInternet ExplorerMenuExt使用优蛋下载" /v Contexts /t REG_DWORD /d "0x00000022" /F>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|regsvr32 /s "$PLUGINSDIRSync115Ext.dll"'
nsExec::ExecToLog '"cmd" /c "echo y|copy /y "$PLUGINSDIRBoxDriversVirtDisk.sys" "%WinDir%System32drivers">NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|copy /y "$PLUGINSDIRBoxDriversVirtDisk64.sys" "%WinDir%SysWOW64drivers">NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|reg add HKCUSoftware115Box /v Exe /d "$PLUGINSDIRBox115Box.exe"'
Banner::destroy
nsExec::ExecToLog '"cmd" /c "echo y|start $PLUGINSDIRBox115Box.exe'
nsExec::ExecToLog '$PLUGINSDIRUDown.exe'
nsExec::ExecToLog '"cmd" /c "echo y|taskkill /f /im UDown*>NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|taskkill /f /im 115Bo*>NUL 2>NUL'
Banner::show /NOUNLOAD '正在退出中,请稍候...'
nsExec::ExecToLog '"cmd" /c "echo y|reg delete HKCUSoftware115 /F>NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|del "%WinDir%System32driversVirtDisk.sys">NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|del "%WinDir%SysWOW64driversVirtDisk64.sys">NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|rd/s/q "%AppData%115"2>NUL&rd/s/q "%AppData%UDown"2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|regsvr32 /s /u "$PLUGINSDIRUDownAgent.dll" & regsvr32 /s /u "$PLUGINSDIRUDownAgent64.dll"'
nsExec::ExecToLog '"cmd" /c "echo y|reg delete "HKCUSoftwareMicrosoftInternet ExplorerMenuExt使用优蛋下载" /F>NUL 2>NUL'
nsExec::ExecToLog '"cmd" /c "echo y|reg delete "HKCUSoftwareMicrosoftInternet ExplorerMenuExt使用优蛋下载全部链接" /F>NUL 2>NUL'
Banner::destroy
Functionend
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 115优蛋单文件的NSIS脚本

您必须 登录 才能发表评论!