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 Richard.Foster wrote: > > Hina, > > The $(env.Whatever) construct is used to pull a setting from the system > environment at build time. > > The <Environment> element is used to configure an environment setting on > the machine where the installation is performed. > > The "correct" answer will depend on what you are actually trying to > accomplish. Are you looking to specify the source folder at build time, > a destination folder at installation time, or something completely > different? > > Regards, > Richard > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of hina1703 > Sent: Thursday, October 11, 2007 12:26 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Set path variable & use it to install files. > > > I am looking for a way to set path variables in wxs file & use it to > copy the > files to the targetdir. > > I have written the following code: > > <Component Id='sepPath' Guid='{18422F21-C884-45f3-A1BD-FAD31DBEC55B}'> > <Environment Id='setHelpPath' Name='PATH1' Action='create' System='no' > Value='C:\WIX\HelpFiles'/> > </Component> > > then I am using it to copy the help file: > > <File Id='tutorial' Name='tutorial.pdf' DiskId='1' > Source='$(env.PATH1)\tutorial.pdf' Vital='no' /> > > But while compiling I get error: > "fatal error CNDL0023: Undefined environment variable: $(env.PATH1)". > > Can somebody please tell me how to get it right? > > Thanks, > HINA > > > > -- > > 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 > > > > * 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#a13161667 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