Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

automated build inno setup error

This question is regarding getting version directly from assembly. I have followed instructions from this post

My script looks as follow.

#define MyAppName "Keyboard Trader"
#define SrcApp "Keyboard Trader.exe"
#define FileVerStr GetFileVersion(SrcApp)
#define StripBuild(str VerStr) Copy(VerStr, 1, RPos(".", VerStr)-1)
#define AppVerStr StripBuild(FileVerStr)

But while compiling script it throws following Error

Compile started: Tuesday, Oct 11 2011 at 01:15 AM
---
Compiling script with Inno Setup 5.4.2 (a)
---
[ISPP] Preprocessing.
---------------------
Compile Error!
Line: 12
**Error: [ISPP] Actual parameter VerStr is not of the declared type.**

What I am missing here?

like image 733
mchicago Avatar asked Oct 20 '25 15:10

mchicago


1 Answers

GetFileVersion() is returning a blank string as it can't find the the SrcApp path. Try specifying a fully qualified path or using:

#define SrcApp AddBackslash(SourcePath) + "Keyboard Trader.exe"
like image 153
Deanna Avatar answered Oct 25 '25 13:10

Deanna



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!