TfsDeployer -? : What are those extra parameters ?

Apr 18, 2008 at 3:52 PM
I type the command : TfsDeployer -? and I get extra parameters.

Can you give more information on those parameters and an example of how to use them ?

TFSDeployer v1.0.0.0
Copyright © 2006

Usage: TFSDeployer.exe @argfile/CreateKeyFile[+
/EncyptDeploymentFile[+/m:<value>/k:<value>/g:<value> [/hel
p|?|h]
/version


@argfile Read arguments from a file.
/CreateKeyFile+ CreateKeyFile
/EncyptDeploymentFile+ EncyptDeploymentFile
/m:<value> Deployment Mapping File Name
/k:<value> Key File Name
/g:<value> Create Key File
/help Show usage.
/version Show version.
Coordinator
Apr 19, 2008 at 2:11 AM
Firstly /CreateKeyFile and /EncryptDeploymentFile are showing due to a bug and will either be ignored or crash the app. The remainder exist to digitally sign deployment mapping files to prevent uinauthorized tampering. Basic usage examples follow, the first to create a key then use it to sign the mapping file:

tfsdeployer.exe /g:MyKeyFile.key
tfsdeployer.exe /k:MyKeyFile.key /m:DeploymentMappings.xml

The second example creates a new key and signs the mapping file in one step:

tfsdeployer.exe /g:MyKeyFile.key /m:DeploymentMappings.xml

Once you have a key file and an encrypted mapping file. You can check the signed mapping file into source control and keep the key file securely on the Tfs Deployer machine. You then need to edit the TfsDeployer.exe.config file and change the KeyFile setting within to refer to the location of the key file and also change the SignDeploymentMappingFile setting to "True". Then restart the Tfs Deployer sevice.

If you enable signing in your Tfs Deployer config, all mapping files will need to be signed.

Does this help?

Regards,

--
Jason
Apr 21, 2008 at 2:17 AM
Hi Jason,

Thanks for taking the time to answer my question.

Thank you for your examples, they helped very much !

By the way, congratulations for TfsDeployer, it's a wonderfull tool.


J-P