wixwindows-installerstarteam

How to inquire StarTeam login credentials


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?


Solution

  • 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.