[cmake-developers] [CMake 0012923]: NSIS installer doesn't honor user permission

Mantis Bug Tracker mantis at public.kitware.com
Tue Jan 31 17:26:10 EST 2012


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                 
  
======================================================================




More information about the cmake-developers mailing list