/build/static/layout/Breadcrumb_cap_w.png

Conditions - Check Registry Key?

I need to check a registry key and then only install a file if the regkey is equal to a certain value.

Is there any way to create a Component/Feature Condition that is dependent on the value of a Registry Key? When I use the Condition Builder is only has Feature, Component, Environment Variable, and Property listed...

0 Comments   [ + ] Show comments

Answers (3)

Posted by: TomB 18 years ago
Orange Belt
0
I am not sure what application you are uisng to create your MSI, but you should be able to use an AppSearch to look for the vaule of a registry key. The AppSearch will then put the value into an MSI if the key is found. I use InstallShiled and there is a wizard for SystemSearch as IS calls it.

You will then be able to set a condition on the compont basied on if the Property exists or contains any data.
Posted by: pliant 18 years ago
Senior Yellow Belt
0
I'm using Wise to package and I'm not aware of an AppSearch function....
Posted by: TomB 18 years ago
Orange Belt
0
I can not speak on how you can do this in the Wise console or if there is a nice wizard for it.
The Appsearch is a feature of the Windows Installer so, regarless you can use either a direct editor in Wise or use ORCA to do the following:

1. Open the MSI in a direct Edit mode and view the tables
2. Select the AppSearch Table
3. Create a new Row and set the data as follows:

Propoerty | Singature_
REGVALUE1 | SigRegCheck1

4. Select the RegLocator Table
5. Add new Row and set the data as follows:

Signature_ | Root | Key | Name | Type
SigRegCheck1 | 2 | "Path to reg key" | RegCheck | 2

* For Root you will need to specify the correct Root to start the search 0= HKCR, 1 = HKCU, 2=HKLM
* For Key you will need to put the full path to the key such as, Software\Microsoft\Windows\CurrentVersion\Run

6. Select the Component Table and find the row that has your componet you wish to add a condition to
7. In the Condition column put REGVALUE1

*The condition will evaulte to TRUE if the regkey was found and was put in the Property, you could use NOT REGVALUE1 if you only want to install the component if the regkey is present.

Hope that helps is is enough info
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