Hi, I want to provide the TARGETDIR value from command prompt while running the MSI, Please suggest me how the value can be provided, the WIX XML is
<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="76192393-fb06-4d39-b398-e4d1aa99ffdd" Name="RPPSetup" Language="1033" Version="1.0.0.0" Manufacturer="RPPSetup" UpgradeCode="7bb9d1b3-2df5-4024-b876-0648a5595349"> <Package InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="RPPSetup.cab" EmbedCab="yes" /> <!-- Pre Requisite Checks for .Net Frameworks 2.0,3.0,3.5--> <Property Id="NETFRAMEWORK20"> <RegistrySearch Id="NetFramework20" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v2.0.50727" Name="Install" Type="raw" /> </Property> <Property Id="NETFRAMEWORK30"> <RegistrySearch Id="NetFramework30" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v3.0" Name="Install" Type="raw" /> </Property> <Property Id="NETFRAMEWORK35"> <RegistrySearch Id="NetFramework35" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v3.5" Name="Install" Type="raw" /> </Property> <Property Id="TARGETDIR" Value="NULL" /> <Property Id="AccountManagementPATH" Value='[TARGETDIR]\AccountManagement'></Property> <Condition Message="The .NET Framework 2.0 must be installed"> <![CDATA[Installed OR NETFRAMEWORK20]]> </Condition> <Condition Message="The .NET Framework 3.0 must be installed"> <![CDATA[Installed OR NETFRAMEWORK30]]> </Condition> <Condition Message="The .NET Framework 3.5 must be installed"> <![CDATA[Installed OR NETFRAMEWORK35]]> </Condition> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id='MyDir' Name='TestProg'> <Component Id='RemoveRPPFiles' Guid='76192393-fb06-4d39-b398-e4d1aa99ffda'> <Condition> <![CDATA[ TARGETDIR <> "NULL" ]]> </Condition> <RemoveFile Id="RemoveAccountManagementWebConfigFile" Name="*" On="install" Property="AccountManagementPATH"></RemoveFile> <CreateFolder /> </Component> </Directory> </Directory> </Directory> <Feature Id="ProductFeature" Title="RPPSetup" Level="1"> <ComponentRef Id='RemoveRPPFiles' /> </Feature> </Product> </Wix> Thank You -- View this message in context: http://n2.nabble.com/How-to-provide-the-property-to-the-WIX-xml.-tp1335824p1335824.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users