|
-
Aug 18th, 2006, 02:20 AM
#1
Thread Starter
Frenzied Member
My Error or User error?
My program works fine but when a user tries to load it they are getting this error. what is wrong?
-
Aug 18th, 2006, 02:28 AM
#2
Re: My Error or User error?
You need to spread the MSINET.OCX with your program. Easiest way to get it properly installed is to make a setup program that will register the file on installation (Inno Setup is good one; you'll also find Inno Script somewhere here that can process VB6 projects).
If you want to manually register the file on a client machine, it can be done by writing regsvr32 MSINET.OCX in to the command line in the path where MSINET.OCX locates. You probably want to put it in the system folder (it is also where you most likely find the file).
-
Aug 18th, 2006, 02:30 AM
#3
PowerPoster
Re: My Error or User error?
are you running it as an exe already or under VB Environment? If it already an exe you should add the ocx in your package.
-
Aug 18th, 2006, 03:41 AM
#4
Thread Starter
Frenzied Member
Re: My Error or User error?
Umm okay.... how do i do this??
-
Aug 18th, 2006, 03:45 AM
#5
PowerPoster
Re: My Error or User error?
you can try inno setup as mention by Merri or you can also try visual studio installer 1.1. Have you tried packaging your work using P & D? If not try it first and see if it can automatically add the ocx in the installation setup it will create. I have not tried using MSINET.OCX yet in my app so I can't help that much.
-
Aug 18th, 2006, 03:50 AM
#6
Thread Starter
Frenzied Member
Re: My Error or User error?
I've got not a clue about any of this... I'm newish to VB6 and am making a basic .exe just using Inet...
Can you explain this is idiot form??
-
Aug 18th, 2006, 04:11 AM
#7
Re: My Error or User error?
- Download Inno Setup
- (at this point a disappointment: Randem has changed ********** to a commercial product...)
- Install Inno Setup. Should be straightforward.
- Copy all the files required by your program to one folder. Most likely you have atleast an EXE and the OCX.
- Make a new setup script in Inno Setup. Wizard should make a somewhat nice result, but it probably needs tweaking with the OCX file.
- You need to change MSINET.OCX settings so that it will be registered on install. You can find more details in Inno Setup help files.
- If you need to know more details, you can find tons of information by searching for Inno Setup on these forums.
I don't have Inno Setup installed at the moment and I can't actually install it on this computer (as I'm at work) so I can't give the most detailed instructions possible. Hopefully that helps you to a beginning.
-
Aug 18th, 2006, 10:15 AM
#8
Re: My Error or User error?
Or just click on Add-Ins/Add-in Manager/Package and Deployment Wizard. Click Loaded/Unloaded so that the box is checked, then click OK. Now click Add-ins/Package and Deployment Wizard ... (it'll be in the menu now, if it wasn't before), and follow the directions, choosing your program folder and your program's .vbp file.
Distribute the 3 files in the Package folder, setup.exe, SETUP.LST and the .cab file. Your user runs setup.exe to install your program.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Aug 20th, 2006, 05:15 PM
#9
Thread Starter
Frenzied Member
Re: My Error or User error?
Okay I've now got the Inno Setup working on my machine. I've had a play and can get it to work fine but how do i get the MSINET.OCX registered when it runs on another users machine??
-
Aug 20th, 2006, 06:25 PM
#10
Re: My Error or User error?
You send them the set of setup files that inno creates and they install your program.
-
Aug 20th, 2006, 06:36 PM
#11
Thread Starter
Frenzied Member
Re: My Error or User error?
so all I have to do it add the .exe and the MSINET.OCX and create a new file and it does the rest for me???
-
Aug 20th, 2006, 06:49 PM
#12
Re: My Error or User error?
Yeah, pretty much. Note that in the install script you have to give the register flag for the OCX file, regserver or something like that (I don't make setups often). After that you can compile setup.exe and then your program is an easy pie to install It is also a good idea to test the installation file on a computer that doesn't have VB6 so you can be sure you have all that is required and that everything is ok*.
* Disclaimer: there is always atleast one machine that will have problems no matter what you do.
-
Aug 20th, 2006, 07:05 PM
#13
Thread Starter
Frenzied Member
Re: My Error or User error?
"you have to give the register flag for the OCX file"
yeah so how the heck do i do this??? I knew i would have to do somthing with it but what and how???
-
Aug 20th, 2006, 07:34 PM
#14
Re: My Error or User error?
Have you made a script yet? Here you can see a sample script. It has more than you need to include, if you only install to XP machines, then most VB6 runtimes are already installed and thus setup doesn't need to have them.
-
Aug 20th, 2006, 08:08 PM
#15
Thread Starter
Frenzied Member
Re: My Error or User error?
Arr okay.
so this should work then??
Code:
[Setup]
AppName=My Program
AppVerName=My Program 1.5
AppPublisher=My Company, Inc.
AppPublisherURL=http://www.mycompany.com
AppSupportURL=http://www.mycompany.com
AppUpdatesURL=http://www.mycompany.com
DefaultDirName={pf}\My Program
DefaultGroupName=My Program
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\Program Files\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\WINDOWS\system32\MSINET.OCX"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Program Files\Microsoft Visual Studio\VB98\RLNZ\RLNZ.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"
Name: "{userdesktop}\My Program"; Filename: "{app}\MyProg.exe"; Tasks: desktopicon
[Run]
Filename: "{app}\MyProg.exe"; Description: "{cm:LaunchProgram,My Program}"; Flags: nowait postinstall skipifsilent
-
Aug 20th, 2006, 08:11 PM
#16
Re: My Error or User error?
This way:
Code:
Source: "C:\WINDOWS\system32\MSINET.OCX"; CopyMode: alwaysskipifsameorolder; DestDir: "{sys}"; Flags: sharedfile regserver
I guess about all OCX files should be installed this way.
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
|