PDA

View Full Version : Autoplay for office hotfixes


digitalsr2
06-02-2005, 06:31 AM
Ok, I have a slight problem. I'm trying to create an autorun Cd that will install MS Office 2000 patches. The problem is that the command line arguments I use work in the command prompt window. just that when I use the file.run command with the arguments it does not. It seems to think I'm using the wrong switches.

here is an example:

result = File.Run("kb887977.exe", "/Q", "", SW_SHOWNORMAL, true);

If it run it in the prompt directly as kb887977.exe /Q it works fine.

Anyone have any ideas?

rhosk
06-02-2005, 06:42 AM
That should work. Where is your executable located (assuming CD_ROOT?)? What error do you get? Try using Application.GetLastError() to see exactly what the problem is.

digitalsr2
06-06-2005, 08:24 AM
Ok, one problem is that withing the arg i need to specify a temp folder. It doesn't like the characters.

I need to use this arg: "/T:c:\temp\o2k\ /Q"

rhosk
06-06-2005, 08:37 AM
Try "/T:c:\\temp\\o2k\\ /Q"

digitalsr2
06-06-2005, 09:35 AM
Thanks. That worked!