Thanks for your reply. I tried it but it gives 

error LGHT0100 : File of type 'File' with name
'($var.HelpSourceFolder)\tutorial.pdf' could not be found.

I made sure that specified file exists at the specified path. Is there any
other way? Does any tutorial explain that?

Hina


Richard.Foster wrote:
> 
> Hina,
> 
> It sounds as if what you really want is a standard preprocessor
> variable.
> 
> Try something like this:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <?ifndef HelpSourceFolder?>
> <?define HelpSourceFolder=C:\SomeFolder\Path?>
> <?endif ?>
> 
> ...
> 
> <File Id='tutorial' Name='tutorial.pdf' DiskId='1'
> Source='$(var.HelpSourceFolder)\tutorial.pdf' Vital='no' />
> 
> ...
> 
> The <?ifndef XXXX?> mechanism shown above allows you to specify a
> default value for the setting, and also override that setting from the
> command line using (for example) candle
> -dHelpSourceFolder=d:\New\Help\Source yourfile.wxs.
> 
> Hope this helps,
> Regards,
> Richard
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of hina1703
> Sent: Thursday, October 11, 2007 2:16 PM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Set path variable & use it to install files.
> 
> 
> Richard,
> 
> Thanks for the reply. I am trying to specify the source folder at build
> time. Rather than hard coding the path to pull the files for
> installation, I
> need to set the path variable. So that if I change the source folder, I
> just
> need to redefine the path variable & rebuild the installer.
> I need to specify similar to InstallShield Path Variables section.
> 
> Regards,
> Hina 
> 
> 
> 
> * C O N F I D E N T I A L I T Y N O T I C E *
> -----------------------------------------------------------
> The content of this e-mail is intended solely for the use of the
> individual or entity to whom it is addressed. If you have received this
> communication in error, be aware that forwarding it, copying it, or in any
> way disclosing its content to any other person, is strictly prohibited.
> Quixote Traffic Corporation is neither liable for the contents, nor for
> the proper, complete and timely transmission of (the information contained
> in) this communication. If you have received this communication in error,
> please notify the author by replying to this e-mail immediately and delete
> the material from any computer.
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Set-path-variable---use-it-to-install-files.-tf4608453.html#a13162168
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to