How to inquire StarTeam login credentials

196 Views Asked by At

As custom action of a WiX-based installer (MS Windows 7), I need to check out some files from a StarTeam server. stcmd seems to provide all functionality and I am able to perform the checkout with UID and password provided via parameter -p.

Since the installer is run by different users, I obviously need a mechanism to inquire the StarTeam login credentials at run-time instead of hard-coding UID/pw.

I was browsing the StarTeam manual but was not able to figure out if the StarTeam programs provide a solution to that problem. Any suggestions?

3

There are 3 best solutions below

0
Twonky On BEST ANSWER

Meh, the solution is trivial. When using an empty password, stcmd automatically asks for the password. Example:

stcmd connect username:@hostname:portnumber

Using the stateful commands is recommended since the credentials are stored internally for all subsequent commands.

2
Christopher Painter On

Sorry, this just doesn't make sense to me. Typically you include files from source control in the MSI at build time not install time. What does install time buy you other then complexity? Now application runtime would make sense to me. You could create and install an application that prompts the user for creds and then periodically polls star team for updated files. (Windows service, scheduled task, logon autorun...)

2
Slapout On

Couldn't you could prompt your users for the login information during the install and then pass them to the stcmd.exe?