Dynamic file name

Got a problem you cannot solve? Try here.
Post Reply
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Dynamic file name

Post by tzachk »

Hi Support,

In my server installer, I'm including an MS SQL DB bak file.
The DB bak file name is synamic, pending on the version number.
Example, for verion 1.1 the file name is db1.1.bak, for version 2.0 the name shall be db2.0.bak.

I'm trying to use Install Files c:\db$VERSION$.bak, but during compile it doesn't find the file ($VERSION$ is the version of the running setup which mateches the db bak version).

ANy ideas?

Regards,
T.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Dynamic file name

Post by FrancescoT »

Dear Tzachk,

Script variables can't be used with the command and you should use a compiler variable for that.

Please refer to the following topic ... where I posted a sample for a similar question.
http://www.installaware.com/forum/viewt ... f=2&t=8927

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply