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