开发者

NSIS installer. UAC - can elevation happen only after user chooses path?

开发者 https://www.devze.com 2023-02-14 10:23 出处:网络
Currently I am participating in development of a NSIS installer. This installer uses the UAC plugin for elevation to be able to install to a directory inside Program Files. Now, the installer elevates

Currently I am participating in development of a NSIS installer. This installer uses the UAC plugin for elevation to be able to install to a directory inside Program Files. Now, the installer elevates in .onInit, in the very beginning.开发者_运维问答 The user may later choose a path, and even if this path is outside Program Files, the installer is already run as elevated. Is it possible to elevate only after user has chosen a path, if this path requires admin rights? Or is it not recommended?


Personally, I would not recommend it, but it has been done, this post has all the links you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号