473,654 Members | 3,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 kafInstallProce ss = new Process();

kafInstallProce ss.StartInfo.Re directStandardE rror = true;
kafInstallProce ss.StartInfo.Us eShellExecute = false;
kafInstallProce ss.StartInfo.Re directStandardO utput = true;
kafInstallProce ss.StartInfo.Fi leName = @"xcopy";
kafInstallProce ss.StartInfo.Ar guments = "/Y \"C:\\Downloads \\KAF1.2\
\KAF\\*.*\" \"C:\\Progra m Files\\KAF\\bin \"";

kafInstallProce ss.Start();

thanks for any help!

dave
Dec 10 '07 #1
1 1989
On Dec 10, 10:33 am, Dave <djohanns...@gm ail.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 kafInstallProce ss = new Process();

kafInstallProce ss.StartInfo.Re directStandardE rror = true;
kafInstallProce ss.StartInfo.Us eShellExecute = false;
kafInstallProce ss.StartInfo.Re directStandardO utput = true;
kafInstallProce ss.StartInfo.Fi leName = @"xcopy";
kafInstallProce ss.StartInfo.Ar guments = "/Y \"C:\\Downloads \\KAF1.2\
\KAF\\*.*\" \"C:\\Progra m Files\\KAF\\bin \"";

kafInstallProce ss.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
2743
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 service. Thus I must manually use InstallUtil.exe to install the service. I thought the installer handled this. I'm using VS2003.
1
1722
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 is that it removes the files and then tries to execute the custome action. Also how can I get the return value from the custome action? Am I better of to write the code to interface with the windows installer instead of relaying on vs to do the...
2
1973
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. I've added a new project to my solution of the type "Setup Wizard". I indicated it was a Windows Application, and that I wanted everything included with the exception of the debug files. I did not add any additional files. I've never used...
0
934
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 right, but I just keep getting errors. I have included the DLL project in in my installer project (MSI) and set the custom action to execute on Install. Now I have set the RunInstallerAttribute to true, set the Entrypoint to be
8
7213
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 badimageformatexception. I tried to do some searching on that exception, but all I could find was a small blurb on MSs site about C++ which I'm not using. Can anyone see a problem in this code? Thanks. using System; using System.Collections.Generic; using...
6
1512
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 for a Windows Service project, build and then run it, the installation completes successfully but the service does not show up in the service control panel. If I install the service using installutil.exe the service will install just fine. Any...
1
2858
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, custom actions get fired AFTER the real installation is done. I want to do some things like 1) check if some required software is in position if not execute an installer 2) backup some important files before installation
4
3392
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 registration I see a couple of new files in the folder where I have My Service EXE file (MSFaxListener.exe). Their names are MSFaxListener.InstallLog and MSFaxListener.InstallState. In the list of Services I see MSFaxListener service. I tried to...
7
1346
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 Dot Net 2.0 (VB). Probably all it will do is monitor a directory (at intervals controled by a timer), do some stuff with text files, and ftp text files to an ftp. I believe I've successfully tested most of the techniques I'll be using but I was...
0
8815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8708
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8489
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.