I have a similar problem. However, this solution does not seem to work for me.
I am trying to install an application to c:\PlatformSpecificProgramFilesFolder\[Manufacturer]\[ProductName] Here is the relevant directory structure <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="$(var.PlatformProgramFilesFolder)"> <Directory Id="ManufacturerDir" Name ="[Manufacturer]"> <Directory Id="INSTALLLOCATION" Name="[ProductName]" > ... ... </Directory> </Directory> </Directory> </Directory> Since the 'Name' attribute is not a formatted field I have defined following custom actions <CustomAction Id="SetManufacturerDirectory" Directory="ManufacturerDir" Value="[Manufacturer]" /> <CustomAction Id="SetProductNameDirectory" Directory="INSTALLLOCATION" Value="[ProductName]" /> I have tried to schedule these Before CostFinalize but I get a message to schedule it elsewhere as there are other custom actions so sequence numbers immediately before or after CostFinalize are not available. I therefore scheduled them with explicit sequence number after looking at MSI in ORCA. I am scheduling these in UI sequence because I need to show the directory to the user in the dialog as the features are in the configurable directory allowing the user to choose another install directory. <InstallUISequence> .... <Custom Action="SetManufacturerDirectory" Sequence="1005" /> <Custom Action="SetProductNameDirectory" Sequence="1006" /> ... <Show Dialog="WelcomeForm" Sequence="1007">Installed="" AND NOT RESUME</Show> ... </InstallUISequence> However, this does not work and on XP the path resolves to c:\Program Files\[Manufacturer]\[ProductName] Thanks Umesh Vishwajit Walke wrote: > > Thanks Nick. It worked for me !! > > -Vishwajit > > -----Original Message----- > From: Nick Ramirez [mailto:nickra...@hotmail.com] > Sent: Thursday, September 16, 2010 7:31 PM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] How to refer WIX properties within .wxs files > > > Oops. > > Replace Value="[VirtualDirectoriesdir]INSTALL_SHAREPOINT_PORT" > > with > > Value="[VirtualDirectoriesdir][INSTALL_SHAREPOINT_PORT]" > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-refer-WIX-properties-within-wxs-files-tp5537053p5538585.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > READER BEWARE: Unencrypted, unsigned Internet e-mail is inherently > insecure. > > Internet messages may be corrupted, incomplete, misdirected or may > incorrectly identify the sender. Therefore, nothing in this message or > attachments may be considered legally binding. > > THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL > OR ENTITY TO WHICH IT IS ADDRESSED AND MAY BE PRIVILEGED. > > If you are not the intended recipient or their authorized agent, you > may not forward or copy this information and must delete or destroy all > copies of this message and attachments received. > > If you have received this communication in error, please notify > Matrikon Inc. by telephone at (780) 448-1010 or emailing > ad...@matrikon.com. > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-refer-WIX-properties-within-wxs-files-tp5537053p5750657.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users