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
FOLLOW US
Get the latest news in Application Packaging