Silent or unattended installation

Silent or unattended installation

  • Comments 7

What is silent or unattended installation
Simply said silent install is installation without any UI. In this case it’s about how to run “setup.exe” in silent mode. It’s recommended that you only run “setup.exe” when you install a new NAV installation, because the installer have been tested by them using this procedure only. So by that said it’s no longer supported to install from the different msi files directly. This is true for all NAV 2009 releases. The major problem you may run into if you are installing directly from the msi files is that you will not get prerequisites (as .Net, Report Viewer and so on) installed and you will also miss out one some pre installs checks (validating that you have everything needed as outlook).

How to-do it?
It’s very simple. “setup.exe” does support some different parameters for this purpose:
/quiet <– will turn of the UI
/log [filename] <– create a log text file in the specified location
/config [filename]<– point to the configuration file to use during the installation
/uninstall <– will simple un install the product
/repair <– repairs a bad installation

The first thing that needs to be done is to create the configuration file that we will use.

  1. Star “setup.exe”
  2. Click “next”
  3. Click “I accept”
  4. Click “Choose an installation option”
  5. Click “Custom Components”
  6. Select the product that you want to install
  7. Update destination folder if needed by clicking on the “destination folder” link
  8. Click “next”
  9. Click on the component that you have picked to setup the different parameters as “server name” and so on. When done apply your changes.
  10. Click “save configuration”
  11. Pick a good location, name and save the xml file

You can create as many configuration files as you want for different purposes. Now, you can run the silent install by simply doing start -> run -> [setupExepath] /quiet /config [configfilepath.xml]. Be sure to take a look to the log file, to ensure everything went OK.

Example D:\setup.exe /quiet /config C:\configfiles\config1.xml /log C:\log.txt

Leave a Comment
  • Please add 3 and 5 and type the answer here:
  • Post
  • I'm just backlinking my blog for the same article...

    mibuso.com/.../silent-or-unattended-installation-of-nav-2009

  • What does that mean for deployment via GPO (that still is in the training manuals)??

  • Installing the MSI files directly is still possible as the training manuals states. You just need to ensure that all required prerequisites is installed on the machine also. All prerequisites is shipped on the DVD and should not be hard to handle with GPO.

  • only issue with this is it bombs out when running under the system account, which is what our KACE agent deploys software as so its user independent.

  • Do you know if this will automatically uninstall prior versions if run as noted above?  We have a client asking us to perform an automated update and I'm not sure if I can do it with only one job or not?

  • I need to change the language as User Settings as command Line. Have anyone a idea how this work.

    I cannot find the currend Language Settings.

  • To Get around the Install Kicking you out mid install for SCCM and Dell Kace, you can create directories under the system user profile dir prior to installation.

    For Example.

    @echo off

    IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

    :64BIT

    mkdir "C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming"

    mkdir "C:\Windows\SysWOW64\config\systemprofile\Desktop"

    mkdir "C:\Windows\SysWOW64\config\systemprofile\Favorites"

    mkdir "C:\Windows\SysWOW64\config\systemprofile\Documents"

    mkdir "C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Microsoft\Windows\Templates"

    mkdir "C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Microsoft\Windows\SendTo"

    mkdir “C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu”

    mkdir “C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup”

    setup.exe /quiet /config clientconfig.xml /log "C:\Temp\Navlog.txt"

    goto END

    :32BIT

    mkdir "C:\Windows\System32\config\systemprofile\AppData\Roaming"

    mkdir "C:\Windows\System32\config\systemprofile\Desktop"

    mkdir "C:\Windows\System32\config\systemprofile\Favorites"

    mkdir "C:\Windows\System32\config\systemprofile\Documents"

    mkdir "C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Templates"

    mkdir "C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\SendTo"

    mkdir “C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu”

    mkdir “C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup”

    setup.exe /quiet /config clientconfig.xml /log "C:\Temp\Navlog.txt"

    END

Page 1 of 1 (7 items)