Hi Rob,

Thank you for the reply.

How can this be achieved. I have seen in one of the forums that this can be 
done with custom actions.

I am trying to write a custom action in the following, but it is not working. I 
am not able to figure out the mistake.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <Product Id="bfb13c62-6766-47a5-b1b4-f0fc1694ba58" 
Name="CustomActionsSetup" Language="1033" Version="1.0.0.0" 
Manufacturer="CustomActionsSetup" 
UpgradeCode="5a508d87-31ff-4b19-b64e-30014cd9fe70">
                <Package InstallerVersion="200" Compressed="yes" />

                <Media Id="1" Cabinet="CustomActionsSetup.cab" EmbedCab="yes" />

    <Property Id="MYRPPBKPATH"><![CDATA[D:\]]></Property>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="MYRPPBKPATH" Name=".">
         <Component Id="Component1" 
Guid="{bfb13c62-6766-47a5-b1b4-f0fc1694ba59}">
            <File Id="ReadMe" DiskId="1" Name="Readme.txt" Source="Readme.txt" 
Vital="yes" KeyPath="yes" />
         </Component>
        </Directory>
      </Directory>
    </Directory>

    <Feature Id="ProductFeature" Title="RPPDSSSetup" Level="1">
      <ComponentRef Id="Component1"/>
    </Feature>
    <Binary Id="MyCA" 
SourceFile="D:\Samples\CustomActionsSetup\CustomActionsSetup\CustomAction.exe"/>

    <!--<CustomAction Id="DoSomething" BinaryKey="MyCA" 
ExeCommand='D:\Samples\CustomActionsSetup\CustomActionsSetup\CustomAction.exe 
"D:\Samples\EnvironmentConfig.xml" "RPP" "BACKUP"' Execute="deferred" 
Return="check" HideTarget="no" Impersonate="no" />-->
    <CustomAction Id="DoSomething" BinaryKey="MyCA" 
ExeCommand='"D:\Samples\EnvironmentConfig.xml" "RPP" "BACKUP"' 
Execute="deferred" Return="check" HideTarget="no" Impersonate="no" />



    <InstallExecuteSequence>

      <Custom Action="DoSomething" Before="InstallFinalize" />

    </InstallExecuteSequence>



  </Product>
</Wix>

Thank You,
Madhavi.

-----Original Message-----
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2008 11:30 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How can I control the Order of Component Installation.

Windows Installer doesn't work that way.

-----Original Message-----
From: MadhaviAthota [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2008 21:18
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How can I control the Order of Component Installation.


Hi All,

I have a scenario where I need to take

      Backup of already existing files.
      Remove the files.
      Copy new files into the above location.
      Copy back only the Web.Config file from the backup location.

I have written seperate components for each step in WIX .wxs file.
When I am trying to run the MSI, the components are not running in the order
required. First the files are getting removed, then the backup step is
comming into play, and running into errors as the files were already removed
from the backup location.

Is there a way in WIX through which I can control the order.

Thanks in advance,
Madhavi.


--
View this message in context: 
http://n2.nabble.com/How-can-I-control-the-Order-of-Component-Installation.-tp1305604p1305604.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


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


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

Reply via email to