Run Program Issue

Got a problem you cannot solve? Try here.
Radical_Designz
Posts: 5
Joined: Mon Mar 19, 2007 8:56 am

Run Program Issue

Postby Radical_Designz » Wed Mar 28, 2007 1:06 pm

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

Radical_Designz
Posts: 5
Joined: Mon Mar 19, 2007 8:56 am

Postby Radical_Designz » Thu Mar 29, 2007 3:47 pm

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.

Radical_Designz
Posts: 5
Joined: Mon Mar 19, 2007 8:56 am

Postby Radical_Designz » Thu Mar 29, 2007 3:49 pm

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.

Radical_Designz
Posts: 5
Joined: Mon Mar 19, 2007 8:56 am

Postby Radical_Designz » Fri Mar 30, 2007 7:47 am

~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~
~~

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Fri Mar 30, 2007 8:22 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~
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

Radical_Designz
Posts: 5
Joined: Mon Mar 19, 2007 8:56 am

Postby Radical_Designz » Fri Mar 30, 2007 9:15 am

That worked great!! Thank you so much!!!


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 112 guests