- status: open --> open-remind
When I use GetStringFileInfo(filename, PRODUCT_NAME)
or GetStringFileInfo(filename, INTERNAL_NAME), the
return seems to have something funny on the end. I can
assign the result to a #define constant, but I can't
use the constant from then on without an error.
What occurs is that when I try to use the constant in,
lets say, output filename, with '_Setup', appended to
the end, then I get a file name with only the constant.
ie
<code>
#define MyAppInternalName GetStringFileInfo
(MyAppExePath, INTERNAL_NAME)
[Setup]
OutputBaseFilename={#MyAppInternalName}_Setup
</code>
OutpuBaseFilename would return the same value as
MyAppInternalName
also when I try to use these as part of one of the
sections, I get an error, ie
<code>
#define MyAppName GetStringFileInfo(MyAppExePath,
PRODUCT_NAME)
[Icons]
Name: {group}\{#MyAppName}; Filename: {app}
\{#MyAppExeName}
</code>
I get a compile error, 'Required parameter "Filename"
not specified.' for the Icon line...