dufran3 Posted March 19, 2007 Share Posted March 19, 2007 I am trying to execute a uninstall string found in the registry: C:\UCCLIE~1\UNWISE.EXE C:\UCCLIE\INSTALL.LOG Above is the exact command that is found for the application. I verify the directories are there, and it looks good. I would like to execute it like this. C:\UCCLIE~1\UNWISE.EXE /s C:\UCCLIE\INSTALL.LOG Adding a /s switch to it. However, with or without the switch I cannot execute it. I get an error saying: " ==> Unable to execute the external program.: The directory name is invalid" I can open up and command prompt, and enter in either command, and it executes fine. Any ideas? Below are the ways I have tried running it. $uninstallstring = 'C:\UCCLIE~1\UNWISE.EXE C:\UCCLIE\INSTALL.LOG'oÝ÷ Ù«¢+Ø)IÕ¹]¥Ð¡ ½µMÁµÀìÅÕ½Ðì½ÌäíèÀäÈíU 1%øÄÀäÈíU9]%M¹aèÀäÈíU 1%ÀäÈí%9MQ10¹1=ÌäìÅÕ½Ðì¤oÝ÷ Ù«¢+ÙIÕ¸¡ ½µÍÁµÀìÅÕ½Ðì½ÅÕ½ÐìµÀìÅÕ½ÐíÍÑÉÐÅÕ½ÐìµÀìÀÌØíÕ¹¥¹Íѱ±ÍÑÉ¥¹°ÅÕ½ÐìÅÕ½Ðì±M]}!%oÝ÷ Ù«¢+ÙIÕ¹]¥Ð ÀÌØíÕ¹¥¹Íѱ±ÍÑÉ¥¹ Can't get any of these to work. Help please! Link to comment Share on other sites More sharing options...
dufran3 Posted March 19, 2007 Author Share Posted March 19, 2007 Well, maybe this will be helpful to everyone here. Add the stinking working dir.!!!! ARG.... $uninstallstring = 'C:\UCCLIE~1\UNWISE.EXE C:\UCCLIE\INSTALL.LOG' $workingdir = 'C:\UCCLIE~1\' RunWait($uninstallstring,$workingdir) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now