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?
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With