msommerville
Posts: 4
Joined: Tue Feb 28, 2006 6:14 pm

Having an environment variable as a pre-requisite

The installer I am building is a plug-in for another software package. I need to get the location of this package from an environment variable. How would I go about setting this up as a prerequisite - i.e. if the environment variable is set, proceed, otherwise do not launch.

Any advice would be gratefully accepted.

Malcolm
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this is not supported by Advanced Installer. The location of the Prerequisite installation package must be given when creating the project. The prerequisite can be included in the installation package or it can be downloaded from a website.

Also, the Detection Criteria of the prerequisite can use only a file version, registry entries, the product version or a custom search performed by an EXE.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Quadiago
Posts: 71
Joined: Thu May 31, 2007 9:07 am

Hi there,

I'm not 100% certain this will help, but at least for XP systems you should be able to find the system and current user's environment variables in the registry (you should be able to use these for prerequisites).

For the current user it is at:

Code: Select all

HKEY_CURRENT_USER\Environment
For the system it is at:

Code: Select all

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\
Environment
Regards,
msommerville
Posts: 4
Joined: Tue Feb 28, 2006 6:14 pm

Hi,

thanks - I should be able to work something using this.

Regards,

Malcolm

Return to “Common Problems”