0
votes

Simple question I hope,

I would like to install my app, into "C:\program files\MyApp v1.0.0.1"

The name is always the same but the last part "v1.0.0.1" will change each release.

I can just hard code the whole folder name, it works, but for sure I will for get to update this line one day.

Can I not "&" the "AppVersion" to the string for "DefaultDirName"

I found this: [Inno Setup setup file name append AppVersion

and tried:

AppVersion=1.4.0.0
AppPublisher=ABC
AppPublisherURL=""
DefaultDirName={pf}MyApp + ("AppVersion")

It comppiles, but when I run it, it gives an error message somthing like ...?!/. etc can not be in the file name...

Any ideas, seems simple, I just don't know how to do it :-( Thanks Ross

1

1 Answers

1
votes

Try this

#define MyAppVersion "1.0.0.1"

[setup]
AppVersion={#MyAppVersion}
DefaultDirName={pf}\{#MyAppName} v{#MyAppVersion}