The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12923 ====================================================================== Reported By: helsing72 Assigned To: ====================================================================== Project: CMake Issue ID: 12923 Category: CPack Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-01-31 17:26 EST Last Modified: 2012-01-31 17:26 EST ====================================================================== Summary: NSIS installer doesn't honor user permission Description: When using the NSIS generator from CPack the file NSIS.template.in is used to generate a project.nsi file for NSIS to process. The file consists code in the NSIS scripting language. Among other functions there is an onInit function the initializes the installer. The function (tries to) recognise admin and power users but fails since NSIS scripting language relative includes the jump from the current command so +3 means "run the third command after this one", so a failed check for admin completely skips the check for a power user and goes directly to "done:"
Steps to Reproduce: Use the NSIS generator Additional Information: attached patch fixes issue ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-01-31 17:26 helsing72 New Issue 2012-01-31 17:26 helsing72 File Added: nsis-template.patch ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers