Skip to content
⌘ NSIS Forum Archive

Strange Compile Warnings

3 posts

ajfisher#

Strange Compile Warnings

Howdy--

I have the following defines set up

#defines
!define COMPANY MyCo
!define URL "http://www.myco.com"
!define SUPPORT_URL "http://www.myco.com/support.aspx"
!define PRODUCT_NAME "myApp 3.3"
!define PRODUCT_NAME_NO_SPACES "myApp33"
!define VERSION 12.0.0
!define REGKEY "SOFTWARE\${COMPANY}\${PRODUCT_NAME_NO_SPACES}"
!define UNREGKEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
# Included files
!include "Sections.nsh"
!include "MUI.nsh"    
#if not a cd install, don't install acrobat reader--comment out for web install
!define IS_CD_INSTALL
# INSTALLER MUI defines
!define MUI_ICON Graphics\myapp.ICO
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_REGISTRY_KEY $REGKEY
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_DEFAULT_FOLDER "myApp 3.3"
#UNINSTALLER MUI DEFINES
!define MUI_UNICON Graphics\PRINTMUSIC.ICO
!define MUI_UNFINISHPAGE_NOAUTOCLOSE 
When I compile, I get the following errors:
unknown variable/constant "REGKEY" detected, ignoring (macro:MUI_FUNCTION_STARTMENUPAGE:10)
unknown variable/constant "REGKEY" detected, ignoring (macro:MUI_STARTMENU_GETFOLDER:4)
unknown variable/constant "REGKEY" detected, ignoring (macro:MUI_STARTMENU_WRITE_END:6)

I didn't get this warning all afternoon. Then I tried moving the defines into a couple of header files. I began getting warnings, and now that I put the defines back in the main NSI file and these 3 warnings remain.

Any ideas?

Thanks in advance,
Allen