[This is preliminary documentation and subject to change.]
Your application requires a standard Setup .inf file. This section details only those modifications required to integrate with the Setup Computer Wizard (SCW). For more information on the .inf file required for setting up your application, see the documentation that accompanied your Setup management software.
Along with the other information you must place in your application .inf file, you must provide the following information to SCW:
Use the %SBSServer% environment variable for the path to the server, and construct the install command from that location. Small Business Server shares the %SBSServer%\CLIENTS directory that you can use for this purpose. If you don't use the %SBSServer%\CLIENTS directory, then you will have to make sure that users who install your application has permission to run programs in the directory.
The following example depicts the INF provided by the developer of the fictional Bob's Time Card Application.
;
; timecard.inf
;
; Component INF for installing Bob's Time Card Application
;
; Note the use of the variable $SAMSERVERNAME$ in the
; InstallCmd parameter value, which is substituted by SCW
;
; Required section for all INF files. See the SDK for
; other legal values
[Version]
Signature = "$Windows NT$"
;
; You add this section and the name of the section that
; contains your application setup information
[Optional Components]
timecard
;
; Here's the actual application section
[timecard]
; Optional 'application description' and 'tip' section.
; The timecard_desc string is defined in the [Strings] section.
OptionDesc = %timecard_desc%
Tip = %timecard_tip%
;
; Required icon definition for the application Setup program
; (This is NOT your application's icon)
IconIndex = 0
;
; Required value for the command-prompt unattended installation.
; The %SBSServer% variable is the location of the Small Business Server
; software.
InstallCmd = "\\%SBSServer%\clients\timecard\setup /auto $SAMSERVERNAME$"
;
; Required value to run an unattended program from the command prompt
; to remove your application from the client computer
UninstallCmd = "\\%SBSServer%\clients\timecard\setup /uninstall"
;
; This application requires 7 megabytes of disk space on the client
; computer during installation.
DiskSpaceEstimate = 7
;
; Standard section. Required when you use string parameters.
[Strings]
; This value is used in the OptionDesc parameter
timecard_desc = "Bob's Time Card Application"
;
; This value is used in the Tip parameter
timecard_tip = "Lets users log their hours"