Deploying to Program Files directory

橙三吉。 提交于 2019-12-01 20:31:57

问题


I have developed a C# application and I would like to deploy it to the C:\Program Files\Company Name\Product folder. I am not seeing the "Company Name" folder created on the target machine.

I copy the files from the "published" directory onto a memory stick (thumb drive). I take the memory stick to a Windows NT machine and double click on setup.exe. The application is installed, as it appears in the *Start Menu". I have no idea where the actually destination is. I know it is not in C:\Program Files\Company Name\Product folder.

I am using MS Visual C# 2008 Express Edition Version 3.5 SP1. This product uses a severely restricted ClickOnce installer. Unfortunately, this is what I am given to work with.

How do I tell C# express to deploy my application into the C:\Program Files\Company Name\Product folder?

Sorry if this is a duplicate, as I am having a difficult time searching for any information on this issue.

Note: I am developing on 64-bit Windows 7 platform.

Edit:
I have the Title, Company, Product, Copyright, versions and GUID fields filled out on the Assembly Information dialog box. The company name is two words with a space between. Does the space cause problems?


回答1:


You cannot do that using ClickOnce, since its main advantage is that it doesn't require write access to the Program Files folder.




回答2:


Did you specify the company name in the assembly info?

To find out where it is, right click on the start menu icon and go to properties. It will tell you where it is.

Edit: I'm dumb. If you want to do an install to Program Files\Comapny Name, use an installer project not click once. Click once is going to keep it where it can track it for versioning.



来源:https://stackoverflow.com/questions/4857529/deploying-to-program-files-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!