|
From: Sunny <afe...@ra...> - 2004-05-18 15:59:06
|
I tried to use this with some success...=20 Here is my code that almost works (checks MS Word): <Property Id=3D"WORD11"> <RegistrySearch Id=3D"w11" Root=3D"HKLM"=20 Key=3D"Software\Microsoft\Office\11.0\Word\InstallRoot" Name=3D"Path"=20 Type=3D"registry"/> </Property> <Condition Message=3D"This application requires Microsoft Word 2000 or=20 above to function correctly. Please install MS Word.">WORD11 <>=20 ""</Condition> It works pretty good on installation. But on uninstallation (when I=20 click on "Remove" in Add/Remove programs) it fails with ths=20 condition's message. It seems so, that when uninstallation runs by=20 clicking on "Remove", properties are not initialized... Am I right?=20 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=20 >to >specify the Sequence attribute on them. In this case, I think you=20 >only need >to make sure the AppSearch element has a Sequence less than the=20 >default for >LaunchConditions (which is sequenced at 100, I think). > >This has been raised as an issue and I'm looking at the best=20 >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=20 >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 -----=20 >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=20 >>for just >a >> key. >> >> Also if you then do that you need to make sure that the AppSearch=20 >>action >> happens before the LaunchConditions action (if it doesn't by=20 >>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=20 >>product >> > depends on is installed. >> > I tried the following and light.exe returns an error "LGHT009:=20 >>There was >> an >> > error importing table: LaunchCondition with file.... >> > >> > <Product...> >> > ... >> > <Property Id=3D'IS_PRODUCTX_INSTALLED'> >> > <RegistrySearch Id=3D'SEARCH_PRODUCTX' Key=3D'Software\ProductX' >> Root=3D'HKLM' >> > Type=3D'registry' /> >> > </Property> >> > >> > <Condition Message=3D'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 >> > >> > Frederic Villeneuve >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.Net email is sponsored by Sleepycat Software >> > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use=20 >>to >> > deliver higher performing products faster, at low TCO. >> > http://www.sleepycat.com/telcomwpreg.php?From=3Dosdnemail3 >> > _______________________________________________ >> > WiX-users mailing list >> > WiX...@li... >> > https://lists.sourceforge.net/lists/listinfo/wix-users >> > >> >> >=20 > =20 > > >------------------------------------------------------- >This SF.Net email is sponsored by Sleepycat Software >Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to=20 >deliver higher performing products faster, at low TCO. >http://www.sleepycat.com/telcomwpreg.php?From=3Dosdnemail3 >_______________________________________________ >WiX-users mailing list >WiX...@li... >https://lists.sourceforge.net/lists/listinfo/wix-users > > > >------------------------------------------------------- >This SF.Net email is sponsored by: SourceForge.net Broadband >Sign-up now for SourceForge Broadband and get the fastest >6.0/768 connection for only $19.95/mo for the first 3 months! >http://ads.osdn.com/?ad_id=3D2562&alloc_id=3D6184&op=3Dclick >_______________________________________________ >WiX-users mailing list >WiX...@li... >https://lists.sourceforge.net/lists/listinfo/wix-users =09 |