Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add external file to application files ( clickonce / .NET)

I'm using 'Publish' option in vs2008 and I'm pretty happy how it works.

Now I'd like to add 2 external *.exe files to installed package
I've noticed button 'Application Files...' at publish tab but it seems doesn't allow adding new files manualy.

I've played with this and found the way how to archive that:
1. add EXE files to project as external items
2. change their property 'build action' to content

Works well now

but I'm receiving warrning info:

Assembly 'file_name.exe' is incorrectly specified as a file.
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets  PROJ_NAME

Any idea how to resolve this warning / add exe files to deployment other way?

like image 825
Maciej Avatar asked Jun 25 '09 12:06

Maciej


People also ask

How do I add files to ClickOnce deployment?

On the File menu, click Open to open your application manifest. Select the Files tab. In the text box at the top of the tab, enter the directory that contains your application's files, and then click Populate. Your data file will appear in the grid.

How do you add prerequisites to a ClickOnce application?

Select the Publish pane. Click the Prerequisites button to open the Prerequisites dialog box. In the Prerequisites dialog box, make sure that the Create setup program to install prerequisite components check box is selected. In the Prerequisites list, check the components that you wish to install, and then click OK.

How do I manage updates for a ClickOnce application?

Click the Publish tab. Click the Updates button to open the Application Updates dialog box. In the Application Updates dialog box, make sure that the check box The application should check for updates is selected. In the Choose when the application should check for updates section, select After the application starts.

Where are ClickOnce applications stored?

Every ClickOnce application installed on a local computer has a data directory, stored in the user's Documents and Settings folder. Any file included in a ClickOnce application and marked as a "data" file is copied to this directory when an application is installed.


1 Answers

I cannot reproduce your warning. Sorry.

However, if you would like an alternative way to deploy the files, I have used custom Prerequisites / bootstraps with my click once deployments to ensure items that must exist in external areas (Click once will only include files in the deployment folder).

Most recently I have deployed templates with VSTO applications. It works well.

Here is a decent reference on creating/adding them to click once deployment: http://msdn.microsoft.com/en-us/library/ms165429(VS.80).aspx

Ernie

like image 143
EStormann Avatar answered Sep 18 '22 22:09

EStormann