Results 1 to 3 of 3

Thread: Registering ocx on Vista

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    2

    Registering ocx on Vista

    Hi

    I'm pretty sure there's been discussions about this issue before, but I haven't found a clear answer yet
    I have a vb6 exe that uses some ocx control (namely MSWINSCK.OCX, others too)
    it won't work on vista because the ocx isn't registered
    I can overcome this issue by running cmd.exe as administrator and re-registering the component
    something like
    regsvr32 /u /s mswinsck.ocx
    regsvr32 /s mswinsck.ocx
    I can also create a .bat file with these commands, works well as long as I run it as admin
    that's my problem
    the app is sold to clients and it's a shame to ask them to first install the application, then ask them to run a .bat file by right clicking on it and selecting "run as administrator"
    it's just too much manual operations for the price they pay

    is there a way to programmatically bypass that "run as admin" problem and register the components automatically ?

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Registering ocx on Vista

    Clearly they aren't "installing" the application or this problem doesn't arise. Are you just copying files and calling this an installer?

    Either the PDW that comes with VB6 or the Visual Studio Installer 1.1 (free) add-on for VB6 are good basic choices for application packaging. In both cases the user still requires administrator rights to install though and will see a UAC prompt.

  3. #3
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: Registering ocx on Vista

    I am going to do the same thing sometime down the road. I purchased an installer that i think will do what you need here:
    http://www.gdgsoft.com/pb/index.aspx
    I looked at a lot of installers see here: http://www.vbforums.com/showthread.php?t=515296
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width