CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Thread: Setup Problem

  1. #1
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Setup Problem

    I put the Setup progarm for my application (created with the PDW) on my site. When my client downloaded it, and tried to run Setup.exe, he got this error.

    CreateProcess() returned error code 0x000000C1H

    and Setup quit. What could be the matter?


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Setup Problem

    This may be a stupid question, but are you shipping the .cab file with it?

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    Re: Setup Problem

    I believe that error code was returned from GetLastError() after the call to CreateProcess()... that error indicates BAD_EXE_FORMAT. To me that indicates either a corrupted EXE or DLL that is trying to be used by the setup program.


  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Moreover...

    I know you probably have already fixed this, but, just to remember:
    you may have matters with different win Os versions...

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  5. #5
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Setup Problem

    Does your client has DCOM98 installed on his machine? DCOM98 usually is not includeed to the PDW setup. Also if you are using database in your app, make sure that your client receives the latest version of MDAC ( I believe the latest now is MDAC 2.6 SP1). Even if you installed the latest version of MDAC on your PC, PDW grabs it from Redist folder. Make sure that you copied there the latest version after installation on your computer.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  6. #6
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Setup Problem

    Yes, the .cab file too is shipped. I checked that the client downloaded it completely.

    I have not yet solved the problem. If you have other ideas, please do share.


  7. #7
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Setup Problem

    Something puzzles me, I downloaded the program from the site and it installs nicely on my system. Why it doesn't install on his, I am wondering.


  8. #8
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Moreover...

    I'll have to find out what OS my user has. Are there any known OS issues regarding setups?


  9. #9
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Setup Problem

    I'll check that too. But does that give a problem while setting up the program?




  10. #10
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Setup Problem

    Do you have Visual Studio Installer? It comes with VS Enterprise Edition. This is way easier to use, gives a nicer setup, and is much more stable then the PDW, the only downside is that clients will need Windows Installer, cause it creates .msi files. This can be downloaded from the :M$ (oops, wrong forum) website.

    If you can't solve the problem, why not avoid it (or try to)

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  11. #11
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Moreover...

    If you serach in your machine the "Setup1.vbp" and then open the prj and search for "declare", you will find a lot of Api calls. It is enough that one is not compatible...


    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  12. #12
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: For example...


    '(Components included in your project may have other restrictions. I do
    'remember the impossibility to run a setup on a machine with win2000 having a
    'cristal report included in project...)

    'The following is used to tetermine if on Wnnt machine or not:
    '(from Api guide)
    'The GetVersionEx function obtains extended information about the version of
    'the operating system that is currently running.
    'This api "Requires Windows NT 3.5(1) or later; Requires Windows 95 or later"
    'Thus, you must be sure your user is not running a previous Nt version...

    'this is code from setup1.vbp
    public Function IsWindowsNT() as Boolean
    Const dwMaskNT = &H2&
    IsWindowsNT = (GetWinPlatform() And dwMaskNT)
    End Function
    '----------------------------------------------------------
    ' FUNCTION: GetWinPlatform
    ' get the current windows platform.
    ' ---------------------------------------------------------
    public Function GetWinPlatform() as Long
    Dim osvi as OSVERSIONINFO

    osvi.dwOSVersionInfoSize = len(osvi)
    If GetVersionEx(osvi) = 0 then
    Exit Function
    End If
    GetWinPlatform = osvi.dwPlatformId
    End Function




    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  13. #13
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Setup Problem

    <de-lurk>

    Again, if anyone wants a much better installer than PDW (not difficult) or even MSI, I'd still recommend people take a look at innosetup - http://www.innosetup.com - fast, free, scripting language, well supported, works on all versions of windows, free add-in tools, no runtime dependancies etc.

    </de-lurk>


    Chris Eastwood
    VBCodeLibrary - http://www.vbcodelibrary.com

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

Featured