; Script generated by the HM NIS Edit Script Wizard. ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "MyProgram" !define PRODUCT_VERSION "1.0" !define ShortName "MyProgram" !define PRODUCT_PUBLISHER "MyProgram" !define PRODUCT_WEB_SITE "http://www.MyProgram.com" ; MUI 1.67 compatible ------ !include "MUI.nsh" ; MUI Settings !define MUI_ABORTWARNING !define MUI_ICON "..\installDir2\MyProgram.ico" ; Welcome page !insertmacro MUI_PAGE_WELCOME ; License page !insertmacro MUI_PAGE_LICENSE "..\License Agreement.rtf" ; Directory page !insertmacro MUI_PAGE_DIRECTORY ; 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 "Setup.exe" InstallDir "$PROGRAMFILES\${SHORTNAME}" ShowInstDetails show Section "MainSection" SEC01 ReadRegStr $0 HKLM "SOFTWARE\MyProgram" "" SetOutPath "$0\lib" SetOverwrite on File "MyProgram.jar" SectionEnd Section "MainSection2" SEC02 SetOutPath "C:\Windows\System32" SetOverwrite on File "MyProgram.dll" SectionEnd Section -Post SectionEnd