2009-06-03 15 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それを削除したい場合は

関連する問題