搜索 社区服务 统计排行 帮助
  • 1814阅读
  • 2回复

[请教]VNISEdit制作安装包的问题

楼层直达
级别: 新手上路
注册时间:
2004-01-13
在线时间:
0小时
发帖:
658
按照向导填上,

已设置语言选项3,编译后不显示语言选择
安装时不复制文件==![/KH]

脚本编译时错误,以上是把错误行删除后生成的exe运行结果


代码
===================================
; 该脚本使用 HM VNISEdit 脚本编辑器向导产生

; 安装程序初始定义常量
!define PRODUCT_NAME "Windows XP 后续补丁安装程序"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "海波湛蓝"
!define PRODUCT_WEB_SITE "RP不足,无主页"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\CLEAN.EXE"

SetCompressor /SOLID lzma
SetCompressorDictSize 32

; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
!include "MUI.nsh"

; MUI 预定义常量
!define MUI_ABORTWARNING
!define MUI_ICON "C:\Documents and Settings\Administrator\My Documents\素材\ico01-0.ico"

; 语言选择窗口常量设置
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"

; 欢迎页面
!insertmacro MUI_PAGE_WELCOME
; 许可协议页面
!define MUI_LICENSEPAGE_CHECKBOX
!insertmacro MUI_PAGE_LICENSE "C:\Documents and Settings\Administrator\My Documents\素材\Gandam.txt"
; 组件选择页面
!insertmacro MUI_PAGE_COMPONENTS
; 安装目录选择页面
!insertmacro MUI_PAGE_DIRECTORY
; 安装过程页面
!insertmacro MUI_PAGE_INSTFILES
; 安装完成页面
!define MUI_FINISHPAGE_RUN "$WINDIR\SVCPACK\XPLODE.EXE"
!define MUI_FINISHPAGE_SHOWREADME "$WINDIR\SVCPACK\README.txt"
!insertmacro MUI_PAGE_FINISH

; 安装界面包含的语言设置
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "SimpChinese"
!insertmacro MUI_LANGUAGE "TradChinese"

; 安装预释放文件
!insertmacro MUI_RESERVEFILE_LANGDLL
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; ------ MUI 现代界面定义结束 ------

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "FXU.exe"
InstallDir "$WINDIR\SVCPACK"
InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
ShowInstDetails show

Section "" SEC01
SetOutPath "$WINDIR\SVCPACK\"
SetOverwrite ifnewer
File "D:\XPLODE\XPLODEREGISTRY.X4E"
File "D:\XPLODE\README.txt"
File "D:\XPLODE\CLEAN.EXE"
File "D:\XPLODE\XPLODE.XML"
File "D:\XPLODE\XPLODE.EXE"
File "D:\XPLODE\XPLODE.X4D"
File "D:\XPLODE\XPLODEEXECUTE.X4E"
File "D:\XPLODE\XPLODEFILEOPS.X4E"
File "D:\XPLODE\XPLODEMISC.X4E"
SectionEnd

Section "Windows XP 补丁" SEC02
SetOutPath "$WINDIR\SVCPACK\XPUPDATA\"
File "D:\hotfix\Windows-KB913433-x86-CHS.exe"
File "D:\hotfix\WindowsInstaller-KB893803-v2-x86.exe"
File "D:\hotfix\WindowsMedia-KB911564-x86-CHS.exe"
File "D:\hotfix\WindowsMedia10-KB917734-x86-CHS.exe"
File "D:\hotfix\WindowsMedia9-KB917734-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB873339-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB885835-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB885836-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB886185-x86-chs.exe"
File "D:\hotfix\WindowsXP-KB886677-x86-chs.exe"
File "D:\hotfix\WindowsXP-KB887472-x86-chs.exe"
File "D:\hotfix\WindowsXP-KB888302-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB890046-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB890859-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB891781-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB893756-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB894391-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB896358-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB896423-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB896424-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB896428-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB898461-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB899587-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB899589-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB899591-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB900485-v2-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB900725-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB901017-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB901190-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB901214-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB902400-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB904706-v2-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB905414-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB905749-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB908519-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB908531-v2-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB910437-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB911280-v2-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB911562-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB911567-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB911927-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB912919-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB913580-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB914388-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB914389-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB916595-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB917159-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB917344-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB917422-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB917953-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB918439-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB918899-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB920214-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB920670-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB920683-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB921398-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB921883-x86-CHS.exe"
File "D:\hotfix\WindowsXP-KB922616-x86-CHS.exe"
SectionEnd

Section "Windows Media Player" SEC03
SetOutPath "$WINDIR\SVCPACK\Windows Media Player\"
File "D:\Windows Media Player\KB911565.EXE"
File "D:\Windows Media Player\WMP11.EXE"
SectionEnd

Section -Post
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$WINDIR\SVCPACK\CLEAN.EXE"
SectionEnd

#-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#

; 区段组件描述
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} ""
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Windows XP 系统补丁(更新至2006.08.22)"
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Windows Media Player 11+补丁"
!insertmacro MUI_FUNCTION_DESCRIPTION_END

Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
===================================

错误:
===================================
Error in macro MUI_LANGDLL_SAVELANGUAGE on macroline 7
Error in macro MUI_FUNCTION_INSTFILESPAGE on macroline 20
Error in macro MUI_PAGE_INSTFILES on macroline 17
Error in script "C:\Documents and Settings\Administrator\My Documents\素材\XPupdata04.nsi" on line 35 -- aborting creation process
===================================
删除line35后:
===================================
Error in macro MUI_LANGDLL_DISPLAY on macroline 14
Error in script "C:\Documents and Settings\Administrator\My Documents\素材\XPupdata04xxxxxx.nsi" on line 152 -- aborting creation process
===================================
152删掉后可以生成exe,结果就是开头我说的状况[/ku]

羊骑车…[/KH]
级别: 新手上路
注册时间:
2004-01-13
在线时间:
0小时
发帖:
658
只看该作者 2楼 发表于: 2006-08-31
编译NSIS的东西

不知道哪里写错了

羊骑车…[/KH]
级别: 精灵王
注册时间:
2005-12-13
在线时间:
0小时
发帖:
3859
只看该作者 1楼 发表于: 2006-08-31
= = 这是什么软件? 有什么用?

= =
快速回复

限150 字节
上一个 下一个