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:
parent
e5ccd95016
commit
7e5ecd148b
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue