Re: [CMake] How to run an install command as administrator?

2016-05-28 Thread Gonzalo Garramuño
On 26/05/2016 01:16 p.m., Juan Dent wrote: Hi, I have a simple CMakeLists.txt that tries to install at a place in the drive that requires administrator privileges. How can I make that install command to run as administrator, is there a way in CMake? If you are on Linux or Mac, it is easy.

[CMake] CPACK_NSIS_EXTRA_INSTALL_COMMANDS before install

2016-05-28 Thread Gonzalo Garramuño
Hi, I am using CPACK_NSIS_EXTRA_INSTALL_COMMANDS to create a new page where the user can select file associations (using the full syntax of NSIS). My problem is that the page gets shown after the install is done. I would like to have a variable which puts the NSIS commands before the instal