I want to pass a path (via command line arg /D
to the script compiler) to my executable to let my script determine the application version number using GetFileVersion
, but my syntax isn't correct. How do I pass an argument to GetFileVersion
?
The error is: Illegal character in input file: '#' (0x23)
#define srcpath SOURCEPATH
#define ApplicationVersion GetFileVersion(#srcpath)//error here!!!!!!
[Setup]
AppVersion={#ApplicationVersion}
[Files]
Source: "MyDllTesting.dll"; Flags: dontcopy
Source: "{srcpath}MyApplication1.exe"; DestDir: "{app}\MyApplication1"