2016-10-13 12 views
0

私はNSISを初めてお使いになり、すべてのプログラムを連鎖的にインストールするスクリプトを作成しました。スクリプトはうまく動作しますが、強調表示されたボックスのテキストを変更して、インストールするプログラムの名前を表示したいと思います。たとえば、インストーラーがAcrobat Readerをインストールしている場合は、「インストール:Adobe Acrobat Reader」と表示されます。 ImageNSIS: "Execute:*******"というテキストをカスタムテキストに変更してください

; Script generated by the HM NIS Edit Script Wizard. 

    ; HM NIS Edit Wizard helper defines 
    !define PRODUCT_NAME "Deployment" 
    !define PRODUCT_VERSION "1.0" 
    !define PRODUCT_PUBLISHER "NoNe" 


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

    ; MUI Settings 
    !define MUI_ABORTWARNING 
    !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" 

    ; Welcome page 
    ;!insertmacro MUI_PAGE_WELCOME 
    ; License page 
    ;!insertmacro MUI_PAGE_LICENSE "..\..\..\path\to\licence\YourSoftwareLicence.txt" 
    ; Instfiles page 
    !insertmacro MUI_PAGE_INSTFILES 
    ; Finish page 
    ;!insertmacro MUI_PAGE_FINISH 

    ; Language files 
    !insertmacro MUI_LANGUAGE "English" 

    ; MUI end ------ 

    Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" 
    OutFile "Deploy.exe" 
    InstallDir "$TEMP" 
    ShowInstDetails show 

    Section -SETTINGS 
     SetOutPath "$TEMP" 
     SetOverwrite on 
    SectionEnd 

    Section "Adobe Acrobat Reader XI" SEC01 
    ;Should display "Installing: Acrobat Reader" when installing this section 
     File "E:\Applications\AdbeRdr11002_en_US.exe" 
     ExecWait "$TEMP\AdbeRdr11002_en_US.exe /msi EULA_ACCEPT=YES /qn" 
    SectionEnd 

Section "Mozilla Firefox" SEC02 
;Should display "Installing: Mozilla Firefox" when installing this section 
    File "E:\Applications\Firefox4901.exe" 
    ExecWait "$TEMP\Firefox.exe -ms" 
SectionEnd 

これを行う方法があります:ここで

はスクリーンショットですか?

事前のおかげで... :)

答えて

1

あなたが "インストール:は、Adobe Acrobat Reader" 命令DetailPrintを使用することができ、 "インストール:Adobe Acrobat Readerが"

を文字列を追加するの詳細ビューにインストーラ。 (スクリプト内)

しかし、次のコマンドは(「...ファイルの抽出」など)は、このテキストに上書きされますので、あなたはSetDetailsPrintどれを使用することができます| LISTONLY | textonly |出力が適用される場合に設定するLASTUSEDコマンド|両方:

SetDetailsPrint both 
DetailPrint "Installing: Adobe Acrobat Reader" 
SetDetailsPrint listonly 
... Extract all your files here while "Installing: Adobe Acrobat Reader" is displayed ... 
SetDetailsPrint both 
+0

まさに私が望んでいたもの!完璧に動作します。大変ありがとうございました! – ajayav

関連する問題