Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Require help on self extracting .exe and cab file

Require help on self extracting .exe and cab file

Scheduled Pinned Locked Moved C / C++ / MFC
help
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    H4u32
    wrote on last edited by
    #1

    Hello all, My reqirement is to download .CAB file containing OCX, EXE, INF files over net from specified URL. Having been downloaded .CAB file, it shold be self extracted and in turn call .exe on client machine That is, it should be autorun. If my OCX and exe is already there on remote machine then it should not download again and run existing one. Please help me out. Any help is highly appreciated. Thanks & Regards, Hemang

    I 1 Reply Last reply
    0
    • H H4u32

      Hello all, My reqirement is to download .CAB file containing OCX, EXE, INF files over net from specified URL. Having been downloaded .CAB file, it shold be self extracted and in turn call .exe on client machine That is, it should be autorun. If my OCX and exe is already there on remote machine then it should not download again and run existing one. Please help me out. Any help is highly appreciated. Thanks & Regards, Hemang

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      What are you struggling with? I assume you've done some work already. Can you download files? Can you extract files from CABs? Can you use CreateProcess? etc. You're question needs to be broken into bite size chunks. Good luck, Iain.

      Iain Clarke appearing in spite of being begged not to by CPallini.

      H 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        What are you struggling with? I assume you've done some work already. Can you download files? Can you extract files from CABs? Can you use CreateProcess? etc. You're question needs to be broken into bite size chunks. Good luck, Iain.

        Iain Clarke appearing in spite of being begged not to by CPallini.

        H Offline
        H Offline
        H4u32
        wrote on last edited by
        #3

        I want to download exe and run that exe from decided/desired default directory(C:\Windows). But i am not able to download it. I also require WSOCK.dll for my EXE. I am attaching my INF file code snippet to make things clear. I hope that from this code snippet you will be able to understand and help me out. [version] signature="$CHICAGO$" AdvancedINF=2.0 [Add.Code] CaptureActivex.ocx = CaptureActivex.ocx // My OCX msvcrt.dll=msvcrt.dll mfc80.dll=mfc80.dll olepro32.dll=olepro32.dll [CaptureActivex.ocx] file-win32-x86=thiscab clsid={C3525B97-002E-4062-8CBE-2A3B06FD39FE} FileVersion=1,0,0,1 RegisterServer=yes [msvcrt.dll] FileVersion=7,0,3790,3959 hook=mfc80installer [mfc80.dll] FileVersion=8,0,50727,762 hook=mfc80installer [olepro32.dll] FileVersion=5,2,3790,3959 hook=mfc80installer [mfc80installer] file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab run=%EXTRACT_DIR%\mfc42.exe Thanks & Regards, Hemang

        W D 2 Replies Last reply
        0
        • H H4u32

          I want to download exe and run that exe from decided/desired default directory(C:\Windows). But i am not able to download it. I also require WSOCK.dll for my EXE. I am attaching my INF file code snippet to make things clear. I hope that from this code snippet you will be able to understand and help me out. [version] signature="$CHICAGO$" AdvancedINF=2.0 [Add.Code] CaptureActivex.ocx = CaptureActivex.ocx // My OCX msvcrt.dll=msvcrt.dll mfc80.dll=mfc80.dll olepro32.dll=olepro32.dll [CaptureActivex.ocx] file-win32-x86=thiscab clsid={C3525B97-002E-4062-8CBE-2A3B06FD39FE} FileVersion=1,0,0,1 RegisterServer=yes [msvcrt.dll] FileVersion=7,0,3790,3959 hook=mfc80installer [mfc80.dll] FileVersion=8,0,50727,762 hook=mfc80installer [olepro32.dll] FileVersion=5,2,3790,3959 hook=mfc80installer [mfc80installer] file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab run=%EXTRACT_DIR%\mfc42.exe Thanks & Regards, Hemang

          W Offline
          W Offline
          Waldermort
          wrote on last edited by
          #4

          Hemang Raval wrote:

          I want to download exe and run that exe from decided/desired default directory(C:\Windows). But i am not able to download it.

          Perhaps you could show us what you have already tried to code, from there we may be able to point you in the right direction.

          Waldermort

          H 1 Reply Last reply
          0
          • W Waldermort

            Hemang Raval wrote:

            I want to download exe and run that exe from decided/desired default directory(C:\Windows). But i am not able to download it.

            Perhaps you could show us what you have already tried to code, from there we may be able to point you in the right direction.

            Waldermort

            H Offline
            H Offline
            H4u32
            wrote on last edited by
            #5

            I have made an Activex control using MFC Activex Dll. Then I tried to call an EXE from that ActiveX. For that I made cab file containing my OCX, EXE, dll, and INF files. Then after i tried to download an active control by using HTMl file located on some web server. This should extract cab file and in turn install and run EXE to and from desired location which i set from INF file. It is most probably C:\Windows. now can you tell whether i am folllowing correct path or not. Thanks & Regards Hemang

            1 Reply Last reply
            0
            • H H4u32

              I want to download exe and run that exe from decided/desired default directory(C:\Windows). But i am not able to download it. I also require WSOCK.dll for my EXE. I am attaching my INF file code snippet to make things clear. I hope that from this code snippet you will be able to understand and help me out. [version] signature="$CHICAGO$" AdvancedINF=2.0 [Add.Code] CaptureActivex.ocx = CaptureActivex.ocx // My OCX msvcrt.dll=msvcrt.dll mfc80.dll=mfc80.dll olepro32.dll=olepro32.dll [CaptureActivex.ocx] file-win32-x86=thiscab clsid={C3525B97-002E-4062-8CBE-2A3B06FD39FE} FileVersion=1,0,0,1 RegisterServer=yes [msvcrt.dll] FileVersion=7,0,3790,3959 hook=mfc80installer [mfc80.dll] FileVersion=8,0,50727,762 hook=mfc80installer [olepro32.dll] FileVersion=5,2,3790,3959 hook=mfc80installer [mfc80installer] file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab run=%EXTRACT_DIR%\mfc42.exe Thanks & Regards, Hemang

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Hemang Raval wrote:

              But i am not able to download it.

              So why bother with anything else until you get this one piece figured out? Don't intentionally over-complicate things.

              "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups