Results 1 to 16 of 16

Thread: My Error or User error?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    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?

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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).

  3. #3
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    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.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    Re: My Error or User error?

    Umm okay.... how do i do this??

  5. #5
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    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.
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    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??

  7. #7
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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.

  8. #8
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    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??

  10. #10

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    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???

  12. #12
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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.

  13. #13

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    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???

  14. #14
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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.

  15. #15

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    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

  16. #16
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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
  •  



Click Here to Expand Forum to Full Width