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?
就个人而言,我不会推荐它,但它已经完成, 这篇文章有你需要的所有链接。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.