Microsoft KB Archive/313301

= How to use Silent Mode Setup to deploy ActiveSync 3.7 =

Article ID: 313301

Article Last Modified on 5/19/2005

-

APPLIES TO


 * Microsoft ActiveSync 3.6

-



This article was previously published under Q313301



IN THIS TASK
SUMMARY How to create the Silent.ini file
 * Silent.ini file settings

How to run Silent Mode Setup Additional information about install source folder structure



SUMMARY
You can use Microsoft ActiveSync to synchronize data between your desktop computer and your mobile device (either your laptop or your Microsoft Pocket PC device). If you are a system administrator, you can use the Silent Mode Setup feature to rapidly deploy ActiveSync across a large organization. This step-by-step article describes how to use ActiveSync Silent Mode Setup to install ActiveSync.

back to the top

How to create the Silent.ini file
ActiveSync Silent Mode Setup uses the configuration settings that are included in the Silent.ini initialization file. You must create this file before you can run Silent Mode Setup. Silent.ini is a text file; therefore, you can use any text editor, such as Microsoft Notepad, to create this file. A Silent.ini file may contain the following settings: ; Settings for silent install [ActiveSync] InstallDir = %ProgramFilesDir%\Microsoft ActiveSync UsePreviousPort = 1 CommPort = ResetRasServerPorts = 1 DesktopIcon = 1 Reboot = 1 The format of the file is similar to Windows .ini files in the following ways:
 * The file can include comments (on lines that start with a semicolon [;]).
 * Sections in the file start with a name in brackets (the Silent.ini file includes the [ActiveSync] section only).
 * Sections contain &quot; =  &quot; commands. These commands answer the questions that do not typically occur during Setup.

The following section describes the settings and the possible values that you can use in the Silent.ini file. You can omit values for any of these settings. If you do so, Silent Mode Setup uses the default values.

back to the top

Silent.ini file settings
InstallDir  Description: This setting determines the location in which Setup places the ActiveSync 3.1 files. You can enter a path to any folder. Setup creates the folder if it does not exist. Values: You can set the following values with this option:  %ProgramFilesDir%\  %SystemDrive%\   

The &quot;%SystemDrive%&quot; entry is replaced by the drive letter of the Windows drive (typically, drive C). The &quot;%ProgramFilesDir%&quot; entry is replaced by the Program Files folders in the Windows drive (typically, C:\Program Files). Default Value: %ProgramFilesDir%\ActiveSync

Note This setting is ignored if ActiveSync or Microsoft Windows CE Services is already installed on the user's computer. In this situation, the Silent.ini file uses the existing folder.</li></ul>

UsePreviousPort  Description: This setting determines whether Setup uses an existing COM port setting, if it exists. This setting is ignored if ActiveSync or Windows CE Services is not already installed on the user's system.</li> Values: You can set the following values with this setting:  0: Setup uses an existing COM port setting.</li> 1: Setup does not use an existing COM port setting.</li></ul>

</li> Default value: 1</li></ul>

CommPort  Description: This setting determines the COM port that ActiveSync checks for devices. If you do not set a value, an initial COM port is not set. ActiveSync either uses the previous version's port or searches for a port when you run ActiveSync for the first time.</li> Values: You can use the following values with this setting:  COM1</li> COM2</li> COM3</li> COM4</li></ul>

</li> <li>Default value: No value

Note This option is ignored if UsePreviousPort is set to 1, if ActiveSync or Windows CE Services is already installed on the user's computer, and if you previously set a COM port.</li></ul>

ResetRasServerPorts <ul> <li>Description: This setting determines whether Setup resets the COM ports that are used by remote access.</li> <li>Values: You can set the following values with this setting: <ul> <li>0: Setup resets the COM ports that are used by remote access.</li> <li>1: Setup does not reset the COM ports that are used by remote access.</li></ul>

</li> <li>Default value: 1

Note This setting is ignored if you specify the CommPort setting or if a previous port is found.</li></ul>

