Auto silent install .exe file?

ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
Hi guys I am trying to install the following application silently Office 2010 starter edition.

I have tried various power shell commands, But I cannot get the application to run silently I am not sure of the correct switches.
Microsoft's strategy to conquer the I.T industry

" Embrace, evolve, extinguish "

Comments

  • shochanshochan Member Posts: 963 ■■■■■■■□□□
    2021 Goal ~ OSCP

    Urban Achiever~ A+, Network+, i-Net+, MCP 70-210, CNA v5, Server+, Security+, Cloud+, CySA+
    A.A.S - CIS
  • ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
    This is a script currently working on :)

    # This starts the office install which doesnt need to be a part of the other command
    Start-Process -FilePath "C:\Office"

    # This picks how long the script will wait before starting to install Ninite
    timeout 5

    # This starts Ninite and waits for it to be closed to carry on the script
    $p = New-Object System.Diagnostics.Process
    $pinfo = New-Object System.Diagnostics.ProcessStartInfo("C:\Ninite.exe","");
    $p.StartInfo = $pinfo;
    $p.Start();
    $p.WaitForExit();
    Write-Host "end of ps1" + (Get-Date).DateTime

    Remove-Item c:\Ninite.exe
    # This Restarts the machine when the script is finished



    The script launches during windows startup installs ninite apps and office and then removes files and reboots once install is complete
    Microsoft's strategy to conquer the I.T industry

    " Embrace, evolve, extinguish "
  • shimasenseishimasensei BSc IT, CISSP, CCNP:RS, CCNA:Sec, CCNA:RS, CCENT, Sec+, P+, A+, L+/LPIC-1, CSSS, VCA6-DCV, ITILv3:F Member Posts: 241 ■■■□□□□□□□
    +1 for PSExec!
    Current: BSc IT + CISSP, CCNP:RS, CCNA:Sec, CCNA:RS, CCENT, Sec+, P+, A+, L+/LPIC-1, CSSS, VCA6-DCV, ITILv3:F, MCSA:Win10
    Future Plans: MSc + PMP, CCIE/NPx, GIAC...
  • ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
    Got some progress guys, The current script kicks in Once Windows has been installed, It automatically installs Office Starter and Ninite applications and then cleans up the install files once installation is complete.

    Combination of a batch script, Powershell and AutoIT :)
    Microsoft's strategy to conquer the I.T industry

    " Embrace, evolve, extinguish "
Sign In or Register to comment.