NSIS以UAC提升安装程序的用户身份启动程序 [英] NSIS Launch a program as user from UAC elevated installer
问题描述
我需要在作为用户提升安装后午餐应用程序。
找到一个解决方案建议在
http://mdb-blog.blogspot.com/2013/01/nsis-lunch-program-as-user -from-uac.html 。
!定义MUI_FINISHPAGE_RUN$ WINDIR \ explorer.exe
!定义MUI_FINISHPAGE_RUN_PARAMETERS $ TEMP \ MyUnElevatedProcess.exe
它工作但导致另一个问题,即将工作目录更改为C:\ Windows \ system32。
我会感激任何帮助。
I need to Lunch the application after elevated intallation as a user.
Found one solution suggested in
http://mdb-blog.blogspot.com/2013/01/nsis-lunch-program-as-user-from-uac.html.
!define MUI_FINISHPAGE_RUN "$WINDIR\explorer.exe"
!define MUI_FINISHPAGE_RUN_PARAMETERS "$TEMP\MyUnElevatedProcess.exe"
It worked but caused another problem i.e. changes working directory to C:\Windows\system32.
I will grateful for any help.
推荐答案
WINDIR \ explorer.exe
!定义MUI_FINISHPAGE_RUN_PARAMETERS
WINDIR\explorer.exe"
!define MUI_FINISHPAGE_RUN_PARAMETERS "
TEMP \ MyUnElevatedProcess.exe
它起作用但引起了另一个问题,即将工作目录更改为C:\ Windows \ system32。
我会感激任何帮助。
TEMP\MyUnElevatedProcess.exe"
It worked but caused another problem i.e. changes working directory to C:\Windows\system32.
I will grateful for any help.
这篇关于NSIS以UAC提升安装程序的用户身份启动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!