Archive: UnInst Won't Compile


UnInst Won't Compile
I updated to the latest NSIS version and now my pages section (see below) won't compile. The error comes at the line:

!define MUI_FINISHPAGE_TEXT_REBOOTNOW

and the error claims that this value has been previously defined. But, of course, it hasn't. What am I missing here.

JAS

My "pages" section follows:

;--------------------------------
;Pages

!define MUI_WELCOMEPAGE_TITLE "Install: ${PRODUCT} ${VERSION}"
!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the \
installation of ${company}'s ${PRODUCT} software.\r\n\r\n\
We recommend that you close any currently running programs \
before proceeding with this installation. This should make \
it possible to update relevant system files without requiring \
you to reboot your computer. \r\n\r\n\
Click Next to begin the installation process."
!insertmacro MUI_PAGE_WELCOME
!define MUI_LICENSEPAGE_CHECKBOX
!define MUI_LICENSEPAGE_CHECKBOX_TEXT "I accept all the terms of the License Agreement."
!define MUI_LICENSEPAGE_TEXT_TOP "Please review all the terms of the License Agreement: "
!define MUI_LICENSEPAGE_TEXT '"If you accept all the terms of the License Agreement, \
check the box below and then click CONTINUE \
to proceed with the installation." "CONTINUE"'
!define MUI_PAGE_HEADER_TEXT "License Agreement"
!define MUI_PAGE_HEADER_SUBTEXT "${COMPANY} PO Box 267870 Chicago, IL 60626-7870"
!insertmacro MUI_PAGE_LICENSE "teLicense.txt"
!define MUI_DIRECTORYPAGE_TEXT_TOP "SetUp will install ${PRODUCT} in the Destination Folder shown below. \
$\r$\n$\r$\nTo select a different Destination Folder, Click Browse..."
!define MUI_DIRECTORY_PAGE_DESTINATION "Destination Folder: "
!define MUI_PAGE_HEADER_TEXT "Program Install Location"
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_DIRECTORYPAGE_VARIABLE $DATAINSTDIR
!define MUI_PAGE_HEADER_TEXT "Data Install Location"
!define MUI_PAGE_HEADER_SUBTEXT "Choose the folder in which to install the ${PRODUCT} data files."
!define MUI_DIRECTORY_PAGE_TEXT_TOP "SetUp will install the ${PRODUCT} data files in the Destination Folder \
shown below.$\r$\n$\r$\nTo select a different Destination Folder, Click Browse..."
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES ;Create uninstaller
!define MUI_FINISHPAGE_TITLE "Install: ${PRODUCT} ${VERSION}"
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE myLeaveFinishPage
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "UnInstall: ${PRODUCT} ${VERSION}"
!define MUI_FINISHPAGE_TEXT "To complete the uninstall procedure, it\r\n \
will be necessary to reboot this machine."
!define MUI_FINISHPAGE_TEXT_REBOOTNOW "Reboot now?"
!define MUI_FINISHPAGE_TEXT_REBOOTLATER "Reboot later?"
!insertmacro MUI_UNPAGE_FINISH


Thanks for reporting this issue. A fix will be uploaded soon.


Fixed