how to make usercontrol as activex and make it cab file for the browsers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandeepdhankar10
    New Member
    • Dec 2008
    • 36

    how to make usercontrol as activex and make it cab file for the browsers

    hi experts....

    i need ur help again...

    i am creating a usercontrol that fetch images from webservice and show in a picture box.. (This is my Activex control as i say). and build it. now i have created a setup. named as viewercontrol. then i created a cab project and add viewercontrol in the project output.. and also add a inf file. also.
    and buid the cab project.
    my inf file

    [Setup Hooks]
    hook1=hook1

    [hook1]
    run=msiexec.exe /i %EXTRACT_DIR%\v iewercontrol.ms i

    [version]
    signature="$CHI CAGO$"
    AdvancedINF=2.0

    [Add.Code]
    setup.exe=setup .exe
    [setup.exe]
    file-win32-x86=thiscab
    clsid={58EC4F8B-2189-424d-B3F6-0100C1779877}

    when i use this in html/aspx page .. by using <object tag>.
    and deploy to server and browse it . it display a yellow bar on top saying to install activex. an d when i clicked it .. it show a messgebox with two button INSTALL AND NOT INSTALL with unknown publisher warnig. and when i clicked on install .. some procees took place for 4 -5 sec. and a red cross bar came inspite of control..
    but if i manully run the installation by coping the cab file in the system ..it works fine..
    now i am asking where i am wrong in this process. what sholfdi do.. is any thing wrong in my inf.. or pls tell me the write way to do this..


    thanks in advance.. please help me out
    Last edited by Frinavale; Jan 9 '09, 03:05 PM. Reason: Moved to ASP.NET from .NET
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by sandeepdhankar1 0

    when i use this in html/aspx page .. by using <object tag>.
    and deploy to server and browse it . it display a yellow bar on top saying to install activex. an d when i clicked it .. it show a messgebox with two button INSTALL AND NOT INSTALL with unknown publisher warnig. and when i clicked on install .. some procees took place for 4 -5 sec. and a red cross bar came inspite of control..
    but if i manully run the installation by coping the cab file in the system ..it works fine..
    now i am asking where i am wrong in this process. what sholfdi do.. is any thing wrong in my inf.. or pls tell me the write way to do this..
    You need to specify authoring details. ActiveX controls are not trusted because they are able to access the user's operating system from the internet. You therefore need to design a secure ActiveX control in order to mark it as "safe". Look into how to do this....a great place to start is this article.

    -Frinny

    Comment

    Working...