Hello,
I have 1 feature that is installed to ProgramFilesFolder if 32bit or
ProgramFiles64Folder if 64 bit, another feature will always go to
ProgramFilesFolder...
I have an include file that has:
<?if $(var.Platform) = x64 ?>
<?define PlatformProductName = "$(var.ProductName) (64 bit)" ?>
<?define Win64 = "yes" ?>
<?define DotNetFramework40Folder
="[%SystemRoot]\Microsoft.NET\Framework64\v4.0.30319\" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?>
<?define PlatformProductName = "$(var.ProductName)" ?>
<?define Win64 = "no" ?>
<?define DotNetFramework40Folder
="[%SystemRoot]\Microsoft.NET\Framework\v4.0.30319\" ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?>
<?define Platformx86ProgramFilesFolder = "ProgramFilesFolder"?>
My first feature is set like this:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)">
<Directory Id="$(var.PlatformProgramFilesFolder).MyCompanyTMC"
Name="COMPANY">
so if 32bit it it C:\Program Files (x86)\COMPANY
My second feature:
<Directory Id="ServicesDestination"
Name="$(var.Platformx86ProgramFilesFolder)">
<Directory Id="ServicesDestination.MyCompanyServices"
Name="COMPANY">
<Directory Id="INSTALLDESTINATION" Name="Services" DiskId="1">
but my services are being installed to: C:\ProgramFilesFolder\COMPANY
I can't use:
<Directory Id="$(var.Platformx86ProgramFilesFolder)">
<Directory
Id="$(var.Platformx86ProgramFilesFolder).MyCompanyServices" Name="TITUS">
because at compile time I get this error:
Error 2 Duplicate symbol 'Directory:ProgramFilesFolder' found. This
typically means that an Id is duplicated. Check to make sure all your
identifiers of a given type (File, Component, Feature) are unique.
C:\Dev\Core Technologies\Main\Setup\TMC_Client_Setup\Product.wxs 160
1
TMC_Client_Setup
How hard can it be to set 1 feature to go to either x86 or x64 program files
while my other feature goes to x86 program files??
thanks,
Steve
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/different-features-to-different-ProgramFilesFolder-tp7581021.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users