Kbase 21823: WebClient Upgrade from 9.1B to 9.1C with the bootstrap.htm
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/22/2002 |
|
SUMMARY:
When accessing the WebClient application using Internet Explorer (IE) with a URL link to bootstrap.htm, the new available version of the WebClient executable might not be detected.
EXPLANATION:
This happens because of the VBScript code in bootstrap.htm
which is written to detect a registered 'ProWCVer.ComObj.1' object
but not its version. The steps in this scenario illustrate the problem:
1) You had deployed a WebClient application using WebClient 9.1B.
2) Users downloaded and installed the WebClient and your application.
3) You have migrated your deployment to 9.1C and changed the
reference to the designated '.prowcapc' file
4) The user tries (using IE) the new bootstrap.htm and is presented
with the error message: "Windows cannot open this file....."
5) The "Open with" dialog box is presented. If the user chooses
'prowcini.exe' this error message appears: "Required entry
ApplicationName missing in prowcapp file or prowcapp file not
found"
SOLUTION:
In the existing bootstrap.htm locate the VBScript code:
<script language="VBScript">
' This is ignored by Netscape
On Error Resume Next
set ctrl = CreateObject("ProWCVer.ComObj.1")
if isObject(ctrl) then
installed = true
end if
</script>
Change the code to:
<script language="VBScript">
' This is ignored by Netscape
On Error Resume Next
set ctrl = CreateObject("ProWCVer.ComObj.1")
if isObject(ctrl) then
if ctrl.Version = "9.1.B" then
installed91c = false
installed91b = true
installed = false
alert(ctrl.Version + " is installed - proceeding with 9.1C WebClient Install")
else
alert(ctrl.Version + " is installed - starting application install")
installed = true
end if
end if
</script>
This script will detect whether the WebClient is installed or not
and whether the installed version is 9.1B or 9.1C. You can proceed
with the action depending on your needs -- whether to allow 9.1B users
to continue using the old application or to force them to upgrade to 9.1C and then upgrade the application.
NOTE: This behavior is different with the Netscape Navigator because
the JavaScript in the bootstrap.htm is using MIME types to detect
whether the proper WebClient version is installed or not. The MIME
types are different for the 9.1B and 9.1C WebClient.
This solution applies to WebClient 9.1C18 and higher. Starting with
9.1C18 the hard coded value for the 'Version' property in the
ProWCVer.ComObj.1 equals to the value of 'PROVERSION'. For more information about the migration path from 9.1B to 9.1C please see Progress Knowledge Base Solution 21562.
References to Written Documentation:
Progress Knowledge Base Solution 21562, "WebClient: Migrating From 9.1B To 9.1C"