Add files to ClickOnce app

C

Christian Havel

Hi,

how can I add files (e.g. ini-files, xml-files, pdf,..), that should be
installed with a ClickOnce deployed applications?
Christian
 
M

Marc Gravell

Mark them as "Content", and ensure that they are selected ("Include" or
"Data File") in the dialog at:
Project Properties -> Publish -> Application Files...

Of course it depends on what you mean by "installed"... ClickOnce just
places the file in the target tree - it won't make system changes, for
example.

Marc
 
M

Marc Gravell

Not from ClickOnce, no. The intent for ClickOnce is to be fully isolted,
enough that a non-admin can "install" a ClickOnce on a completely
locked-down desktop. Which is handy, as that is the scenario my users
use ;-p

For GAC, you ideally want an MSI-based setup. But it begs the question:
why GAC? If this is for COM->CLR interop then fine... but more standard
references I'd simpy go with bundling the dll.

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top