For a regular .exe file i can always right click and select “run as..”. How can i run a Click-Once application under different credentials in a similar way?
I am talking about the application itself, not the installer.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer really is no, you shouldn’t do this. ClickOnce applications are installed under the user profile and belong only to that user. THey will not and do not work as an all-user installation.
Also note that if you double-click on the [exe] file (the location of which changes every time there is an update), it will not look for updates, it will not check the files to make sure they haven’t been tampered with. In other words, it will not run as a ClickOnce application.
I also think passing the username and password in the query string is ill-advised because anybody running fiddler or charles or any other network traffic sniffer will be able to see the credentials.