Solved

ActiveX Form Auto-download problem

Posted on 2000-03-05
8
199 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

807 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