I am trying to deploy a WPF application, that comes along with a databasefile (.mdb), which contains each customers company connectionstrings etc.
We have multiple customers with this setup, and we want to only include the db file with connectionstring to each company, so that the code can't be decompiled (or db file opened) and connectionstrings to all companys be seen. One option, as I see it, is to compile a deployment for each customer, but since the number of customers is high, this has to be automated.
We plan on having the deployment hosted online, behind a login, that differentiates between users from each company.
But is it possible somehow to publish one, (or multiple) db files to the deployment location, and then when each user downloads the app, have it only include the relevant info, for the company that user works in?
Our goal is to achieve an easy way of continuous-deployment of this desktop app.
We are currently testing with ClickOnce installer.
Update: I don't like the idea of placing the program in "%LocalAppData%", so we won't be using the ClickOnce installer, but one that appropriately deals with Windows UAC.
2nd update: We're looking for the best solution to this. Not a quickfix, that will have to be replaced after a year, cause of x, y and z became an issue. Our deployment at the moment, includes building our applications, zipping them, putting them online for our the IT guy of each company to download and overwrite the files on their company network drive. Each tech guy have to kill all processes to all the .exe files he is owerwriting, cause they otherwise is locked. This is for 350+ companys, with thousands of employees. So there is alot to gain with an automated way of doing this, that doesnt require building our applications 350+ times per update and that prevents the IT guy of each company, from having to do anything.