Thanks for responding Rob. Forgive me if my terminology is off, I'm not sure if it would be called a variable so let me show you and explain. When I'm working in Visual Studio I would like to use a single name like "SourceDir" instead of a relative path so that when the project is published/built on the server and the path is different I don't have a failure when trying to build the project. I hope I'm explaining this okay. I'm not a programmer and I'm totally new to this. I'm working on something specific for a team I work with. ________________________________
Use something like this: Source="SourceDir" Instead of: Source="..\HelloWorld\bin\Debug\HelloWorld.exe" ________________________________ Thank you, Troy -----Original Message----- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Tuesday, February 21, 2012 9:32 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] WIX location project bin folder What variable would you like to use? On Tue, Feb 21, 2012 at 3:05 PM, Troy Teixeira < tteixe...@polariswireless.com <mailto:tteixe...@polariswireless.com> > wrote: > WIX community, > > I am new to WIX. I am attempting to build a simple installer. Below is > a copy of my installer xml file. In the Source definition I would like > to reference the location of the output of the HelloWorld.exe file. My > sample is referencing a relative path. I would like to use a WIX > variable to do this instead of the relative path. How should I do this? > > Thank you in advance, > Troy > ________________________________ > > <?xml version="1.0" encoding="UTF-8"?> <Wix > xmlns="http://schemas.microsoft.com/wix/2006/wi <http://schemas.microsoft.com/wix/2006/wi> "> > <Product Id="*" UpgradeCode="12345678-1234-1234-1234-111111111111" > Name="Hello World" Version="0.1.1" Manufacturer="Polaris > Wireless" Language="1033"> > <Package InstallerVersion="200" Compressed="no" Comments="Windows > Installer Package"/> > <Media Id="1" EmbedCab="no"/> > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder"> > <Directory Id="INSTALLDIR" Name="HelloWorldInstaller"> > <Component Id="ApplicationFiles" > Guid="12345678-1234-1234-1234-111111111111"> > <File Id="HelloWorld" > Source="..\HelloWorld\bin\Debug\HelloWorld.exe"/> > </Component> > </Directory> > </Directory> > </Directory> > > <Feature Id="DefaultFeature" Level="1"> > <ComponentRef Id="ApplicationFiles"/> > </Feature> > </Product> > </Wix> > ________________________________ > > > > ---------------------------------------------------------------------- > -------- Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d <http://p.sf.net/sfu/learndevnow-d2d> > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net <mailto:WiX-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wix-users <https://lists.sourceforge.net/lists/listinfo/wix-users> > -- virtually, Rob Mensching - http://RobMensching.com <http://RobMensching.com> LLC ------------------------------------------------------------------------ ------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ <http://www.accelacomm.com/jaw/sfnl/114/51521223/> _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net <mailto:WiX-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wix-users <https://lists.sourceforge.net/lists/listinfo/wix-users> ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users