ktarman
Posts: 3
Joined: Mon Jul 28, 2008 6:19 pm

check for a Windows XP registry key

1.) How can I have Advanced install for Java check for a Windows XP registry key. Then if does not exist or is not an acceptable value have it abort the install and show the user why it aborted?

Thanks in advance!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: check for a Windows XP registry key

Hi,

This can be done by using a search and a custom launch condition. Here are the steps:
- go to the Search page and create a Registry search
- set the name of the search to something meaningful, for example MY_REG_SEARCH
- go to the "Prerequisites" page and select the Custom Launch Conditions tab
- create a new launch condition which looks like this:

Code: Select all

MY_REG_SEARCH          "A registry entry was not found on your machine. The installation will be aborted."
This way, the installation will stop if the MY_REG_SEARCH property will be empty (the registry entry was not found).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Julie
Posts: 3
Joined: Fri Oct 10, 2008 4:39 pm

Re: check for a Windows XP registry key

I have a side question, how to put a "new line" in the launch condition description? Thanks!
Cristi
Posts: 34
Joined: Wed Oct 08, 2008 8:44 am
Contact: Website

Re: check for a Windows XP registry key

Hi,

Unfortunately it is not possible to add a "new line" in the launch condition description. However, Windows Installer automatically splits the Description for best page fit.

Best regards,
Cristi
______________________________
Cristi Costache
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”