alur, its like you forgot to remove visual studio dependences. well, this is my try (more hard), but add this feature on core is better.
requirements:
NetLoadModules-2.5.0
xLabel-4.3
xStatsClass-1.1.5
xTextedit-0.6
add this lines to themevars.rc:
APP01ISHERE "0"
APP01PATH "C:\WINDOWS\SYSTEM32\NOTEPAD.EXE"
APP01NAME "NOTEPAD"
IF APP01ISHERE = "1"
APP01ENTRY '"$APP01NAME$" !EXECUTE ["$APP$01PATH"]'
ELSE
APP01ENTRY '!INFO "APP01NAME"'
ENDIF
add this lines to theme.rc below the module load section:
NetLoadModuleOnLoad !Parseevars !execute [!SetEvar APP01ISHERE %[ifeval(fileExists('C:\windows\system32\notepad.exe'))]1[else]0[endif]%][!xTextSaveEvar @$ConfigDir$themevars.rc@ @APP01ISHERE@ @%[ifeval(fileExists('C:\windows\system32\notepad.exe'))]1[else]0[endif]%@]
and finally, your popup definition (save it on $ConfigDir$DynamicPopup.rc)
*mypopup !new !Mypopup
*mypopup .icon=".none" $app01entry$
*mypopup ~new
to load your popup execute:
!execute [!PopupLoadCFG "*Mypopup" "$ConfigDir$DynamicPopup.rc"][!Mypopup]