Solved

Wise Windows Installer v6, test for Registry value

Posted on 2010-11-26
4
886 Views
Last Modified: 2012-05-10
I am using Wise Windows Installer v6 Professional, and need to test for the presence of a specific Registry value and abort the installation if it is not found. I am currently using the Search System option to retrieve the data from the value, which is a path that is saved to [INSTALLDIR].

I need this test becuase I need to abort the installation if a another of my installations programs has not been previously executed, which would have created and set the value that I am testing.
0
Comment
Question by:JVarco
  • 3
4 Comments
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 34236384
ok... so what's the problem?
0
 

Author Comment

by:JVarco
ID: 34239085
If the system search suceeds, the data is retrieved from the Registry, the [INSTALLDIR] variable is updated. If the search fails, the [INSTALLDIR] variable defaults to the path set in the Product Details page. So the installation does not know the search failed, it just installs to whichever path is set in the variable.

I need to be able to determine if the Registry key or value name exists at all, or if the data in another value is the wrong data, notify the user and abort the install.

If the retrieved path data is valid, I need to be able to append additional path data to it and save it to {INSTALLDIR].

Does this help?
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 34270483
Then do your system search for another property, rather than INSTALLDIR; then analyze that property. You can create Launch Condition based on the property (go to setup editor /product). For instance, if you create system search that returns the result in MYPROPERTY, then specify launch conditition MYPROPERTY. If the search does not find the value, then MYPROPERTY will be empty, launch condition will fail, and installation will be aborted. Make sure that the action LaunchConditions is placed after AppSearch in the installation script, in both User Interface and Execute Immediate.

In order to append returned value to INSTALLDIR, go to the installation script, and insert action Set Property somewhere after LaunchConditions.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 34270511
The last paragraph of the prev. comment - this should be done only in Execute Immediate, so it does not get appended twice.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now