Solved

ActiveX Form Auto-download problem

Posted on 2000-03-05
8
194 Views
Last Modified: 2010-04-04
Dear friends:
    I think when the ActiveXForm I've deploy be updated "the version number increas", the client should be noted to downloaded the latest version when they visit the html page.
    But it only be downloaded once and never update.
    I filled the web deploy option dialog carefully and include the version info in my project, I also check the auto-increase version checkbox, and also tried to edti the version numally, but it also does not work.
   What should I do?

   I promiss another 200
0
Comment
Question by:chengjian
  • 4
  • 3
8 Comments
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2586607
On your local machine you can delete the appropriate file from the "Downloaded Program Files" directory in your windows directory.

The only really reliable way I have seen to force the activeX control to be downloaded again is to change the GUID of the control.

Cheers,

Raymond.
0
 
LVL 17

Expert Comment

by:inthe
ID: 2587356
listening..
0
 
LVL 17

Expert Comment

by:inthe
ID: 2587404
Hi
you should be able to use the versioning to make client load newer one.
do you change the version number in the html page that loads the activex so you have tag like:

in mycontrol.htm :

<OBJECT
  classid="clsid:29D37F03-F02F-11D0-ACB2-0080C7316F20"
       codebase="http://www.xyz.com/MyControl.ocx#version=1,0,1,0"
       width=350
       height=250
       align=center
       hspace=0
       vspace=0
</OBJECT
The #version part of the tag is optional—if missing, it means "any version will do."
On the web server, there will be a file called MyControl.htm (many servers are case sensitive) , which has been stamped with a version tag (presumably 1.0.1.0), and which can create an ActiveX control with the specified ClassID. The first thing Internet Explorer does is to determine if the specified ClassID is already installed on the client machine. If it is, IE will check to see if the installed version matches the requested version. If the local version matches the version requested in the HTML, IE will simply use the local copy to create the control
If the version number requested by the HTML page is newer than the one currently installed, or the ClassID is not yet installed, IE knows it must download and install the codebase before it can create the control.
0
 
LVL 1

Author Comment

by:chengjian
ID: 2594622
Dear rwilson :
    I really do not want to change the GUID and I know where the ActiveX Control be downloaded located, and I also know I can Right-Click the Control and choose "update" to update it. but it's out of my need. thanx anyway. I'm so sorry to reject your answer.

Dear inthe:
    Have you tried that? I've never notice about the HTML file and I only use delphi's web deploy wizard to generate the sample HTML file, I'll try later, thanx a lot.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 17

Expert Comment

by:inthe
ID: 2594908
changing the version code in the html is the only way explorer knows it a new version of the control..

check if delphi is writing version info to sample html file then recompile and chck if html version info has changed.

i dont have delphi here at moment but there should be a version option to imcrement the version number when a new compile is done..
0
 
LVL 1

Author Comment

by:chengjian
ID: 2648056
dear inthe:
   I'm so busy so I haven't tried your answer, sorry, I make a socket program to detect and downlaod the ActiveX control from http server.
   feel free to put it as an answer and if you have both time and delphi, please try for me, greatly thanx.
0
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 2649240
hi,
it definetly works as i tried it before for another question on e.e so i put as answer.

Regards Barry

0
 
LVL 1

Author Comment

by:chengjian
ID: 2653088
I'm faint 'cause sometimes it works
but sometimes not.
but anyway.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now