It sounds like you want the IISico
property to be set to "WrongClick"
when ASP.NET is not enabled. If so your condition should look more like:
<SetProperty Id="IISico" Value="WrongClick" After="CostFinalize">
ASPNETENABLED AND (IISMAJORVERSION = "#6" OR IISMAJORVERSION = "#7")
</SetProperty>
That condition says, "Run the SetProperty
custom action if ASPNETENABLED
is defined (aka: not an empty string) and that IISMAJORVERSION
is either #6
or #7
."
I don't know why you included Installed
in the condition originally. It would make the WrongClick
set any time that the package was already installed. That doesn't sound like what you described.