I think you can do it like this:

<InstallExecuteSequence>
...
   <Custom Action="DuplicateFiles" Before="InstallSqlData">YOUR CONDITION GOES 
HERE</Custom>
...
</InstallExecuteSequence>

-- Yan

-----Original Message-----
From: Peter Björkman [mailto:peter.bjork...@aptus.se] 
Sent: Friday, January 09, 2009 4:38 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to duplicate files before InstallSqlData

Hello

 

I need to duplicate some files before my sql scripts are being run. How can I 
schedule the InstallSqlData after the DuplicateFiles? The files I need to copy 
is being installed so duplicate files must come between InstallFiles and 
InstallSqlData.

 

Now my actions have theses sequence numbers:

 

InstallFiles 4000

InstallSqlData 4001

DuplicateFiles 4200

 

And I need something like this:

 

InstallFiles 4000

DuplicateFiles 4100

InstallSqlData 4101

 

 

The reason why I need to do like this is that I have a sql-script attaching a 
pair of .mdf and .ldf -files with sp_attach_db. In some cases I need to use 
another pair of .mdf and .ldf -files.

 

Best regards

Peter Björkman

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to