DesktopIcon <ul> <li>Description: This setting determines whether Setup puts a shortcut to ActiveSync on the user's desktop.</li> <li>Values: You can set the following values with this setting: <ul> <li>0: Setup puts a shortcut to ActiveSync on the user's desktop.</li> <li>1: Setup does not put a shortcut to ActiveSync on the user's desktop.</li></ul>

</li> <li>Default value: 1</li></ul>

Reboot <ul> <li>Description: This setting determines whether Setup restarts the user's computer.</li> <li>Values: You can set the following values with this setting: <ul> <li>1: Setup restarts the user's computer (if you must restart the computer).</li> <li>0: Setup does not restart the user's computer.</li></ul>

</li> <li>Default value: 1</li></ul>

back to the top

How to run Silent Mode Setup
Silent Mode Setup is located in the Main folder on the ActiveSync compact disc (CD). This program is not the same Setup program that is located in the root folder of the CD. Use the /s command-line option to specify Silent mode.

To run Silent Mode Setup, follow these steps in either a command window or in a batch file:
 * 1) In a command window, type the fully qualified domain name (FQDN) of the Silent Mode Setup program, the /s command-line option, and the name of the .ini file. For example, type one of the following commands:
 * d:\main\setup.exe /s silent
 * d:\main\setup.exe /s &quot;silent.ini&quot;
 * d:\main\setup.exe /s &quot;\\server\public\microsoft activesync\silent.ini&quot;
 * 1) Examine the log file to confirm that Setup was successful.

Log information is placed in the Wcesetup.log file. Setup creates this file in a temporary folder, and then copies it to the folder in which you installed ActiveSync. If Setup is unsuccessful, the log file is located in the %Tmp% folder, which is the folder that is specified in the TMP environment variable.

back to the top

Additional information about install source folder structure
In the case where you cannot point the Silent Mode Setup program to an install CD with a main folder, you can manually create an install folder structure by using one of the following methods: <ul> <li>Obtain a copy of the Msasync.exe file. If you do not have a copy of this install file, you can download a copy of this file. To do this, visit the following Microsoft Web site:

http://www.microsoft.com/windowsmobile/products/pocketpc/default.mspx

Then, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Download the latest version of ActiveSync.</li> <li>Run the self-extracting Msasync.exe file. This starts the ActiveSync Setup program.</li> <li>When the Set Up Microsoft ActiveSync dialog box appears, do not continue with the Setup program, and leave the dialog box open.</li> <li>In Windows Explorer, open the hidden Temp\IXP .TMP folder.

Note  is a number that starts with 000. For example: <ul> <li>In Microsoft Windows XP and Microsoft Windows 2000: C:\Documents and Settings\ \Local Settings\Temp\IXP .TMP.</li> <li>In Microsoft Windows 95 and Microsoft Windows 98: C:\Windows\Temp\IXP .TMP.</li></ul>

This folder contains the folder structure that you must have to run Silent Mode Setup from.</li> <li>Copy this folder and the contents of this folder to a location that you choose. As soon as the folder and the files have been copied, cancel the pending ActiveSync setup. This action will remove the IXP .TMP folder and its contents.</li></ol> </li> <li>Use of of the following command-line options for the Msasync.exe self-extracting program to determine this install folder structure: <ul> <li>/Q

This option means Quiet modes for package. This option runs the Setup Program as if you ran Msasync.exe with the default location set.</li> <li>/T: 

This option specifies a temporary working folder. This action extracts and copies the needed temporary install source files to a location that is specified by. Then, it starts the Setup program as if you ran Msasync.exe.</li> <li>/C

This option only extracts files to the folder when the option is used with the /T switch. This action only copies the files that are in the install folder and does not copy the subfolders that are needed.</li> <li>/C: 

This option overrides the install command that is defined by the author.</li></ul> </li></ul>

Keywords: kbhowtomaster KB313301

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.