I'm using the UAC plugin v0.2.2c in my installer and so far everything seems to work fine. However there is a problem with the UAC_AsUser_ExecShell macro, which I'd like to use to launch the app after install. Unfortunately it doesn't work as expected, because obviously the "outer" installer still has the default install path in its $INSTDIR rather than the install path chosen by the user (I found out that the execution fails because a wrong path is used via ProcessMonitor, by the way).
My current workaround is as follows:
Is there a more simple way to do this, e.g. by using UAC_AsUser_ExecShell macro ???Function .onInstSuccess
!insertmacro UAC_AsUser_Call Function LaunchApplication ${UAC_SYNCINSTDIR}
FunctionEnd
Function LaunchApplication
ExecShell "explore" "$INSTDIR"
Exec '"$INSTDIR\Program.exe"'
FunctionEnd
Thanks in advance!
(BTW: Is there a docu on UAC v0.2.2 anywhere? The Wiki page seems to be outdated)