Click to See Complete Forum and Search --> : Setup Problem


shree
October 3rd, 2001, 07:45 PM
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?

Cakkie
October 4th, 2001, 01:06 AM
This may be a stupid question, but are you shipping the .cab file with it?

Tom Cannaerts
slisse@planetinternet.be

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

DSJ
October 4th, 2001, 08:27 AM
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.

Cimperiali
October 4th, 2001, 09:01 AM
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

Iouri
October 4th, 2001, 10:11 AM
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
iouri@hotsheet.com

shree
October 4th, 2001, 07:35 PM
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.

shree
October 4th, 2001, 07:39 PM
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.

shree
October 4th, 2001, 07:40 PM
I'll have to find out what OS my user has. Are there any known OS issues regarding setups?

shree
October 4th, 2001, 07:42 PM
I'll check that too. But does that give a problem while setting up the program?

Cakkie
October 5th, 2001, 01:23 AM
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
slisse@planetinternet.be

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

Cimperiali
October 5th, 2001, 01:45 AM
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

Cimperiali
October 5th, 2001, 01:59 AM
'(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

Chris Eastwood
October 5th, 2001, 04:01 AM
<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