Results 1 to 10 of 10

Thread: Small Question: If i use a zip file setup does it register the ocx files!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    120

    Small Question: If i use a zip file setup does it register the ocx files!!

    hi...
    I made a zip file then connverte it to exe and i put in it only ocx files and told him to extract them to the windoes/system/
    does it registered the ocx automaticilly or there is a option to tell him to do that?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    Small Answer: no, it doesn't.

    Add a comment.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    120

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    Quote Originally Posted by penagate
    Small Answer: no, it doesn't.

    Add a comment.
    What do you mean "Add a comment."
    And does any body have a setup program that register the ocx but without Next>Next>Next>Next> Just with one click next and extract them

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    Sorry wasn't very clear. I meant add a comment to the zip file. But as it turns out (just checked) you can't do that to EXE zips.

    As for the setup prog, it is a fairly easy thing to do yourself. Just place all of the ocx files into the zip and name the installer setup.exe or install.exe. IIRC you can then make it into a self-extracting EXE zip and your own setup prog will run automatically when the EXE is run.

    You just need the following code:
    VB Code:
    1. Shell "regsvr32 /s " & OCXName
    for each OCX file that the zip contains.

    If you want to, tell me the names of the ocx files and I will make you a quick project that you can compile.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    120

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    Quote Originally Posted by penagate
    Sorry wasn't very clear. I meant add a comment to the zip file. But as it turns out (just checked) you can't do that to EXE zips.

    As for the setup prog, it is a fairly easy thing to do yourself. Just place all of the ocx files into the zip and name the installer setup.exe or install.exe. IIRC you can then make it into a self-extracting EXE zip and your own setup prog will run automatically when the EXE is run.

    You just need the following code:
    VB Code:
    1. Shell "regsvr32 /s " & OCXName
    for each OCX file that the zip contains.

    If you want to, tell me the names of the ocx files and I will make you a quick project that you can compile.
    So..What i understand from you is that the exe zip file just extract the ocx to the system directory and don't registered them but i can put this code "Shell "regsvr32 /s " & OCXName" in my project to registered the ocx after extracting..IF so can't i made simply a resource file contain ocx files and extract them to the c:/windows/system ??
    and does this code "regsvr32 /s " & OCXName" register the ocx and then tell me in a message box that the ocx are registered succefully or registered them in Hide

    You propebly didn't understand a word cause i'm not that good with english..
    But if you want to make for me a program that extact OCX files only and registered them then that will be great

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    You propebly didn't understand a word cause i'm not that good with english..
    Ummm....

    The /s switch means that no message boxes will be displayed. That's best for when there are a few files to register.

    Tell me what the names of the OCX files are, and I will make a sample project for you. Tommorow! It's late where I am.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    120

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    Quote Originally Posted by penagate
    Ummm....

    The /s switch means that no message boxes will be displayed. That's best for when there are a few files to register.

    Tell me what the names of the OCX files are, and I will make a sample project for you. Tommorow! It's late where I am.
    thx man..
    You can do in whatever ocxfiles that you want..And i'll replace them when i get the code from you

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    OK here it is.
    Small example project, one form only, to show you (and other ppl)
    • how to use the regsvr32 util from VB to register dependencies
    • just for fun, how to use the browse for folder API.


    If you need anything more just ask
    Attached Files Attached Files

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    How are you getting that to run automatically?

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Small Question: If i use a zip file setup does it register the ocx files!!

    Quote Originally Posted by dglienna
    How are you getting that to run automatically?
    ...
    Quote Originally Posted by penagate
    Just place all of the ocx files into the zip and name the installer setup.exe or install.exe. IIRC you can then make it into a self-extracting EXE zip and your own setup prog will run automatically when the EXE is run.
    When the user runs the exe, Winzip detects that it is the installer app and automatically extracts all of the other files to a temporary folder. Then when you click Install in the app it will copy the dlls/ocxs from the temporary folder into the folder of choice, and register them.

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