2009-06-03 6 views
1

내 응용 프로그램에 대한 간단한 설치 스크립트를 사용하고 섹션 선택 화면에 빈 상자가 표시됩니다. 나는 그것을 제거하고 싶다, 적어도 그것을 위해 무엇을 알고 그것을 채우고 싶다. 여기 설치 프로그램에 빈 상자가 나타 납니까? 어떻게 제거합니까?

은 스크린 샷을 alt text http://i41.tinypic.com/688zmo.png

하고 내 스크립트를 상자 섹션 설명하는지

; example2.nsi 
; 
; This script is based on example1.nsi, but it remember the directory, 
; has uninstall support and (optionally) installs start menu shortcuts. 
; 
; It will install ICV-MRI into a directory that the user selects, 

;-------------------------------- 
!include "MUI.nsh" 

; The name of the installer 
Name "ICV-MRI" 

; The file to write 
OutFile "ICV-MRI_Setup.exe" 

; The default installation directory 
InstallDir $PROGRAMFILES\ICV-MRI 

; Registry key to check for directory (so if you install again, it will 
; overwrite the old one automatically) 
InstallDirRegKey HKLM "Software\ICV-MRI" "Install_Dir" 

; Request application privileges for Windows Vista 
RequestExecutionLevel admin 

Function LaunchLink 
    ExecShell "" "$INSTDIR\mri.exe" 
FunctionEnd 

;-------------------------------- 

; Pages 

Page components 
Page directory 
Page instfiles 

UninstPage uninstConfirm 
UninstPage instfiles 

; !insertmacro MUI_PAGE_WELCOME 
; !insertmacro MUI_PAGE_DIRECTORY 
; !insertmacro MUI_PAGE_INSTFILES 

    # These indented statements modify settings for MUI_PAGE_FINISH 
    !define MUI_FINISHPAGE_NOAUTOCLOSE 
    !define MUI_FINISHPAGE_RUN 
    !define MUI_FINISHPAGE_RUN_NOTCHECKED 
    !define MUI_FINISHPAGE_RUN_TEXT "Run MRI when the installer closes" 
    !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink" 
    !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED 
    !insertmacro MUI_PAGE_FINISH 
!insertmacro MUI_LANGUAGE "English" 


;-------------------------------- 

; The stuff to install 
Section "ICV-MRI (required)" 

    SectionIn RO 

    ; Set output path to the installation directory. 
    SetOutPath $INSTDIR 

    ; Put file there 
    File "dist\bz2.pyd" 
    File "dist\library.zip" 
    File "dist\mri.exe" 
    File "dist\PyQt4.QtCore.pyd" 
    File "dist\PyQt4.QtGui.pyd" 
    File "dist\python26.dll" 
    File "dist\QtCore4.dll" 
    File "dist\QtGui4.dll" 
    File "dist\select.pyd" 
    File "dist\sip.pyd" 
    File "dist\unicodedata.pyd" 
    File "dist\w9xpopen.exe" 

    ; Write the installation path into the registry 
    WriteRegStr HKLM SOFTWARE\ICV-MRI "Install_Dir" "$INSTDIR" 

    ; Write the uninstall keys for Windows 
    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ICV-MRI" "DisplayName" "ICV-MRI" 
    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ICV-MRI" "UninstallString" '"$INSTDIR\uninstall.exe"' 
    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ICV-MRI" "NoModify" 1 
    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ICV-MRI" "NoRepair" 1 
    WriteUninstaller "uninstall.exe" 

SectionEnd 

; Optional section (can be disabled by the user) 
Section "Start Menu Shortcuts" 

    CreateDirectory "$SMPROGRAMS\ICV-MRI" 
    CreateShortCut "$SMPROGRAMS\ICV-MRI\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 
    CreateShortCut "$SMPROGRAMS\ICV-MRI\ICV-MRI.lnk" "$INSTDIR\mri.exe" "" "$INSTDIR\mri.exe" 0 

SectionEnd 

Section "Desktop Shortcuts" 

    CreateShortCut "$DESKTOP\ICV-MRI.lnk" "$INSTDIR\mri.exe" "" "$INSTDIR\mri.exe" 0 

SectionEnd 

;-------------------------------- 

답변

1

를 설치합니다.

은 현대 UI Basic.nsi 파일에서보세요 :


;-------------------------------- 
;Installer Sections 

Section "Dummy Section" SecDummy 

    SetOutPath "$INSTDIR" 

    ;ADD YOUR OWN FILES HERE... 

    ;Store installation folder 
    WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR 

    ;Create uninstaller 
    WriteUninstaller "$INSTDIR\Uninstall.exe" 

SectionEnd 

;-------------------------------- 
;Descriptions 

    ;Language strings 
    LangString DESC_SecDummy ${LANG_ENGLISH} "A test section." 

    ;Assign language strings to sections 
    !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy) !insertmacro MUI_FUNCTION_DESCRIPTION_END 

Modern UI Readme 더 읽기, 구성 요소 페이지 설명 섹션.

현대 UI 구성 요소 페이지에는 사용자가 구성 요소 위로 마우스를 가져 가면 설명을 볼 수있는 텍스트 상자가 있습니다. 이 설명을 사용하지 않으려면 MUI_COMPONENTSPAGE_NODESC 인터페이스 설정을 삽입하십시오.

섹션에 대한 설명을 설정하려면 섹션 매개 변수에 섹션의 고유 식별자와 함께 추가 매개 변수를 추가해야합니다. 나중에이 이름을 사용하여이 섹션에 대한 설명을 설정할 수 있습니다.

4

당신이 당신의 스크립트의 상단에, !define MUI_COMPONENTSPAGE_NODESC을 제거하려면

관련 문제