Error *.exe

  • Thread starter Thread starter Konstantin
  • Start date Start date
K

Konstantin

Hi all. Help me.
I have an image with the shell prototype component (minlogon) but
loaded my program may not run any *.exe file.
Who than may help? Thank
 
Konstantin,

How do you launch an .exe (from your shell app) ? CreateProcess?
What parameters you pass with the call. Give us an example.

KM
 
KM said:
Konstantin,

How do you launch an .exe (from your shell app) ? CreateProcess?
What parameters you pass with the call. Give us an example.

KM

KM,

I start the application using an example from book Sean Liming "
Reggie Shell ". My application has the button for call of other (*.exe
application. When I try it to start that of nothing occur. Tell as it
is possible to start any **.exe file from other application? Thank
 
Konstantin,
I start the application using an example from book Sean Liming "
Reggie Shell ". My application has the button for call of other (*.exe
application. When I try it to start that of nothing occur. Tell as it
is possible to start any **.exe file from other application? Thank

Sorry, I haven't read the book. You will need to provide more details on how
you implemented the app.
Again, what API call (and what language) you use to invoke an .exe ?

Yes, it is possible to start any .exe from an application on any Windows
version as soon as you have all exe dependencies in OS.

KM
 
KM said:
Konstantin,


Sorry, I haven't read the book. You will need to provide more details on how
you implemented the app.
Again, what API call (and what language) you use to invoke an .exe ?

Yes, it is possible to start any .exe from an application on any Windows
version as soon as you have all exe dependencies in OS.

KM

KM,

I have all dependencies in OS.
I call the application using API (ShellExecute).
I receive an error code:
SE_ERR_NOASSOC (31)
There is no application associated with the given file name extension.
This error will also be returned if you attempt to print a file that
is not printable.
Thank
 
Konstantin,

Could you show us the exact command that you use to call ShellExecute?
What your image is based on - Minlogon or Winlogon?

To get a quick workaround - use CreateProcess API. It is always safe.

KM
 
Hi Konstantin,

I must agree with Konstantin :) CreateProcess is always the best solution since this is low-level API function and it will always
work. ShellExecute requires too many things and it may not be present in your image build or something else is missing like your
error says. ShellExecure probably can execute any file like .bmp or .doc if you have appropriate file extension mapped in registry
with program that should be used for opening.

Best regards,
Slobodan
 
Back
Top