Using Path variables in Table Editor filenames - Advanced Installer Community
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

Using Path variables in Table Editor filenames

I am using Advanced Installer 11.2.1.
I have defined a path variable, name TFS1 , value D:\tfs1
In the Custom Behavior\Table Editor page, for the Binary table, I am trying to add a new setting, "myfiledata" say, with value that is a file path, which on my development machine is say "D:\tfs1\files\filename.dll".
I wanted to specify the value for my entry in the binary table as <TFS1>files\filename.dll, so that on our build machine, where the path will be different, we can define the TFS1 path variable appropriately and the Table Editor will pick up the file from the correct location.
However, when I try doing this on my build development machine, I get an error when building the project, reported as 'File "<TFS1>files\filename.dll" could not be read.'

Whereas in the Resources\Files and Folders page, the files I have added to the target computer\application folder do make use of this path variable - their paths are displayed with the variable expanded, but if I edit a file and look at its properties, the source path shows the path variable is being used.

Can path variables be used in the Table Editor ? If not, can you suggest any alternative method to achieve what I want?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Using Path variables in Table Editor filenames

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Unfortunately, as you already noticed, you cannot use a path variable in our "Table Editor" page. However, can you share with us why you need to manually add a new file in the "Binary" table?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psf
Posts: 43
Joined: Wed Jun 04, 2014 11:00 am

Re: Using Path variables in Table Editor filenames

I have found an answer to the underlying problem I was trying to get round on another post. I had some custom actions in a 64-bit .net assembly (with class derived from Installer), and I was having problems with installlibutil.dll error 1001. I had thought I might have needed to add the 64-bit installutillib.dll into the binary table, as we used to have to do with Visual Studio setups. However, adding a config.xml file and adding a SetProperty entry in the custom action sequence , as described in the 'Why do I receive the "Error 1001.InstallUtilLib.dll" error?' Errors FAQ, has fixed this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Using Path variables in Table Editor filenames

I'm glad you sorted this out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”