Trivia Quiz Shell's installation package, tqssetup.exe, can accept several command-line switches for modifying the setup experience. These can be used to assist in deployment.

In addition, once installed, the setup program setup.exe can accept command-line switches for uninstall.

tqssetup.exe [/passive | /quiet] [/u:unattend.txt]
unattend.txt", "Install options will be retrieved from the file unattend.txt. See the section Using an unattend file below for more information.") ), array(0, 0) ); ?>

When in passive or quiet mode, and an unttend file is not specified or does not specify all options, Setup will use default install options.

Note: When in passive or quiet mode, the Trivia Quiz Shell license agreement is not displayed to the end user. You must read and agree to the License Agreement before installing Trivia Quiz Shell on your computer or deploying it to another computer.

Setup.exe is located in the folder in which you installed TQS, e.g. C:\Program Files\TQS.

setup.exe /uninstall [/passive | /quiet] [/u:unattend.txt]
unattend.txt", "Uninstall options will be retrieved from the file unattend.txt. See the section Using an unattend file below for more information.") ), array(0, 0) ); ?>

When in passive or quiet mode, and an unttend file is not specified or does not specify all options, Setup will use default uninstall options.

An unattend file is used to specify responses to the questions that the Setup wizard asks during installation. For normal mode (that is, when the quiet or passive switches are not specified), Setup uses the unattend file's values to populate the wizard, but the user can change the settings. In passive and quiet mode, the unattend file's values are used and cannot be changed.

An unattend file has the same format as a standard Windows configuration (ini) file. It consists of sections, containing key/value pairs.

Settings used during install only:

InstallPath", "The folder to install Trivia Quiz Shell into. You may use environment variables, such as %ProgramFiles%.

The default installation folder is %ProgramFiles%\TQS."), array("[Setup]
SMShortcutTQS", "Whether to create a Start Menu shortcut for TQS. Set to one of the following values:

". "". "". "
1(Default) Create the shortcut.
0Do not create the shortcut.
"), array("[Setup]
SMShortcutTQSEdit", "Whether to create a Start Menu shortcut for the TQS Embed Utility. Set to one of the following values:

". "". "". "
1(Default) Create the shortcut.
0Do not create the shortcut.
"), array("[Setup]
SMShortcutGuide", "Whether to create a Start Menu shortcut for the TQS Author's Guide web site. Set to one of the following values:

". "". "". "
1Create the shortcut.
0(Default) Do not create the shortcut.
"), array("[Setup]
SMShortcutUninstall", "Whether to create a Start Menu shortcut for uninstalling TQS. Set to one of the following values:

". "". "". "
1Create the shortcut.
0(Default) Do not create the shortcut.
"), array("[Setup]
SMFolderType", "Where to create TQS Start Menu shortcuts. Set to one of the following values:

". "". "". "". "". "
0(Default) Let Setup decide. If only one shortcut is to be created, create it in the main Programs folder; if more than one, create them in the TQS subfolder.
1Create the shortcut(s) in the main Programs folder.
2Create the shortcut(s) in a new subfolder specified by the SMNewFolder setting.
3Create the shortcut(s) in the existing subfolder specified by the SMExistingFolder setting.
"), array("[Setup]
SMNewFolder", "The new Start Menu folder that should be created for the program shortcut(s), if the SMFolderType setting or the user specifies to create a new folder.

The default folder is named TQS."), array("[Setup]
SMExistingFolder", "The existing Start Menu folder that in which to create shortcut(s), if the SMFolderType setting or the user specifies to use an existing folder.

This setting is only used if SMFolderType=3. If the folder does not exist, it will be treated as the value of SMNewFolder and SMFolderType will be treated as 2."), ), array(0, 0) ); ?>

Settings used during uninstall only:

DeleteUserData", "Whether to delete user-specific TQS settings. On Windows 98 and Me, this only includes settings for the user currently logged in. On Windows NT, 2000, XP, and newer versions, this includes all users who have used the TQS Embed Utility on the local machine. Set to one of the following values:

". "". "". "
1(Default) Delete the settings.
0Do not delete the settings.
"), array("[UserInit]
DeleteMachineData", "Whether to delete machine-wide TQS settings (those that apply to all users). Set to one of the following values:

". "". "". "
1(Default) Delete the settings.
0Do not delete the settings.
"), ), array(0, 0) ); ?>

Following is an example of an unattend file for Trivia Quiz Shell:

[Setup]
InstallPath=%ProgramFiles%\My Folder
SMShortcutTQS=1
SMShortcutTQSEdit=0
SMShortcutGuide=0
SMShortcutUninstall=1
SMFolderType=2
SMNewFolder=My TQS Start Menu Folder

[UserInit]
DeleteUserData=0
DeleteMachineData=0

When specifying an unattend file on the command line, you may use an individual file name, relative path, or absolute path. If the path or file name contains spaces, enclose it in quotes. For example:

tqssetup.exe /quiet /u:"C:\My Files\unattend.txt"