Hi

I can't make this work.

I haven't defined the custom actions DuplicateFiles or InstallSqlData. I didn't 
belive they where custom actions. InstallSqlData perhaps is a custom action 
defined by the SQL-extension but I don't know how the extensions works...

If I do as Yan suggests I get the error messages:
Unresolved reference to symbol 'CustomAction:DuplicateFiles' in section 
'Product:{GUID}'.
And
Unresolved reference to symbol 'WixAction:InstallUISequence/InstallSqlData' in 
section 'Product:{GUID}'.

I must be missing something simple...
 
-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: den 9 januari 2009 16:35
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to duplicate files before InstallSqlData

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

------------------------------------------------------------------------------
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