Results 1 to 11 of 11

Thread: error in EXE

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2006
    Location
    California
    Posts
    29

    error in EXE

    Hi,
    I have an executable of my code which acts like a server. When i run the code on my machine it works fine. When i try to run the exe on another machine (running windows) it shows this error:
    Component "MSWINSCK.OCX" or one of its dependencies not correctly registered: a file is missing or invalid

  2. #2

  3. #3
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: error in EXE

    "MSWINSCK.OCX" is a component - Winsock, which does not exist on that machine. You need to create setup (Inno, Nullsoft, MS P&D Wizard...) from your project in order to copy and register all components.

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: error in EXE

    Quote Originally Posted by gavio
    "MSWINSCK.OCX" is a component - Winsock, which does not exist on that machine. You need to create setup (Inno, Nullsoft...) from your project in order to copy and register all components.
    The P&D Wizard, which like Inno is free, and comes with VB6 should also be in that list.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2006
    Location
    California
    Posts
    29

    Re: error in EXE

    Thanks Martin and Gavio,
    I figured it was an exe, so i need not install anything ... i guess i was wrong. How would i create a setup that would copy and register the components?

    P.S. I also read and write to the registry, would that make a difference?

  6. #6
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: error in EXE

    I would suggest you to use Inno. It's quite easy. I think you can write to registry with script, but you can also write to registry at first app startup.

  7. #7

  8. #8
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: error in EXE

    Quote Originally Posted by MartinLiss
    Gavio you can write to the registry at any time.
    Yes. I pointed it out cause it's a raplacement for doing it with setup.

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Aug 2006
    Location
    California
    Posts
    29

    Re: error in EXE

    Im really lost with this thing here, dont even know what Inno does
    I looked at one of the examples
    VB Code:
    1. ; -- Example1.iss --
    2. ; Demonstrates copying 3 files and creating an icon.
    3.  
    4. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
    5.  
    6. [Setup]
    7. AppName=My Program
    8. AppVerName=My Program version 1.5
    9. DefaultDirName={pf}\My Program
    10. DefaultGroupName=My Program
    11. UninstallDisplayIcon={app}\MyProg.exe
    12. Compression=lzma
    13. SolidCompression=yes
    14. OutputDir=userdocs:Inno Setup Examples Output
    15.  
    16. [Files]
    17. Source: "MyProg.exe"; DestDir: "{app}"
    18. Source: "MyProg.chm"; DestDir: "{app}"
    19. Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
    20.  
    21. [Icons]
    22. Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"

    Can i build on this example? If yes, can i just use my program name everywhere? and what about the other fields like default directory name, version name etc..

  10. #10
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: error in EXE

    Dunno...
    Quote Originally Posted by madmaxmenon
    ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!etc...

  11. #11
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: error in EXE

    That's why the third party tools for Inno Setup were created...

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