When installing my product, elevated priviledges are needed, and so my script contains the
directive.RequestExecutionLevel admin
To launch the product I also have
!define MUI_FINISHPAGE_RUN "$INSTDIR\${APP_NAME}.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Launch ${PRODUCT_NAME}"
specified.When the product first runs, it writes to the %APPDATA% directory.
So with elevated priviledges, this variable is resolving to the administrator account.
What I really need is for the software to be running as the current logged in user, not admin.
Is there a straightforwards way to achieve this?
Many thanks!