Not even with SQL Manangement Studio you cannot login with another windows authentication user than the logon user. You can either select SQL Authentication (provide user and password) or Windows Authentication (logon user).
Please let me know if there is anything else I can help you with.
Just in case anyone comes across this thread at a later time and has a similar requirement...
We are in an environment where the installing user isn't a SQL SysAdmin, but that user has the credentials for another user that is a SysAdmin. And only Windows Authentication is allowed.
1. We created a dialog which collects the SysAdmin username and password.
2. We created a custom action which temporarily gives SysAdmin role to the installing user via a custom action that calls a batch script (as seen below.)
3. Let the installer run though all of it's SQL scripts and actions.
4. Set the installing user back to a non-SysAdmin using the uninstall parameter.
Batch Script:
SET Mode=%1
SET LoggedInUser=%2
SET SQLSysadmin=%3
SET DatabaseServer=%4
FOLLOW US
Get the latest news in Application Packaging