Hello. I want to make my portable app change ProgramExecutable based on the version of Windows. I tried to this in Custom.nsh
:
${SegmentFile}
${SegmentInit}
${If} ${AtLeastWin110}
${SetEnvironmentVariablesPath} FullAppDir $AppDirectory\PolyMC
${Else}
${SetEnvironmentVariablesPath} FullAppDir $AppDirectory\Legacy
${EndIf}
!macroend
But it seems I can't use the environment variable in ProgramExecutable. Any idea how I'd accomplish this? Thanks.