http://www.rugbyleaguenz.com/application/error.bmp
My program works fine but when a user tries to load it they are getting this error. what is wrong?
Printable View
http://www.rugbyleaguenz.com/application/error.bmp
My program works fine but when a user tries to load it they are getting this error. what is wrong?
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).
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.
Umm okay.... how do i do this??
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.
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??
- 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.
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.
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??
You send them the set of setup files that inno creates and they install your program.
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???
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. :D
"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???
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.
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
This way:
I guess about all OCX files should be installed this way.Code:Source: "C:\WINDOWS\system32\MSINET.OCX"; CopyMode: alwaysskipifsameorolder; DestDir: "{sys}"; Flags: sharedfile regserver