Autoplay for office hotfixes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • digitalsr2
    Forum Member
    • May 2005
    • 15

    Autoplay for office hotfixes

    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
    Indigo Rose Customer
    • Aug 2003
    • 1698

    #2
    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.
    Regards,

    -Ron

    Music | Video | Pictures

    Comment

    • digitalsr2
      Forum Member
      • May 2005
      • 15

      #3
      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"

      Comment

      • rhosk
        Indigo Rose Customer
        • Aug 2003
        • 1698

        #4
        Try "/T:c:\\temp\\o2k\\ /Q"
        Regards,

        -Ron

        Music | Video | Pictures

        Comment

        • digitalsr2
          Forum Member
          • May 2005
          • 15

          #5
          Thanks. That worked!

          Comment

          Working...
          X