2016-10-13 4 views
0

Je suis très nouveau pour NSIS et créé un script pour installer tous mes programmes d'une manière enchaînée. Le script fonctionne très bien mais je voudrais changer le texte dans la boîte en surbrillance pour montrer le nom du programme étant installé. Par exemple, si le programme d'installation installe Acrobat Reader, il doit indiquer "Installation: Adobe Acrobat Reader".NSIS: Modifier le texte « Exécuter: ******* » au texte personnalisé

Voici une capture d'écran: Image

; 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 

Est-il possible de le faire?

Merci à l'avance ... :)

Répondre

1

Vous pouvez utiliser l'instruction DetailPrint "Installation: Adobe Acrobat Reader"

pour ajouter la chaîne "Installation: Adobe Acrobat Reader" pour les détails voir des l'installateur

Mais la commande suivante (dans votre script) écrasera ce texte (par exemple, « ... extractible ») de sorte que vous pouvez utiliser SetDetailsPrint none | listonly | TextOnly | both | commande LastUsed pour définir où la sortie est appliquée :

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

Exactement ce que je voulais !!! Fonctionne parfaitement bien. Merci beaucoup Slappy! – ajayav