windows - How to launch an executable on the end of installation correctly? -
i'm launching windows application way after installation completes:
!define mui_finishpage_run_function "launchapplication" ... function launchapplication execshell "" "$instdir\application.exe" functionend
but has strange , undesired side-effect. apparently application launched admin rights.
i cannot drag & drop data between web browser (tested firefox , ie) , application.
if quit application (the session started nsis), , restart start menu icon works! - can drag & drop browsers without problems.
so suspect since in beginning of installation there uac request, somehow uac rights transferred process i'm launching after installation. since browsers run in low security process windows refuses exhange data them (in process instance launched nsis).
how launch exe nsis, uac/security problem not happen?
use exec '"$windir\explorer.exe" "$temp\myunelevatedprocess.exe"'
taken http://mdb-blog.blogspot.com/2013/01/nsis-lunch-program-as-user-from-uac.html
Comments
Post a Comment