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. Mobile Development
  3. Mobile
  4. Simple EVC4.0 app to run a CAB

Simple EVC4.0 app to run a CAB

Scheduled Pinned Locked Moved Mobile
question
6 Posts 2 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.
  • Z Offline
    Z Offline
    ZapMe1
    wrote on last edited by
    #1

    To create a simple app in EVC4.0 to run another .exe, I would simply use the "CreateProcess" command! This, however will not run a CAB file... Can someone tell me how I can do this ??? Please....:((

    G 1 Reply Last reply
    0
    • Z ZapMe1

      To create a simple app in EVC4.0 to run another .exe, I would simply use the "CreateProcess" command! This, however will not run a CAB file... Can someone tell me how I can do this ??? Please....:((

      G Offline
      G Offline
      GDavy
      wrote on last edited by
      #2

      you can run cab files through the WCELoad.exe app in the windows folder CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Greetings, Davy

      Z 1 Reply Last reply
      0
      • G GDavy

        you can run cab files through the WCELoad.exe app in the windows folder CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Greetings, Davy

        Z Offline
        Z Offline
        ZapMe1
        wrote on last edited by
        #3

        GDavy wrote: you can run cab files through the WCELoad.exe app in the windows folder CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Thank You very Much ! I will give this a try tonight, and post back with the results.. I appreciate the quick reply ! Regards Joe.........:-D ZapMe1

        Z 1 Reply Last reply
        0
        • Z ZapMe1

          GDavy wrote: you can run cab files through the WCELoad.exe app in the windows folder CreateProcess( L"\\Windows\\WCELoad.exe", cmdParam, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); where cmdParam is the full path of the cab file... you can also put some extra parameters in the cmdParam, but I don^t know them all... Thank You very Much ! I will give this a try tonight, and post back with the results.. I appreciate the quick reply ! Regards Joe.........:-D ZapMe1

          Z Offline
          Z Offline
          ZapMe1
          wrote on last edited by
          #4

          :confused: Strange! I don't understand why I can't get it to work.. I setup the "CreateProcess" just as you have above, and included the full path to the cab! The new app compiles and downloads to the device without error, but will not run !!!! Any Ideas ?? :( ZapMe1

          G 1 Reply Last reply
          0
          • Z ZapMe1

            :confused: Strange! I don't understand why I can't get it to work.. I setup the "CreateProcess" just as you have above, and included the full path to the cab! The new app compiles and downloads to the device without error, but will not run !!!! Any Ideas ?? :( ZapMe1

            G Offline
            G Offline
            GDavy
            wrote on last edited by
            #5

            Ok, This is how I run the cab files programmatically: PROCESS_INFORMATION pProcInfo; WCHAR cmdPara[256] = L"/noaskdest /delete 1 "; //underneath FileName is the full path + filename of the cab file. //eg FileName: "\FlashDisk\TheInstallFile.cab" wcscat( cmdPara, FileName ); return CreateProcess( L"\\Windows\\WCELoad.exe", cmdPara, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); Hope this helps you... Maybe it was the missing parameters that failed to make it work for you... This should give some info about params you can pass in the cmdPara: WCELoad info[^] Greetings, Davy

            Z 1 Reply Last reply
            0
            • G GDavy

              Ok, This is how I run the cab files programmatically: PROCESS_INFORMATION pProcInfo; WCHAR cmdPara[256] = L"/noaskdest /delete 1 "; //underneath FileName is the full path + filename of the cab file. //eg FileName: "\FlashDisk\TheInstallFile.cab" wcscat( cmdPara, FileName ); return CreateProcess( L"\\Windows\\WCELoad.exe", cmdPara, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pProcInfo ); Hope this helps you... Maybe it was the missing parameters that failed to make it work for you... This should give some info about params you can pass in the cmdPara: WCELoad info[^] Greetings, Davy

              Z Offline
              Z Offline
              ZapMe1
              wrote on last edited by
              #6

              Thank You again Sir!!!:suss: I will be able to give it a try on Friday morning, and again will post back here... Regards Joe.........:) ZapMe1

              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