View Single Post
  #1  
Old March 29th 07, 01:39 PM posted to microsoft.public.windowsxp.print_fax
SymbiosisBCA2003Passouts
external usenet poster
 
Posts: 1
Default rundll32 fails when run from a c# code.

Hi

I am getting a strange problem while executing rundll32 for installing
printer driver for my app.

For doing some custom tasks at the time of driver installation, what i
did is that i created an executable in c# in which i spawned number of
process (one by one) to kick off for the respective tasks.

One of this process is this rundll32 for printer driver installation.

The executable runs fine and does what intended very well, then i
tried to incorporate into installshields custom action, because we
need to perform this at the installation time.

There when the main exe runs, it is able to call all the other
processes i added in it, but as the rundll32 process starts it pops up
a message stating that "Operation could not be completed" and the
driver installation doesn't starts. For clarifications i checked the
process return state as well, the exit code for the process is 100,
tried searching for it also but got no help.

As a step for verification i did tried to create another exe which
runs the above created exe as a process, and the same problems pops
up, hence my guess is that it is through the chaining of the process
is the rundll32 failing to run as a child process, while rest are
running fine.

Please provide a solution.

Thanks

Gaurav Khanna

Ads