Hi, if I try your wxs and validate the resulting msi I get ICE12 ERROR CustomAction: Assign_E_ROOT is of type: 115 referring to a Directory. Therefore it must come before CostFinalize @ 1000 in Seq Table: InstallExecuteSequence. CA Seq#: 1002 ICE12 ERROR CustomAction: Assign_C_ROOT is of type: 115 referring to a Directory. Therefore it must come before CostFinalize @ 1000 in Seq Table: InstallExecuteSequence. CA Seq#: 1001 ICE68 ERROR Invalid custom action type for action 'Assign_E_ROOT'. ICE68 ERROR Invalid custom action type for action 'Assign_C_ROOT'.
Try to schedule both custom actions before CostInitialize. That prevents ICE12. Fixing ICE12 is probably enough. However, if you remove Return="ignore" from the custom action element ICE68 is gone, too. Custom action type 51 (set property) does not use that option. After that your example works as intended. Martin > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:wix-users- > [EMAIL PROTECTED] On Behalf Of Rafuse Robert > Sent: Dienstag, 11. Juli 2006 16:40 > To: 'wix-users@lists.sourceforge.net' > Subject: Re: [WiX-users] Examples on installing files tomultiple > folders/ partitions > > > You can use custom actions to set target paths to whatever you want. > > Just sequence them after CostFinalize. For the Cursors directory, > > create a Directory element with a name of Cursors under a Directory > > with an Id of WindowsFolder. WindowsFolder is hard-coded and Cursors > > is the "user-defined" one. > > Thanks for the reply... > > I've tried doing just that but have had no luck. > > Below is a simple .wxs file I was using to attempt installing files to > multiple target folders. The package has 3 text files, file_a.txt, > file_b.txt and file_c.txt. I want to install file_a.txt into folder > c:\acme, file_b.txt into folder e:\acme and file_c.txt into > c:\windows\cursors. > > File_c.txt gets installed in the correct location (thanks!), but both > file_a.txt and file_b.txt get installed to folder c:\root\acme. I'm > obviously doing something stupid, but I have no idea what... > > <?xml version="1.0"?> > <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> > <Product Id="A679F0A3-44CE-4E90-8C5D-57269B3641F5" > Name="Multi-Target Test" Language="1033" Version="1.0.0.0" > Manufacturer="Acme"> > <Package Id="4A6F3A50-807C-48A2-82F6-AC1A911ABDAD" > Description="Multi-Target Test Thingy" Comments="No comment" > InstallerVersion="200" Compressed="yes" /> > > <Media Id="1" Cabinet="MultiTarget.cab" EmbedCab="yes" /> > <Property Id="DiskPrompt" Value="MultiTarget Installation > [1]"/> > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="C_ROOT" Name="root"> > <Directory Id="c_acme" Name="acme"> > <Component Id="component.c_acme" > Guid="F1D1EF7B-DD2E-49A6-AD82-B5A27BD0823E"> > <File Id="file_a_txt" > Name="file_a.txt" LongName="file_a.txt" Vital="yes" src="file_a.txt" > DiskId="1"/> > </Component> > </Directory> > </Directory> > <Directory Id="E_ROOT" Name="root"> > <Directory Id="e_acme" Name="acme"> > <Component Id="component.e_acme" > Guid="0B0B24F9-A89D-4B34-ACFA-14E4E7B30D5B"> > <File Id="file_b_txt" > Name="file_b.txt" LongName="file_b.txt" Vital="yes" src="file_b.txt" > DiskId="1"/> > </Component> > </Directory> > </Directory> > <Directory Id="WindowsFolder" Name="windows"> > <Directory Id="windows.cursors" > Name="cursors"> > <Component > Id="component.windows.cursors" Guid="14DB7F5D-D2BE-4C2B-BCF3- > 4BF2A7921589"> > <File Id="file_c_txt" > Name="file_c.txt" LongName="file_c.txt" Vital="yes" src="file_c.txt" > DiskId="1"/> > </Component> > </Directory> > </Directory> > </Directory> > > <CustomAction Id="Assign_C_ROOT" Return="ignore" > Execute="immediate" Property="C_ROOT" Value="c:\" /> > <CustomAction Id="Assign_E_ROOT" Return="ignore" > Execute="immediate" Property="E_ROOT" Value="e:\" /> > > <InstallExecuteSequence> > <Custom Action="Assign_C_ROOT" > After="CostFinalize"></Custom> > <Custom Action="Assign_E_ROOT" > After="Assign_C_ROOT"></Custom> > </InstallExecuteSequence> > > <Feature Id="feature.Multi_Target_Test" Title="Multi-Target > Thingy" Level="1"> > <ComponentRef Id="component.c_acme"/> > <ComponentRef Id="component.e_acme"/> > <ComponentRef Id="component.windows.cursors"/> > </Feature> > </Product> > </Wix> > > The following snippet is extracted from the log file: > > Action ended 10:27:20: CostFinalize. Return value 1. > MSI (s) (5C:40) [10:27:20:091]: Skipping action: Assign_TARGETDIR > (condition is false) MSI (s) (5C:40) [10:27:20:091]: Doing action: > Assign_C_ROOT MSI (s) (5C:40) [10:27:20:091]: Note: 1: 2205 2: 3: > ActionText Action start 10:27:20: Assign_C_ROOT. > MSI (s) (5C:40) [10:27:20:091]: Skipping action due to > msidbCustomActionTypeFirstSequence option. > Action ended 10:27:20: Assign_C_ROOT. Return value 0. > MSI (s) (5C:40) [10:27:20:091]: Doing action: Assign_E_ROOT MSI (s) > (5C:40) [10:27:20:091]: Note: 1: 2205 2: 3: ActionText Action start > 10:27:20: Assign_E_ROOT. > MSI (s) (5C:40) [10:27:20:091]: Skipping action due to > msidbCustomActionTypeFirstSequence option. > Action ended 10:27:20: Assign_E_ROOT. Return value 0. > MSI (s) (5C:40) [10:27:20:091]: Doing action: InstallValidate > > This is where I get confused. > > I have not specified a custom action Assign_TARGETDIR, nor does one > appear in the .msi according to ORCA, so I assume this is some sort of > default action? > > Anyway, my two custom actions are getting skipped, allegedly because of > msidbCustomActionTypeFirstSequence, which I assume corresponds to the > execute="firstSequence" attribute of the CustomAction element... but I > have specified execute="immediate". I have also tried specifying no > execute attribute - which according to the docs, should be the same as > execute="immediate" - with the same result. > > Can anyone point out where I'm going astray? > > Thanks, > > --- > Bob > > > Important Note: This email and any attachment hereto are confidential > and may contain trade secrets or may be otherwise protected from > disclosure. If you have received it in error you are in notice of this > fact. Please notify us immediately by reply email and then delete this > email and any attachment from your system. Please understand that you > are not allowed to copy this email or any attachment hereto or disclose > its contents to any other person. > Thank you. > > > > > --- > Important Note: > > This e-mail message and any attachments are confidential and may be > privileged or otherwise protected from disclosure. If you are not the > intended recipient you must not use, copy, disclose or take any action > based on this e-mail or any information and attachment contained in the > message. If you have received this e-mail in error, please advise the > sender immediately by reply e-mail or telephone and delete this message > and any attachment from your system. > > Thank you. > > > > ----------------------------------------------------------------------- > -- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users