MSDN topic on REMOVE property 
(http://msdn.microsoft.com/en-us/library/aa371194(VS.85).aspx) states:

"...the REMOVE property may not equal ALL until after the InstallValidate 
action."

On the other hand, instead of saying "if not fresh install and not uninstall 
and not patch and not upgrade" just use REINSTALL property as suggested by 
Sébastien.  Be careful though because REPAIR is set during patching as well 
(read http://blogs.msdn.com/heaths/archive/2005/08/12/451037.aspx).


Alex



-----Original Message-----
From: Andy2k8 [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2008 4:20 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Problem disabling "Repair"


Hello there

I have a strange problem with the type 19 CA that is used to exit the
installer if repair is chosen.
I run the following CA:
<CustomAction Id="ExitOnRepair" Error="This installer does not support
repair."/>
<InstallExecutesequence>
<Custom Action="ExitOnRepair" After="LaunchConditions">Installed AND NOT
(REMOVE="ALL")</Custom>
</InstallExecutesequence>
It works fine when i try to repair the installation.
But when i uninstall by double clicking the MSI and clicking remove button,i
see that this CA is getting executed and the installer exits..how can this
happen? i couldn't find anything from the debug logs

any help???



Andy2k8 wrote:
>
> rotf..
> I just have to exit the installer before the user runs the repair
> sequence.
> So have sequenced it before <InstallValidate/> and the installer exits
> saying "repair is not supported"
> Is that really like taking a bazooka to dril a hole ? :)
>
>
> Sébastien Mouren wrote:
>>
>> 2008/10/24 Andy2k8 <[EMAIL PROTECTED]>:
>>>
>>> thank you so much for the responses
>>> I have added a type 19 custom action and conditioned it to run upon
>>> repair
>>
>> Using a CustomAction for this purpose is like taking a bazooka to
>> drill a hole...
>>
>>> What configuration change should i make to the Operating Sysem to remove
>>> repair from the msi right click menu?
>>>
>>
>> Un-register part of the shell extension, this is dangerous, would
>> damage the system, and potentially break future update to the Windows
>> Installer service.
>> They may have something for you -supported- in Group Policy, but I'm not
>> sure.
>>
>>> Sébastien Mouren wrote:
>>>>
>>>> 2008/10/24 Andy2k8 <[EMAIL PROTECTED]>:
>>>>>
>>>>> I get the repair option when right clicked the msi file even though i
>>>>> set
>>>>> ARPNOREPAIR property to 1..
>>>>> How do i get rid of repair from the right click menu?
>>>>
>>>> Put a LaunchCondition testing the value of the REINSTALL property. Act
>>>> accordingly.
>>>> It won't disable the repair in the context menu, nor in the command
>>>> line but the repair won't be able to execute.
>>>>
>>>>> -----
>>>>> Andy
>>>>> MSI Developer
>>>>> Schneider Electric:working:
>> -------------------------------------------------------------------------
>> 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
>>
>>
>
>


-----
Andy
MSI Developer
Schneider Electric:working:
--
View this message in context: 
http://n2.nabble.com/Problem-disabling-%22Repair%22-tp1371155p1371691.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

Reply via email to