Welcome Guest Search | Active Topics | Members

How do you determine the right Class ID number? Options
Baldy
Posted: Monday, July 21, 2008 5:08:12 PM
Rank: Member
Groups: Member

Joined: 5/31/2006
Posts: 6
Points: 15
We have the problem of some people being unable to install the ActiveX control. It seems it happens most frequently when they installed it first using Facebook.

I checked our code in the embed_iu5 file and it reads:

this.activeXControlCodeBase="ImageUploader5-5.1.10.0-040308.cab";
this.activeXClassId="BA162249-F2C5-4851-8ADC-FC58CB424243";

From your blog post it appears that Class ID should be replaced with 5D637FAD-E202-48D1-8F18-5B9C459BD1E3 , but that one doesn't seem to work.

Thanks,
Baldy




Eugene Kosmin
Posted: Monday, July 21, 2008 7:28:03 PM
Rank: Advanced Member
Groups: Member

Joined: 9/19/2006
Posts: 352
Points: 177
Hi,

Yes, that's right. You need to update iuembed.js to the last one. You can get it from Image Uploader SDK.


Best regards,
Eugene Kosmin.

Aurigma Development Team
Baldy
Posted: Tuesday, July 22, 2008 1:41:34 PM
Rank: Member
Groups: Member

Joined: 5/31/2006
Posts: 6
Points: 15
Hmmm... I updated iuembed.js to the latest and could see there were several changes from the one I had, but some people are still unable to install. I'm checking the other files.

One bothersome thing is that when it doesn't install, the instructions for how to install it are unchanged, but the bar you click on in IE isn't there anymore. Then they're really stuck.

Shouldn't it have a message like, "The uploader failed to install. Please contact _____." Right now, when it doesn't install, we have people fix their registry. Unpleasant, but at least they have something they can do to fix the problem.
onethumb27
Posted: Tuesday, July 22, 2008 5:28:33 PM
Rank: Newbie
Groups: Member

Joined: 2/7/2008
Posts: 3
Points: 9
Got it working but on our test machines it forced one to re-load the ActiveX control (understandable if it detected an olde one) and on the other it forced the machine to reboot. Yikes.
Eugene Kosmin
Posted: Tuesday, July 22, 2008 8:09:12 PM
Rank: Advanced Member
Groups: Member

Joined: 9/19/2006
Posts: 352
Points: 177
Baldy wrote:
Hmmm... I updated iuembed.js to the latest and could see there were several changes from the one I had, but some people are still unable to install. I'm checking the other files.

One bothersome thing is that when it doesn't install, the instructions for how to install it are unchanged, but the bar you click on in IE isn't there anymore. Then they're really stuck.

Shouldn't it have a message like, "The uploader failed to install. Please contact _____." Right now, when it doesn't install, we have people fix their registry. Unpleasant, but at least they have something they can do to fix the problem.


Perhaps the old iuembed.js is just cached in your clients’ browsers. Maybe full page reload will help.

Unfortunately there is no way to handle the result of installation process from JavaScript. You can only determine whether control is already installed:

Code:
var iu = new ImageUploaderWriter("ImageUploader", "800", "600");
if (iu.getActiveXInstalled())
{
      alert("Installed");
}
else
{
      alert("Not installed");
}

iu.writeHtml();

or change installation instructions:

Code:
var iu = new ImageUploaderWriter("ImageUploader", "800", "600");
iu.instructionsCommon = "Custom installation instructions";
iu.instructionsNotWinXPSP2 = "Custom instructions for old winXP";
iu.instructionsWinXPSP2 = "Custom instructions for winXP SP2";
iu.instructionsVista = "Custom instructions for Vista";
iu.instructionsCommon2 = "Custom instructions";
iu.writeHtml();


onethumb27 wrote:
Got it working but on our test machines it forced one to re-load the ActiveX control (understandable if it detected an olde one) and on the other it forced the machine to reboot. Yikes.


IE requires rebooting if you are installing new Image Uploader when the old one is loaded. This is a known issue but we didn’t fix it yet.

Best regards,
Eugene Kosmin.

Aurigma Development Team
Dmitry
Posted: Tuesday, July 22, 2008 10:21:31 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 586
Points: 588
Hello,

Here is the post describing the reason if this problem with Facebook Image Uploader PRB:Some clients are unable to load or install Image Uploader ActiveX

You may check version of currently installed Image Uploader. If it is not the same as one installed on the site, you can provide special instructions for users. Here is the script kindly provided by one of our customers:
Code:

// Similar to getActiveXInstalled but checks also if the activex has to be updated
this.getActiveXInstalledToUpdate=function(){
    if (this.activeXProgId){
        try{
             var a=new ActiveXObject(this.activeXProgId);

             // A version is installed, but is it the current one?
             var installedVersionArray = a.Version.split(',');
             var currentVersionArray = this.activeXControlVersion.split(',');

             for (var i = 0; i < 4; i++)
             {
                  if (parseInt(installedVersionArray[i]) < parseInt(currentVersionArray[i]))
                 {
                     // installed version is older then the current one
                     return true;
                 }
             }
        }
        catch(e){
        }
    }    
// no update required
return false;
}
If this finction returns true, the control is about to be updated.

Sincerely yours,
Dmitry Sevostyanov.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.