Try OpenEdge Now
skip to main content
WebClient Applications
Deploying an Application : Bootstrapping a WebClient application : Customizing the bootstrap.htm file
 

Customizing the bootstrap.htm file

If you use the bootstrap.htm file, you must customize it. To customize the bootstrap.htm file, you substitute your own URLs for the two default URL settings:
*document.locations.href — This setting specifies the URL of the .CAB file containing the application configuration file for the application.
*window.location — This setting specifies the URL of the Web page used to access the WebClient installer over the Web. You can use your own customized version of WebClient or the default WebClient installer provided on the Progress Software Corporation Web site.
The option for supporting personal instances and the default URL settings are bolded in this sample bootstrap.htm file.

Sample bootstrap.htm file

<html>
<script language="JavaScript">
  installed = false;
  // NOTE: Set supportPersonalInstall to true to require a version of     WebClient that supports personal instances,
  // even if there is already a version of WebClient installed
  supportPersonalInstall=false;  netscape = (navigator.appName.indexOf("Netscape") != -1);
  
// See if WebClient is installed
  if (netscape)
  {
    var mimeTypes;
    if (supportPersonalInstall)
      mimeTypes = navigator.mimeTypes["application/progress-wcappna"];
    else
      mimeTypes = navigator.mimeTypes["application/progress-wcappcab"];
    if (mimeTypes)
      installed = true;
  }
</script>
<script language="VBScript">
  ' This is ignored by Netscape
  
On Error Resume Next
  
set ctrl = CreateObject("ProWCVer.ComObj.1")
  if isObject(ctrl) then
    if (supportPersonalInstall) then
      installed = supportsNonAdmin(ctrl.Version)
    else
      installed = true
    end if
  end if

' Check if the version of WebClient supports personal installs
Function supportsNonAdmin(verstring)
  tmp = false
  cdot1 = InStr(verstring,".")
  if cdot1 > 0 then
    cmajor = Cint(Mid(verstring,1,cdot1 - 1))
    cdot2 = InStr(cdot1 + 1,verstring,".")
    if cdot2 > 0 and cmajor >= 10 then
      tmp = true
    else
      cminor = Cint(Mid(verstring,cdot1 + 1,1))
      cmaint = Mid(verstring,cdot1 + 2,1)
      if cmajor > 10 then
        tmp = true
      elseif cmajor = 10 then
        if cminor < 2 then
          tmp = false
        elseif StrComp(cmaint,"B") < 0 then
          tmp = false
        else
          tmp = true
        end if
      end if
    end if

  end if 'cdot1 > 0
  supportsNonAdmin = tmp
End Function
</script>

<script language="JavaScript">
  if (installed)
  {
    // Reference a prowcapp file to invoke prowcini.exe
    // NOTE: MODIFY THIS URL TO POINT TO YOUR .prowcapc FILE.
    document.location.href = "http://MyWebServer/webclient/myapplication.prowcapc";  }
  else
  {
    // Start install process for Web Client
    // NOTE: MODIFY THIS URL TO POINT TO THE WebClient Install page
    window.location = "http://MyWebServer/webclient/webclient.htm";  }
</script>
<body>

<!--// NOTE: THIS TEXT CAN BE MODIFIED //-->
<p align="center"><font face="Verdana, Arial, Helvetica" size="3">This Application is Powered by Progress</tr>
<p align="center"><font face="Verdana, Arial, Helvetica" size="3">Thank you for using our application!</tr>
<!--// NOTE: THIS URL CAN BE CHANGED TO POINT TO AN APPLICATION SPECIFIC JPG
  OR OTHER APPLICATION SPECIFIC HTML CAN BE PLACED HERE.//-->
<p align="center"><img SRC="Graphics/WCSplash.jpg" height=250 width=350>

</body>
</html>