简体   繁体   English

.NET部署(ClickOnce或MSI)客户端设置/参数

[英].NET Deployment (ClickOnce or MSI) Client Settings/Parameters

I've created a windows forms application. 我创建了一个Windows窗体应用程序。 I have a requirement of storing some information (in the Registry, Isolated Storage or other serialization method) like ClientID which is a GUID generated from a registration form before the user can download the installation package which is currently ClickOnce deployed. 我要求先存储一些信息(在注册表,隔离存储或其他序列化方法中),例如ClientID,这是从注册表单生成的GUID,然后用户才能下载当前已部署ClickOnce的安装程序包。 The application is run offline so adding querystring parameters is not an option based on some articles i've read. 该应用程序是离线运行的,因此基于我已阅读的一些文章,添加查询字符串参数不是一个选择。 I thought creating a module to modify the config.deploy file before the client downloads the setup but it might cause some issues when multiple users simultaneously download the app. 我以为在客户端下载设置之前创建一个模块来修改config.deploy文件,但是当多个用户同时下载该应用程序时,这可能会引起一些问题。 I'm also looking at having the User enter an email address or any login info at the app's first run, so the necessary info can be downloaded from the web server and stored in the client's machine but i'm not yet sure if they'll approve this method. 我还希望用户在应用程序的首次运行时输入电子邮件地址或任何登录信息,因此可以从Web服务器下载必要的信息并将其存储在客户端的计算机中,但我不确定他们是否我会批准这种方法。

I hope I've written this clear enough so I can get some answers soon enough. 我希望我写的足够清楚,以便我能尽快得到一些答案。 Any comments/suggestions will be appreciated. 任何意见/建议,将不胜感激。

I've worked on a pure ClickOnce app that had a registration process to really use it. 我开发了一个纯ClickOnce应用,该应用具有注册过程才能真正使用它。 You could start the app just fine with no registration but to get into the meat of the app you had to fill out a small form with the data stored in our database. 您无需注册就可以很好地启动该应用程序,但要了解该应用程序的内容,您必须使用存储在我们数据库中的数据填写一个小表格。 The app stored the registration data (less the password) in Isolated Storage. 该应用程序将注册数据(减去密码)存储在独立存储中。

Feel free to post questions in the comments and I'll try to follow up. 随时在评论中发表问题,我将尝试跟进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM