Page 1 of 1

Run Program Issue

Posted: Wed Mar 28, 2007 1:06 pm
by Radical_Designz
Im running into an issue running two commands as Run Program. The two commands I am running are [ Net user $username$ $pswd$ /add ] and [ isftpdr ] command. The commands work on my dev box just fine. I am the administrator of course of this box. However. When I take the finished msi to my test box the commands launch but do not create the information. I am also logged in as an Admin in my test box which is 2k3 server. I have tested both commands via the cmd prompt just to make sure the commands even worked in a cross platform type thing. If anyone has any ideas what this could be. Please help guide me in the right direction. Thank you

Posted: Thu Mar 29, 2007 3:47 pm
by Radical_Designz
could someone please shoot me an idea. I have been on this for several days now.

Posted: Thu Mar 29, 2007 3:49 pm
by Radical_Designz
yes, this is after apply install

yes, this has been verified thru the cmd promt.

Its like its not firing correctly because i can't even get an output file > C:\\debug1.txt to fire. So it has to be blowing up before the command itself. but i have verfied pathnames and the whole 9 yards.

Posted: Fri Mar 30, 2007 7:47 am
by Radical_Designz
~InstallAware Clipboard Data~
~Run Program~
~{4E176946-DFC7-4800-8AFC-77A6BE65BBD8}~
~$WINSYSDIR$\\cscript.exe~
~FALSE~
~iisftpdr.vbs /create "Default FTP Site" Videos $WWWROOTDIR$\\$SITENAME$\\Videos~
~TRUE~
~~

Posted: Fri Mar 30, 2007 8:22 am
by jimo
I would try using "Run Program As" and set the working directory, don't worry about the rest of the credentials, just use it to set the working directory and running the program.

Alternatively you can use Call DLL and set the current directory with a WinApi call as in:
~InstallAware Clipboard Data~
~Call DLL Function~
~{8A319930-8E08-4988-BA1B-9297B10367B7}~
~kernel32.dll,SetCurrentDirectoryA,bool,LASTERROR,"pointer to string",$WINSYSDIR$,$~
~mIDEFunc.dll\\mEXEFunc.dll~

Posted: Fri Mar 30, 2007 9:15 am
by Radical_Designz
That worked great!! Thank you so much!!!