all groups > visual studio .net general > july 2005 >
You're in the

visual studio .net general

group:

Setup project conditionally install a file?


Setup project conditionally install a file? nickname
7/30/2005 5:04:01 AM
visual studio .net general: I have created a setup project and want to conditionally install a file,
depending on whether a registry key exists. How can I do this? I have added a
registry key search and have tried setting the condition property on the
Re: Setup project conditionally install a file? Phil Wilson
7/31/2005 10:16:31 AM
The registry search doesn't work for actual keys (just the way Windows
Installer works) so you might need to choose an item under that key instead.
If you are in fact looking for an item, make sure you are using the
uppercase property name - those names are case-sensitive.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

Re: Setup project conditionally install a file? nickname
8/2/2005 2:49:23 PM
I have tried what you have suggested and still cannot get it to work. Any
suggestions?

[quoted text, click to view]
Re: Setup project conditionally install a file? v-garych NO[at]SPAM online.microsoft.com (
8/4/2005 9:47:56 AM
Hi,

[quoted text, click to view]

How do you apply Phil's suggestion, and what's the condition do you set for
the target file?
Would you please provide more detailed info about this problem?


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Re: Setup project conditionally install a file? nickname
8/5/2005 3:55:02 PM
I am trying to detect the presence of SQLDMO, so that that it only gets
installed if it is not already registered. I have created a registry search:

Name: Search for RegistryEntry1
Property: SQLDMOINSTALLED
RegKey: {10020100-E260-11CF-AE68-00AA004A34D5}\VersionIndependentProgID
Root: vsdrrHKCR
Value:

I have then put a condition on each file:

SQLDMOINSTALLED!="SQLDMO.Application"

I am trying to read the value of the default value.


[quoted text, click to view]
Re: Setup project conditionally install a file? v-garych NO[at]SPAM online.microsoft.com (
8/6/2005 10:12:46 AM
Hi,

[quoted text, click to view]

So what happens during your VSPackage's installation, does the condition
always be true?

If so, I suggest you specify the target item under that key you
needed("Default"), and also provide a default value to this registry search
property...


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Re: Setup project conditionally install a file? v-garych NO[at]SPAM online.microsoft.com (
8/9/2005 12:00:00 AM
Hi,

[quoted text, click to view]

I figured out what's problem of your issue, the registry serach is alright,
but the launch condition shoule be:

SQLDMOINSTALLED<>"SQLDMO.Application"

The inequality operator "!=" could not be recognized in the launch
condition's exprssion, you need to use the "<>" operator instead.

By the way, if the specific registry key(item) hasn't been found, then the
corresponding property would be empty, you can use the following expression
to check does it exist and meet the specific condition:

(SQLDMOINSTALLED<>"SQLDMO.Application")AND(SQLDMOINSTALLED)


Hope this help!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button