473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Windows Installer Custom Action cannot do xcopy?

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
Dec 10 '07 #1
1 1979
On Dec 10, 10:33 am, Dave <djohanns...@gmail.comwrote:
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
Dec 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: DBT | last post by:
When I add an Install project to my Windows Service project everything compiles and it works okay. The problem is the Installer only writes the files to disk, but doesn't actually install the...
1
by: RA | last post by:
Hi I have created a Windows installer project from the .net vs. When I add custom actions for the Uninstall event how can I tell it in what sequence to launch the custome action? Whats happening...
2
by: Mark | last post by:
I've created a windows service that has a reference to another class library project. This all exists in VS.NET as a single solution. It is in release mode, and I'm ready to create an installer. ...
0
by: CJ Taylor | last post by:
Hey has anyone played with custom actions and the installer class? I've followed instructions from a couple articles on MSDN on how to build a custom install class, thought I did everything...
8
by: vtxr1300 | last post by:
I've followed 2 very similar tutorials on creating a windows service and an installer. But, after successfully compiling it, I try to do the InstallUtil command, but I get a...
6
by: Jason Richmeier | last post by:
I have encountered a problem with the installation of a Windows service. I know I have done this in the past so I am at a loss as to what I might be doing wrong. When I create a setup project...
1
by: lyl209 | last post by:
Hi, I am trying to create a web setup project for my asp.net 2.0 website and I had some problems. It worked fine until I want to add some custom actions into it. As some of you already knew,...
4
by: vovan | last post by:
I created Windows Service in VB 2005. Using InstallUtil.exe I register it on any machine with Windows XP, Windows 2003 Server without any problem. I even never had to learn that process. After...
7
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I have not touched a Windows Service app since my MCAD certs (about 5 years ago...) I've just been assigned to write a quickie app. I could use a 2nd opinion here. The app is to be written in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.