A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Printing and Faxing with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

rundll32 fails when run from a c# code.



 
 
Thread Tools Display Modes
  #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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 09:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.