Deployment to the program directory

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

I copy files from a "published" directory to a memory card (flash drive). I take the memory card to a Windows NT computer and double-click on setup.exe . The application is installed as it appears in the * Start menu. I have no idea where the actual destination is. I know that it is not in the C:\Program Files\Company Name\Product folder.

I am using MS Visual C # 2008 Express Edition version 3.5 SP1. This product uses the strictly limited ClickOnce installer. Unfortunately, this is what I have to work with.

How to tell C # express about the deployment of my application in the folder C:\Program Files\Company Name\Product ?

Sorry if this is a duplicate, as it’s hard for me to find any information on this issue.

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

Edit:
I have the Title, Company, Product, Copyright, Version, and GUID fields populated in the Assembly Information dialog box. The name of the company is two words with a space between them. Space problems?

+4
source share
3 answers

You cannot do this with ClickOnce, since its main advantage is that it does not require write permissions to the Program Files folder.

+15
source

Did you include the company name in the assembly information?

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

Edit: I'm dumb. If you want to perform the installation in Program Files \ Comapny Name, use the installer project without clicking once. Click once to save it, where it can track it for versions.

0
source

Instead, it is located in the folder C:\Program Files (x86)\Company Name\Product ?

0
source

Source: https://habr.com/ru/post/1337874/


All Articles