0

I have SQL Script and executing that script as part of MSI Intallation using WIX Tool. Now I would like to declare a variable in the script and want to replace the variable value from Include file variable value.

Script:

CREATE TABLE $(tablename) (Value1 CHAR(50), Value2 INTEGER)

Include.wxi

<?define tablename = "Test" ?>

Now I want to replace the $(tablename) value with Test which is declared in Include file. can you help me how can I achive this

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139

1 Answers1

1

Try using $(var.tablename).

For reference, see http://wix.sourceforge.net/manual-wix3/preprocessor.htm

Dave Andersen
  • 5,337
  • 3
  • 30
  • 29
  • @nag_ mittapalli, has this helped you? i have a similar problem, but i want to use properties. – osiris Oct 28 '14 at 15:37
  • @osiris, this syntax is for pre-processor variables (evaluated at build time). If you want to use properties (evaluated during install), then you need to use the [property] syntax. – Dave Andersen Oct 29 '14 at 17:20