Prerequisite installed but still get prompted to Install - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Epsilon
Posts: 25
Joined: Wed Dec 27, 2006 1:09 am
Location: New Zealand
Contact: Website

Prerequisite installed but still get prompted to Install

I am evaluating AI for distributing an application using Microsoft Access Runtime. I have set a Prerequisite based on the existence of a Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Access\InstallRoot\Path
.

When testing the installation on Windows XP, everything works fine but on a Windows 95/ME installation (running under Microsoft Virtual PC) I always get prompted to install the Prerequisite. Using RegMon, I see that Setup.exe successfully finds the Registry Key but I still get the Prerequisite prompt - for some reason AI does not think that Microsoft Access is installed.

Any ideas?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I don't know if Microsoft Access Runtime (version 9.0) can be installed under Windows 95. Please verify if it's installed correctly.

Also you can verify if this registry key is created and contains an value:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Access\InstallRoot\Path
Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Epsilon
Posts: 25
Joined: Wed Dec 27, 2006 1:09 am
Location: New Zealand
Contact: Website

Yes, Access Runtime 9.0 installs fine on Windows 95 (using the DATA1.msi supplied with the Office 2000 Developer Edition) and the Registry Key has been created by the installation (with a valid Path for its value).

My product installs (and runs correctly) after I click Fnish to override the installation of the Prerequisite (because it is already installed).

As indicated, I have also performed this installation under Windows ME and get the same result.

Up to now, I have been installing my product (and the Access Runtime) using the Microsoft Package and Deployment Wizard. Advanced Installer will give me a more sophisticated installer - if I can get it to work.

One further thing, after running Advanced Installer I can't close Windows because it advises me that EXEA76 is still running. After a while I need to click a confirmation dialog box to end the task. Is EXEA76 part of Advanced Installer?

Thanks for your prompt reply.

Richard
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

That registry value is compared as version. So the registry value must contain a version for the condition to be fulfill. You can use only registry values that contain a version number.

Also you can choose "File Version" as search type like this:
File To Find: [ProgramFilesFolder]MSACCESS.EXE
Search Depth: 3
Minimum Version: 9.0

Please try this and let me know how it works.
After a while I need to click a confirmation dialog box to end the task. Is EXEA76 part of Advanced Installer?
No, EXEA76 is not a part of Advanced Installer and I don't know what is EXEA76.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Epsilon
Posts: 25
Joined: Wed Dec 27, 2006 1:09 am
Location: New Zealand
Contact: Website

By following your suggestion I can get the Prerequisite check to work successfully (by checking the File Version). This is not quite what I wanted to do since I have four different Versions of Microsoft Access installed on my PC and the Search presumably stops when it finds the first one (which could have been Access 97 - Version 8.0).

I am surprised that you expect the Registry Key to contain a Version Number. How do you define what a Version is, after all, it must be a String value)? The Help states:
If you are using as a criteria the version from a file or a registry value you can leave both fields blank. In this case Advanced Installer will check only the presence of that file or registry value to check if the prerequisite is already installed.
For Prerequisites, that perhaps don't have a Version, the existence of any value would satisfy the requirement. In my case, the Microsoft Access Version is in the Registry Key structure (HKLM\SOFTWARE\Microsoft\Office\Access\9.0\InstallRoot). You could consider this as a new feature as it would be quite useful.

Also, I have noticed an error in the Help text in "Search/The Registry Location Properties" section. The Note states:
You should choose the "The value contains a path to a directory" or "The value contains a path to a directory" option only if you are sure that the folder/file is present on the target machine. Otherwise, if the path cannot be resolved, Windows Installer will set the new value for the property to null. In this case use the "Retrieve the raw value" option.
The second piece of quoted text should read "The value contains a path to a file".

Finally, regarding the EXEA76 problem. I have determined that it is part of the AI installation process. It is the name of a DOS command file (actually called EXEA76.TMP.BAT) and is created in the Windows "Temp" folder during the installation. This contains commands to delete the SETUP.EXE program (and the EXEA76.TMP.BAT file) from the Windows Temp folder. When run on a Windows 9x system the DEL command fails because it is using the NT syntax (DEL /F <filename>) - the /F will force delete a Read-Only file. This is invalid syntax under Windows 9x and, because there is a loop structure to retry the delete if the file still exists, the Command file ends up in an endless loop!

The syntax should be changed to first turn off the Read-Only attribute and then delete the file:
ATTRIB -R <filename>
DEL <filename>
This sytnax will work under Windows 9x and NT.

I have some other problems but will advise in a new post once I have investigated them further.

Thanks for your help.

Richard
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
By following your suggestion I can get the Prerequisite check to work successfully (by checking the File Version). This is not quite what I wanted to do since I have four different Versions of Microsoft Access installed on my PC and the Search presumably stops when it finds the first one (which could have been Access 97 - Version 8.0).
It seams to be an AI limitation that causes the search to end when the first file with the specified name is found. The fix will be available in the next version of AI. Thank you for bringing this to our attention.
I am surprised that you expect the Registry Key to contain a Version Number. How do you define what a Version is, after all, it must be a String value)? The Help states:
If you are using as a criteria the version from a file or a registry value you can leave both fields blank. In this case Advanced Installer will check only the presence of that file or registry value to check if the prerequisite is already installed.
For Prerequisites, that perhaps don't have a Version, the existence of any value would satisfy the requirement. In my case, the Microsoft Access Version is in the Registry Key structure (HKLM\SOFTWARE\Microsoft\Office\Access\9.0\InstallRoot). You could consider this as a new feature as it would be quite useful.
All "Search Type" criteria specify how to obtain the installed prerequisite's version. The search result is compared with the "Minimum" and "Maximum" version values to determine if the prerequisite is installed or not. That's why the registry value must be a version. If you leave both version fields empty then any version is accepted.
Also, I have noticed an error in the Help text in "Search/The Registry Location Properties" section.
This will be fixed in the next version of AI. Thank you for bringing this to our attention.
This contains commands to delete the SETUP.EXE program (and the EXEA76.TMP.BAT file) from the Windows Temp folder. When run on a Windows 9x system the DEL command fails because it is using the NT syntax (DEL /F <filename>) - the /F will force delete a Read-Only file.
Thank you for bringing this to our attention. The fix for this will be available in the next version of AI.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”