HighTechTalks DotNet Forums  

Re: Launch conditions and registry search woes

Visual Studio.net (General) microsoft.public.vsnet.general


Discuss Re: Launch conditions and registry search woes in the Visual Studio.net (General) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Re: Launch conditions and registry search woes - 07-23-2003 , 09:11 AM






Hi Michal,

I tried your suggestion, just changing the Condition on the LC to
[MSMQEXISTS]=#1, but alas it did not work. I changed the registry
value of Software\Microsoft\MSMQ\Setup\msmq_Core to 0, and the LC
doesn't abort the installation. Basically it seems to always evaluate
to true. Even if i delete the msmq_Core value completely, the
installation doesn't stop with the error message that MSMQ is missing.

Any other ideas?

Andy

misampso (AT) online (DOT) microsoft.com (Michal Sampson [MSFT]) wrote in message news:<gYiVCTJUDHA.2236 (AT) cpmsftngxa06 (DOT) phx.gbl>...
Quote:
MSI packages use special characters to indicate DWORD or binary values. In
you Launch Condition, set MSMQEXISTS equal to #1 rather than 1 and it
should work just fine.

For more information about registry searches, check out:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/r
eglocator_table.asp

The bottom of the page shows how to search for values of differing data
types.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: andy.johnstone (AT) refinery (DOT) com (Andy)
Newsgroups: microsoft.public.vsnet.general
Subject: Launch conditions and registry search woes
Date: 22 Jul 2003 11:05:31 -0700

Hi all,

I'm having a problem getting a launch condition based on a registry
search working. I'm trying to see if MSMQ is installed, and if its
not, abort the installation.

The registery search is setup as follows:
(Name) MSMQ
Property MSMQEXISTS
RegKey Software\Microsoft\MSMQ\Setup\msmq_Core
Root vsdrrHKLM
Value (left blank)

Launch condition set as:
(Name) MSMessageQueue
Condition MSMQEXISTS=1
Message [MSMQEXISTS] my error message

I've tried different Values for the Registery search, as well as
changing the condition for the LC, but nothing seems to work (except
setting Condition to 1=1). What am I doing wrong?

Thanks
Andy


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Launch conditions and registry search woes - 07-23-2003 , 03:51 PM






There are 2 issues.

First, you need to change your registry search to the following:

(Name) MSMQ
Property MSMQEXISTS
RegKey Software\Microsoft\MSMQ\Setup
Root vsdrrHKLM
Value msmq_Core

Second, your condition should read:

(Name) MSMessageQueue
Condition MSMQEXISTS="#1"
Message [MSMQEXISTS] my error message

The double quotes around the #1 is the key. Please post again if the
problems continue.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
Quote:
From: andy.johnstone (AT) refinery (DOT) com (Andy)
Newsgroups: microsoft.public.vsnet.general
Subject: Re: Launch conditions and registry search woes
Date: 23 Jul 2003 07:11:32 -0700

Hi Michal,

I tried your suggestion, just changing the Condition on the LC to
[MSMQEXISTS]=#1, but alas it did not work. I changed the registry
value of Software\Microsoft\MSMQ\Setup\msmq_Core to 0, and the LC
doesn't abort the installation. Basically it seems to always evaluate
to true. Even if i delete the msmq_Core value completely, the
installation doesn't stop with the error message that MSMQ is missing.

Any other ideas?

Andy

misampso (AT) online (DOT) microsoft.com (Michal Sampson [MSFT]) wrote in message
news:<gYiVCTJUDHA.2236 (AT) cpmsftngxa06 (DOT) phx.gbl>...
MSI packages use special characters to indicate DWORD or binary values.
In
you Launch Condition, set MSMQEXISTS equal to #1 rather than 1 and it
should work just fine.

For more information about registry searches, check out:


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/r
eglocator_table.asp

The bottom of the page shows how to search for values of differing data
types.

--

This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: andy.johnstone (AT) refinery (DOT) com (Andy)
Newsgroups: microsoft.public.vsnet.general
Subject: Launch conditions and registry search woes
Date: 22 Jul 2003 11:05:31 -0700

Hi all,

I'm having a problem getting a launch condition based on a registry
search working. I'm trying to see if MSMQ is installed, and if its
not, abort the installation.

The registery search is setup as follows:
(Name) MSMQ
Property MSMQEXISTS
RegKey Software\Microsoft\MSMQ\Setup\msmq_Core
Root vsdrrHKLM
Value (left blank)

Launch condition set as:
(Name) MSMessageQueue
Condition MSMQEXISTS=1
Message [MSMQEXISTS] my error message

I've tried different Values for the Registery search, as well as
changing the condition for the LC, but nothing seems to work (except
setting Condition to 1=1). What am I doing wrong?

Thanks
Andy




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.