Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-19-2013, 09:19 AM
MurraySobol MurraySobol is online now
Registered User
 
Join Date: 12-18-2013
Posts: 1
Inno Setup question

I am running Inno Setup Compiler 5.5.4 and am having this problem.
I have the following script:


;================================
;ISPP logic
;================================

#pragma option -v+
#pragma verboselevel 3

#define AppName "dbAdmin"
#pragma message "AppName value is: " + AppName

#define AppYear "2014"
#pragma message "AppYear value is: " + AppYear

#define AppVersion "13.00.00." + Copy(build, 10, Len(build))
#pragma message "AppVersion value is: " + AppVersion

#define MajorVersion Copy(AppVersion,1,Pos('.',AppVersion) - 1)
#pragma message "MajorVersion value is: " + MajorVersion

#define MinorVersion Copy(Copy(AppVersion,Len(MajorVersion + '.') + 1),1,Pos('.',Copy(AppVersion,Len(MajorVersion + '.') + 1)) - 1)

#define PatchVersion Copy(Copy(AppVersion,Len(MajorVersion + '.' + MinorVersion + '.') + 1),1,Pos('.',Copy(AppVersion,Len(MajorVersion + '.' + MinorVersion + '.') + 1)) - 1)

#define BuildVersion Copy(AppVersion,Len(MajorVersion + '.' + MinorVersion + '.' + PatchVersion + '.') + 1)

#define ExeFileName AppName + ".exe"
#pragma message "ExeFileName value is: " + ExeFileName

#IF Program == "dbAdmin + {#AppYear} + Update Installer"

#define OutputBaseFilename "dbAdmin + {#AppYear}" + BuildVersion + '-Update'
#pragma message "OutputBaseFilename value is: " + OutputBaseFilename

#ELIF Program == "dbAdmin {#AppYear} Full Installer & dbcSMARTsoft Database Upgrade Components"
#IF sp == ''

#define OutputBaseFilename "dbAdmin + {#AppYear}" + BuildVersion + '-Install-' + version
#pragma message "OutputBaseFilename value is: " + OutputBaseFilename

#ELSE

#define OutputBaseFilename "dbAdmin + {#AppYear}" + BuildVersion + '-Install-' + version + 'sp' + sp
#pragma message "OutputBaseFilename value is: " + OutputBaseFilename

#ENDIF
#ELIF Program == "dbcSMARTsoft Database Upgrade Components"

#define ComponentName "dbcSMARTsoft Database Upgrade Components"
#pragma message "ComponentName value is: " + ComponentName

#define AppDate "December 16, 2013"
#pragma message "AppDate value is: " + AppDate

#define OutputBaseFilename ComponentName + " (" + AppDate + ")"
#pragma message "OutputBaseFilename value is: " + OutputBaseFilename

#ELSE

#error "Unsupported Program " + Program

#ENDIF

I added the "AppYear" variable; we want to "brand" this program as "dbAdmin 2014", but the "internal version number" is 13.

When I try to do a build, I get this error:

File: Z:\Development\dbAdmin 2014\Installer\Source\Common\PreProcessor.inc
Line 61:
[ISpp] "Unsupported Program " + Program

Obviously, I am falling into the final "else" condition.

I am quite new to Inno so any assistance would be appreciated.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:20 PM.


Copyright © 1999-2023 Kinook Software, Inc.