fixed exception when VER_* is not passed

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4099 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-06-19 20:35:56 +00:00
parent e5ccd95016
commit 7e5ecd148b

View file

@ -179,8 +179,8 @@ defenv.Alias('dist-zip', zip_target)
AlwaysBuild(defenv.AddPostAction(zip_target, Delete('$ZIPDISTDIR')))
defenv['INSTVER'] = '/DVERSION=$VERSION'
if defenv['VER_MAJOR'] and defenv['VER_MINOR'] \
and defenv['VER_REVISION'] and defenv['VER_BUILD']:
if defenv.has_key('VER_MAJOR') and defenv.has_key('VER_MINOR') \
and defenv.has_key('VER_REVISION') and defenv.has_key('VER_BUILD'):
defenv['INSTVER'] += ' /DVER_MAJOR=$VER_MAJOR'
defenv['INSTVER'] += ' /DVER_MINOR=$VER_MINOR'
defenv['INSTVER'] += ' /DVER_REVISION=$VER_REVISION'