|
-
Oct 12th, 2006, 04:23 PM
#1
Thread Starter
Junior Member
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
-
Oct 12th, 2006, 04:26 PM
#2
Re: error in EXE
Did you install it on the other machine or simply copy the exe with or without some other files?
-
Oct 12th, 2006, 04:27 PM
#3
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.
Last edited by gavio; Oct 12th, 2006 at 04:33 PM.
-
Oct 12th, 2006, 04:30 PM
#4
Re: error in EXE
 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.
-
Oct 12th, 2006, 04:34 PM
#5
Thread Starter
Junior Member
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?
-
Oct 12th, 2006, 04:38 PM
#6
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.
-
Oct 12th, 2006, 04:41 PM
#7
Re: error in EXE
I moved this thread since it's a deployment problem. Gavio you can write to the registry at any time.
-
Oct 12th, 2006, 04:46 PM
#8
Re: error in EXE
 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.
-
Oct 12th, 2006, 05:08 PM
#9
Thread Starter
Junior Member
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:
; -- Example1.iss --
; Demonstrates copying 3 files and creating an icon.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
AppName=My Program
AppVerName=My Program version 1.5
DefaultDirName={pf}\My Program
DefaultGroupName=My Program
UninstallDisplayIcon={app}\MyProg.exe
Compression=lzma
SolidCompression=yes
OutputDir=userdocs:Inno Setup Examples Output
[Files]
Source: "MyProg.exe"; DestDir: "{app}"
Source: "MyProg.chm"; DestDir: "{app}"
Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
[Icons]
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..
-
Oct 12th, 2006, 05:33 PM
#10
Re: error in EXE
Dunno...
 Originally Posted by madmaxmenon
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!etc...
-
Oct 13th, 2006, 04:05 AM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|