Share via

Click Once Deployment Multiple Users on Same PC C# WPF

MrMicro 1 Reputation point
2021-05-25T08:47:28.757+00:00

Hi,

I am attempting to deploy a C# WPF program using Click Once.

On every PC so far this has worked fine - the URL the install is located at is a shared UNC path.

However I have come accross a PC that is shared by 3 users each with their own login. In this case the program instals and runs fine for 'User 1' but when I then log in as 'User 2' to install it appears to instal - but then does nothing. I have configured it to place a shortcut on the desktop, but this is not there. There a shortcut placed in Start menu though (unless this was created by the install for 'User 1'?), but when using this nothing happens.

If I copy the flat .exe file to each user on this PC it runs perfectly.

Can someone give me some pointers of where to look to get click once working - what have I missed? Where should I be looking?

Thanks,

M :-)

Developer technologies | Windows Presentation Foundation
0 comments No comments

1 answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,661 Reputation points
    2021-05-26T02:09:00.473+00:00

    Hi MrMicro-2106,
    Clickonce is designed to install applications for a single user without administrative rights.
    You will need to create an MSI installer to distribute the application to multiple users on the same computer.
    And here is a similar thread you can refer to.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.