!assert ${NSIS_CHAR_SIZE} = 2 "Unicode required"
!include MUI2.nsh
!define x64 "true"
Name "installer_name"
OutFile "installer_name.exe"
RequestExecutionLevel user
CRCCheck on
!ifdef ${x64}
InstallDir "$PROGRAMFILES64\installer_name"
!else
InstallDir "$PROGRAMFILES\installer_name"
!endif
!insertmacro MUI_PAGE_INSTFILES
Section "section_name" section_index
nsExec::ExecToLog "calc.exe"
SectionEnd
Function .onInit
DetailPrint "The install button reads $(^InstallBtn)"
DetailPrint 'Here comes a$\n$\rline-break!'
DetailPrint `Escape the dollar-sign: $$`
FunctionEnd