开发者

Pre-requisite Check on Uninstall

开发者 https://www.devze.com 2022-12-13 10:06 出处:网络
I am using开发者_开发百科 the below code to check one of my pre-requisite. <Property Id=\"PRE_INSTALLATION\">

I am using开发者_开发百科 the below code to check one of my pre-requisite.

<Property Id="PRE_INSTALLATION">
<RegistrySearch Id="RegistrySearch" Root="HKLM" Type="raw" Name="Current Resource" Key="SOFTWARE\ABC\BCD"/>
</Property>
<Condition Message="[ProductName] requires ABC.">PRE_INSTALLATION</Condition>

The problem is that this gets executed even on un-install. How do I disable this condition check during un-install.


Solved..

It is just that I have to use

<Condition Message="[ProductName] requires ABC."><![CDATA[Installed OR PRE_INSTALLATION]]>

Have a great day.

Bye.

0

精彩评论

暂无评论...
验证码 换一张
取 消