I am trying to get an installer compiled with NSIS on Windows 7 to work without administrator privileges. The project is set up with CMake and compiled with VC2010. I have figured out that I have to use the
RequestExecutionLevel user
option. My question is: What do I have to put into my CMakeLists.txt to pass this option to NSIS? I found
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "RequestExecutionLevel user")
somewhere on google, but that gives an error, saying that this option cannot be set in this section.
Any help is greatly appreciated
The version of CMake that I have has @CPACK_NSIS_DEFINES@
in NSIS template, so adding set(CPACK_NSIS_DEFINES "RequestExecutionLevel user")
to CMakeLists.txt does the job as well.
Although it may require extra work for component based install.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With