|
There exists a control file VGAPlayer.cab in each courseware directory. So when
the control needs to upgrade, the easiest way is to regenerate this file under courseware
directory. But if there are a lot of coursewares in the site, this way is hard to
make it. There is a relatively simple approach:
In the import documents of target courseware (for example: Web site's home page
index.htm), insert the following piece of code:
£¼OBJECT id=VGAPlayer codeBase=VGAPlayer.cab#version=4,0,0,850 classid=clsid:339C1EE2-1029-46B8-81F1-360217F26FC4
absolute top: left: width: height: 0£¾
£¼PARAM NAME=Visible VALUE=-1£¾
£¼PARAM NAME=AutoScroll VALUE=0£¾
£¼PARAM NAME=AutoSize VALUE=0£¾
£¼PARAM NAME=AxBorderStyle VALUE=0£¾
£¼PARAM NAME=Caption VALUE=PowerCreator VGAPlayer£¾
£¼PARAM NAME=Color VALUE=4278190095£¾
£¼PARAM NAME=Font VALUE=MS Sans Serif£¾
£¼PARAM NAME=KeyPreview VALUE=-1£¾
£¼PARAM NAME=PixelsPerInch VALUE=96£¾
£¼PARAM NAME=PrintScale VALUE=1£¾
£¼PARAM NAME=Scaled VALUE=-1£¾
£¼PARAM NAME=DropTarget VALUE=0£¾
£¼PARAM NAME=HelpFile VALUE=£¾
£¼PARAM NAME=DoubleBuffered VALUE=0£¾
£¼PARAM NAME=Enabled VALUE=-1£¾
£¼PARAM NAME=Cursor VALUE=0£¾
£¼PARAM NAME=DisplayMode VALUE=0£¾
£¼PARAM NAME=CurrentPosition VALUE=0£¾
£¼PARAM NAME=LocalIP VALUE=£¾
£¼PARAM NAME=FullScreen VALUE=0£¾
£¼PARAM NAME=URL VALUE=£¾
£¼PARAM NAME=AutoStart VALUE=-1£¾
£¼PARAM NAME=InitialColor VALUE=16711680£¾
£¼PARAM NAME=AutoConnect VALUE=-1£¾
£¼PARAM NAME=EnableCache VALUE=-1£¾
£¼PARAM NAME=bgColor VALUE=#000£¾
£¼/OBJECT£¾, at the meanwhile, place VGAPlayer.cab file under the same directory.
When you want to update control the next time, if the version numberof the new control
is: 4.0.0.1000, the way to upgrate is to instead version=4,0,0,1000 of version=4,0,0,850(Notice:
the version numbers should be separated by comma) and overwrite the old files with
the new VGAPlayer.cab file.
When a browser re-visits the Web site homepage, the browser will be automatically
prompted to install the new version VGAPlayer.
|