|
From: Rob M. <ro...@us...> - 2004-05-22 01:10:55
|
I would definitely suggest disabling this LaunchCondition on uninstall. It seems really harsh to require your users to have Word installed just to remove your product. <smile/> That said, it seems like your Condition "NOT Installed AND WORD11<>""" should work. Have you looked at a verbose log file for the install and uninstall and looked at all of the properties involved and verified that they are what you expect? -----Original Message----- From: wix...@li... [mailto:wix...@li...] On Behalf Of Sunny Sent: Tuesday, May 18, 2004 7:31 AM To: wix...@li... Subject: Re: [WiX-users] (no subject) I tried to use this with some success... Here is my code that almost works (checks MS Word): <Property Id="WORD11"> <RegistrySearch Id="w11" Root="HKLM" Key="Software\Microsoft\Office\11.0\Word\InstallRoot" Name="Path" Type="registry"/> </Property> <Condition Message="This application requires Microsoft Word 2000 or above to function correctly. Please install MS Word.">WORD11 <> ""</Condition> It works pretty good on installation. But on uninstallation (when I click on "Remove" in Add/Remove programs) it fails with ths condition's message. It seems so, that when uninstallation runs by clicking on "Remove", properties are not initialized... Am I right? So, the question is how to skip this condition on unistallation? I tried (NOT Installed) AND (WORD11 <> "") but it doesn't help... Thank you. On Mon, 17 May 2004 23:56:48 -0700 "Rob Mensching" <ro...@us...> wrote: >Currently, to get the actions to actually change order, you will need >to >specify the Sequence attribute on them. In this case, I think you >only need >to make sure the AppSearch element has a Sequence less than the >default for >LaunchConditions (which is sequenced at 100, I think). > >This has been raised as an issue and I'm looking at the best >alternative to >fix it. I'm currently leaning towards allowing AppSearch to have the >"Before"/"After" attributes. > >-----Original Message----- >From: wix...@li... >[mailto:wix...@li...] On Behalf Of Frederic >Villeneuve >Sent: Sunday, May 09, 2004 7:21 PM >To: or...@co...; wix...@li... >Subject: [WiX-users] (no subject) > >Thank you very much for the answer. > >I tried to add the Name attribute to the <RegistrySearch .../> entry >but I >still get the same error. > >I tried to add the following block ><InstallExecuteSequence> > <AppSearch/> > <LaunchConditions/> ></InstallExecuteSequence> > >But is didn't fix the problem either. > >Anybody has a working example using conditions? > >Frederic Villeneuve > >----- Original Message ----- >From: "Orion Edwards" <or...@co...> >To: "Frederic Villeneuve" <fvi...@ue...>; ><wix...@li...> >Sent: Friday, May 07, 2004 7:31 PM >Subject: Re: [WiX-users] Using Conditions > > >> You need a Name attribute. If I recall correctly you can't search >>for just >a >> key. >> >> Also if you then do that you need to make sure that the AppSearch >>action >> happens before the LaunchConditions action (if it doesn't by >>default). >> >> ----- Original Message ----- >> From: "Frederic Villeneuve" <fvi...@ue...> >> To: <wix...@li...> >> Sent: Saturday, May 08, 2004 5:33 AM >> Subject: [WiX-users] Using Conditions >> >> >> > Hello, >> > >> > I'm trying to setup a condition to detect if a product which my >>product >> > depends on is installed. >> > I tried the following and light.exe returns an error "LGHT009: >>There was >> an >> > error importing table: LaunchCondition with file.... >> > >> > <Product...> >> > ... >> > <Property Id='IS_PRODUCTX_INSTALLED'> >> > <RegistrySearch Id='SEARCH_PRODUCTX' Key='Software\ProductX' >> Root='HKLM' >> > Type='registry' /> >> > </Property> >> > >> > <Condition Message='You need to first install Product X'> >> > [IS_PRODUCTX_INSTALLED] >> > </Condition> >> > >> > </Product> >> > >> > I'm not sure how to create the missing LaunchCondition table. >> > >> > Does anybody have an example showing how to use Conditions? >> > >> > Another question is, what's the easiest way to find if the .NET >Framework >> is >> > installed? >> > So far I'm trying to check the registry entries under >> > HKLM\Software\Microsoft\.NetFramework >> > >> > >> > Thanks >> > >> |