Click here to Skip to main content
15,879,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to configure a silent install of office as referenced here

Heres my XML file:
XML
<Configuration>

<Add SourcePath="%PROGRAMDATA%\KnowHow Software Installer\OfficeInstall\" OfficeClientEdition="32" >
    <Product ID="O365HomePremRetail">
      <Language ID="en-us" />
    </Product>
  </Add>
<Updates Enabled="FALSE" UpdatePath="%PROGRAMDATA%\KnowHow Software Installer\OfficeInstall\" />

<Display Level="None" />

<Logging Level="Full" Name="OfficeSetup.txt" Path="%PROGRAMDATA%\KnowHow Software Installer\OfficeInstall\" />

</Configuration>


Here's my C# Code:
C#
Process installer = new Process();
installer.StartInfo.FileName = @"F:\Visual Studio 2013\Projects\Knowhow Installer\Knowhow Installer\bin\Debug\dmc\sft\office 2013\install.exe";
installer.StartInfo.Arguments = @"/config" + Application.StartupPath + @"\dmc\sft\office 2013\Office\365hp.xml";
installer.Start();
installer.WaitForExit();
installer.Close();
MessageBox.Show("Done");


What am I doing wrong?
Thanks for any help!
Posted
Comments
ZurdoDev 25-Nov-13 10:26am    
What's wrong?
Kieran Crown 25-Nov-13 10:47am    
It doesn't install, no log or anything is created
ZurdoDev 25-Nov-13 12:04pm    
No error?
Kieran Crown 25-Nov-13 12:12pm    
Nope, I've just used the OCT tool now, seems to work fine

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900