Run Program Issue
-
- Posts: 5
- Joined: Mon Mar 19, 2007 8:56 am
Run Program Issue
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
-
- Posts: 5
- Joined: Mon Mar 19, 2007 8:56 am
could someone please shoot me an idea. I have been on this for several days now.
Last edited by Radical_Designz on Fri Mar 30, 2007 7:49 am, edited 1 time in total.
-
- Posts: 5
- Joined: Mon Mar 19, 2007 8:56 am
-
- Posts: 5
- Joined: Mon Mar 19, 2007 8:56 am
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~
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~
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
-
- Posts: 5
- Joined: Mon Mar 19, 2007 8:56 am
Who is online
Users browsing this forum: No registered users and 112 guests