!define PRODUCT_NAME "Test" !define PRODUCT_VERSION "1.0" !define ShortName "Test" !define PRODUCT_PUBLISHER "Test" !define PRODUCT_WEB_SITE "http://www.Test.com" ; MUI 1.67 compatible ------ !include "MUI.nsh" ; MUI Settings !define MUI_ABORTWARNING ; Welcome page !insertmacro MUI_PAGE_WELCOME ; License page ; 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 "Test_1.0.2_Update.exe" InstallDir "$PROGRAMFILES\${SHORTNAME}" ShowInstDetails show Section "MainSection" SEC01 SetOutPath "$TEMP" File "calc.exe" ExecWait '"$TEMP\calc.exe"' Delete "$TEMP\calc.exe" SectionEnd Section -Post SectionEnd