Hi,

If you want to execute a component ONLY during a certain first install and
not repair/remove (very useful with SQL scripts), do the following:

<Component Id="YOUR-ID-GOES-HERE" Guid="YOUR-GUID-GOES-HERE" KeyPath="yes"
Transitive="yes">
<Condition>Not Installed</Condition>

The condition will ensure to install the component only on first install,
and the Transitive="yes" will ensure that the condition is re-evaluated
every time the msi is run, to avoid running the component on reinstall.

Enjoy,

Eitan


On Wed, Oct 1, 2008 at 12:16 AM, Sandeep Gautam (HCL Technologies Ltd) <
[EMAIL PROTECTED]> wrote:

> Resending my query.
>
> -----Original Message-----
> From: Sandeep Gautam (HCL Technologies Ltd) [mailto:[EMAIL PROTECTED]
> ]
> Sent: Tuesday, September 30, 2008 12:17 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Do not want to execute component on repair and Remove
>
>  Hi,
>
> I want to execute a component at the time of first time installation. Don't
> want to execute at repair and remove option. Please help me out what
> condition shall I add.
> Its very urgent.
>
> Regards
> -Sandeep
>
>
> -------------------------------------------------------------------------
> 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