; %AppData%
sisconf.nsh example
!ifdef NSIS_WIN32_MAKENSIS
!define NSISCONF_3 ";" ; NSIS 2 tries to parse some preprocessor instructions inside "!if 0" blocks!
!addincludedir "$%AppData%NSISInclude"
!if ${NSIS_PACKEDVERSION} > 0x02ffffff ; NSIS 3+:
!define /redef NSISCONF_3 ""
${NSISCONF_3}!addplugindir /x86-ansi "$%AppData%NSISPlugins-i386-ansi"
${NSISCONF_3}!addplugindir /x86-unicode "$%AppData%NSISPlugins-i386-unicode"
!else ; NSIS 2:
!addplugindir "$%AppData%NSISPlugins-i386-ansi"
!endif ;~ NSIS_PACKEDVERSION
!undef NSISCONF_3
!endif ;~ NSIS_WIN32_MAKENSIS