Look in the Wix help file under "Preprocessor". In the section called "System
Variables" there are some useful predefined values you can use.
$(sys.SOURCEFILEDIR) is the one you want.

-----Original Message-----
From: Troy Teixeira [mailto:tteixe...@polariswireless.com] 
Sent: 21 February 2012 23:06
To: wix-users@lists.sourceforge.net
Cc: Greg Edwards
Subject: [WiX-users] WIX location project bin folder

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";>
  <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
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
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

Reply via email to