OK i have used OS_Check Custom Action like this:

<Custom Action='CA_OSCHECK' After='CA_IsPrivileged'>   <![CDATA[NOT
(Installed OR (VersionNT >= 600 AND ServicePackLevel >= 2) OR
(VersionNT >= 601 AND ServicePackLevel >= 1) OR (VersionNT >=
602))]]></Custom>

Everything is working great :)
But while building the project I am getting this warning.

ICE03: String overflow (greater than length permitted in column); Table:
CustomAction, Column: Target, Key(s): CA_OSCHECK

I don't want to ignore this warning. How can I resolve this?


On Fri, May 11, 2012 at 5:08 PM, Ravi Raj <raviraj.callin...@gmail.com>wrote:

> Yup I get my mistake...... many thanks
>
>
> On Fri, May 11, 2012 at 4:50 PM, Peter Shirtcliffe 
> <pshirtcli...@sdl.com>wrote:
>
>> Isn't your logic backwards ? The error custom action will run if you are
>> installed or have vista SP2+ or have win7 sp1+. Launch conditions must be
>> true to continue with installation; error custom actions must be true to
>> issue an error.
>>
>> -----Original Message-----
>> From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
>> Sent: 10 May 2012 09:30
>> To: General discussion for Windows Installer XML toolset.
>> Subject: [WiX-users] Custom Action Type 19 in WiX 3.6 RC
>>
>> I am using following but its not working (at-least OS check should work
>> but
>> its not):
>>
>> <InstallExecuteSequence>
>>      <Custom Action='CA_IsPrivileged' Before='LaunchConditions'>
>>        Not Privileged
>>      </Custom>
>>      <Custom Action='CA_OSCHECK' After='CA_IsPrivileged'>
>>        Installed OR (VersionNT=600 AND ServicePackLevel>=2) OR
>> (VersionNT=601 AND ServicePackLevel>=1)
>>      </Custom>
>>      <Custom Action='CA_DOTNETFRAMEWORK' After='CA_OSCHECK'>
>>        Installed OR NETFRAMEWORK40CLIENT OR NETFRAMEWORK40FULL
>>      </Custom>
>>      <Custom Action='CA_SCOM2012CHECK' After='CA_DOTNETFRAMEWORK' />
>> </InstallExecuteSequence>
>>
>> And in CustomAction.wxs file I defined it as:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>>  <Fragment>
>>    <CustomAction Id='CA_IsPrivileged'
>> Error='!(loc.ValidationAdministrator)' />
>>    <CustomAction Id='CA_OSCHECK' Error='!(loc.ValidationOperatingSystem)'
>> />
>>    <CustomAction Id='CA_DOTNETFRAMEWORK'
>> Error='!(loc.ValidationDotNetFramework)' />
>>    <CustomAction Id='CA_R2CHECK' Error='[R2CHECK]' />
>>  </Fragment>
>> </Wix>
>>
>> The last custom action is a component search (highly important to have) is
>> defined as:
>>    <Property Id="R2CHECK" Value="!(loc.ValidationR2)">
>>      <ComponentSearch Id="CMPSRCH_R2CHECK"
>>                       Guid="{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" />
>>    </Property>
>>
>> When I am running the setup, its going on executing on my Windows XP
>> machine.
>> OS Validation not working as is only for Win 7 SP1 or Win Server
>> 2008 R2 SP1 also the component which I have a check is not present on this
>> machine.
>>
>> --
>> Thanks and Regards,
>> Ravi Raj
>>
>> -----------------------------------------------------------------------------
>> -
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and threat
>> landscape has changed and how IT managers can respond. Discussions will
>> include endpoint security, mobile security and the latest in malware
>> threats.
>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> SDL PLC confidential, all rights reserved.
>> If you are not the intended recipient of this mail SDL requests and
>> requires that you delete it without acting upon or copying any of its
>> contents, and we further request that you advise us.
>> SDL PLC is a public limited company registered in England and Wales.
>>  Registered number: 02675207.
>> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
>> SL6 7DY, UK.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
>
> --
> Thanks and Regards,
> Ravi Raj
>
>


-- 
Thanks and Regards,
Ravi Raj
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to