Windows Installer Custom Action cannot do xcopy?

D

Dave

I'm trying to do the following xcopy from my Windows installer and it
doesn't work. I even tried running the installer as user with
credentials instead of LocalService. I'm running in 2003Server, so
its not a vista issue.

Any ideas why i cannot do this xcopy from my installer, yet it works
fine from console program?

Process kafInstallProcess = new Process();

kafInstallProcess.StartInfo.RedirectStandardError = true;
kafInstallProcess.StartInfo.UseShellExecute = false;
kafInstallProcess.StartInfo.RedirectStandardOutput = true;
kafInstallProcess.StartInfo.FileName = @"xcopy";
kafInstallProcess.StartInfo.Arguments = "/Y \"C:\\Downloads\\KAF1.2\
\KAF\\*.*\" \"C:\\Program Files\\KAF\\bin\"";

kafInstallProcess.Start();

thanks for any help!

dave
 
D

Dave

I'm trying to do the following xcopy from my Windows installer and it
doesn't work. I even tried running the installer as user with
credentials instead of LocalService. I'm running in 2003Server, so
its not a vista issue.

Any ideas why i cannot do this xcopy from my installer, yet it works
fine from console program?

Process kafInstallProcess = new Process();

kafInstallProcess.StartInfo.RedirectStandardError = true;
kafInstallProcess.StartInfo.UseShellExecute = false;
kafInstallProcess.StartInfo.RedirectStandardOutput = true;
kafInstallProcess.StartInfo.FileName = @"xcopy";
kafInstallProcess.StartInfo.Arguments = "/Y \"C:\\Downloads\\KAF1.2\
\KAF\\*.*\" \"C:\\Program Files\\KAF\\bin\"";

kafInstallProcess.Start();

thanks for any help!

dave

One small addendum is, I'm forced to do the xcopy as I'm actually
running a third party batch file from the installer - which contains
xcopy's. i isolated the xcopy to narrow the focus of the issue at
hand.

I cannot figure this thing out.

thanks, dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top