Does this script alter the Registry?
Hi all,
I love NSIS! What a great installer.
My question is this: I am about to use NSIS for a project, and in the Read Me I would like to say something like this: "This installation does not alter your registry settings in any way."
I deliberately took out all reference to the registry in the install script. However, I do *not* know whether the MUI or any other scripts have altered the registry.
The script is listed below in its entirety. Can I make that claim about not altering the registry?
Thanks a lot for a great product and your help on this issue,
Matt.
#--------------------------------
# Include Modern UI
!include "MUI.nsh"
#--------------------------------
# Set the icon for the installer program. Icons for the actual application links
# (in Start menu and on desktop) are handled in CreateShortCut below.
!define MUI_ICON "..\..\SD2.0\Img\Icon.ico"
#--------------------------------
# General
# Name of the project (used many times in the installer UI)
Name "CI SDer 2.0"
# Set the final ouput installer file name and path.
OutFile "..\OutputInstaller\CI_SDer2_install.exe"
# Default installation directory
InstallDir "$PROGRAMFILES\SD2.0"
#--------------------------------
# Variables
Var STARTMENU_FOLDER
#--------------------------------
# Interface Settings
!define MUI_ABORTWARNING
#--------------------------------
# Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "..\EULA\CI_EULA.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
#--------------------------------
# Languages
!insertmacro MUI_LANGUAGE "English"
#--------------------------------
# Installer Sections
Section "Dummy Section" SecDummy
SetOutPath "$INSTDIR"
# Add Project Files Here
# Use the /r recursive switch to add all files recursively within
# the specified directory while maintaining directory structure.
#
File /r ..\..\SD2.0\*
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
# Create a directory for the files within the Start menu. Add a link to the exe.
# Note - links are displayed in alphabetical order in Folder. This order is not important.
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Release Notes.lnk" "$INSTDIR\Docs\ReleaseNotes.rtf"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Read Me.lnk" "$INSTDIR\Docs\ReadMe.txt"
# Set the "Start in" directory for the link to point to the Application directory (where
# the application resides). This is necessary for the app to have the correct cwd on startup.
# Set the icon file for application within the "Start" menu folder.
SetOutPath "$INSTDIR\Application"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\CI SDer 2.0.lnk" "$INSTDIR\Application\SD 2.0.exe" "" "$INSTDIR\Img\Icon.ico"
# Also create a desktop shortcut with the same CI icon.
CreateShortCut "$DESKTOP\CI SDer 2.0.lnk" "$INSTDIR\Application\SD 2.0.exe" "" "$INSTDIR\Img\Icon.ico"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
#--------------------------------
# Descriptions
# Language strings
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section."
# Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
!insertmacro MUI_FUNCTION_DESCRIPTION_END