Not a valid Win32 application

Posted on 2006-04-08
Last Modified: 2013-11-14
Hi experts,

i created a very small program, with no extra components, created an exe
and some people now downloaded it.
Some of them (not many) get the error message when they try to run it: not a valid Win32 application.

This exe is only 88 KB in size.
If i use Installshield to create an installation package it grows to over 5 MB in size, which is pretty much unacceptable for such a small program.
(in redistributables in Installshield:
- Microsoft component category manager library <--> can not be unchecked)
- Microsoft OLE 2.40 for windows NT and Windows 95 <--> can not be unchecked)
- Microsoft Visual basic Virtual Machine 6.0 <--> can be unchecked)

Components that are checked in Visual Basic: None...
- Visual basic for applications
- Visual basic runtime obects and procedures
- Visual basic objects and procedures
- OLE Automation

Pretty much lost here....

Question by:Paurths
    LVL 142

    Accepted Solution

    did they download the app with binary mode?
    which platform are you on (Alpha, Intel)?

    >If i use Installshield to create an installation package it grows to over 5 MB in size,
    the problem is that VB's runtime dll is over 3 MB and actually contains all the things that are NOT in the .exe.

    if you want a smaller exe without runtime dll's, vb is the wrong product, C/C++ etc will be better suited.

    LVL 12

    Author Comment

    thanx for the respons, angelIII,
    i'm using intel-platform

    this makes me wonder why it is that some people get the error (a minority) and others don't...

    These are in fact about 2 exe files, different ones.
    program 1: a few people got the error (filesize was OK --> some even got the error when installing the setup-file created with installshield...)
    program 2: everyone got the error, but it now seems that the exe-file was truncated. Its size was 15KB smaller than the original after downloading it.

    Assisted Solution

    I had a similar problem when posting an EXE for a vb app I wrote on my website. Some people it worked for and others it got corrupted when they downloaded. Zipping the file and letting them download the zip instead solved the problem for me.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now