473,396 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ClickOnce files being re-downloaded unneccesarily

I have an application which requires a number of DLLs (unmanaged ansi C dlls)
to reside in the same directory as the application. I currently have these
dlls included in the project folder and marked as "content".

When I publish the application with ClickOnce and update my application -
these dlls (along with a .chm help file that doesnt change) keep being
redownloaded. From what I've read in all of the ClickOnce marketing hype, it
claims that only files that have changed will be redownloaded - but these
files seem to be always redownloading. From what I can tell from the manifest
file in the Release directory, the hashes of these dlls are the same. My
application is simply using "dllimport" statements to access functions in the
dlls, so the dlls themselves arent being recompiled.

If I mark the files as data - and choose the "exclude" option in the
publishing properties, it seems to roll the existing files forward to the new
version as expected - however as I said previously, I need the files to exist
in the same folder as the program/executable.

I've considered using System.IO.File.Move to grab the dlls from the data
directory and put them in the application folder at runtime, but for some
reason this seems dangerous/unreliable to me.

If this application was just residing on a regular LAN, I wouldnt care - but
the intent is to distribute updates over the web to customers, and this is
adding an unccessary 2-3MB of downloading for each update.

Anyone have any ideas what I'm doing wrong? Or is this just how ClickOnce
works so I'll have to live with it?

Regards,
Andrew
Jul 18 '06 #1
1 1684
Issue resolved, ClickOnce wasn't really downloading the files (no network
activity despite the clickOnce asynchronous progress reporting that it was
downloading). Is there any way to receive the *real* download size of the
deployment? Rather than just the size of the total deployment? I'm trying to
make a download progress bar with asynchronous updates that is actually
useful to the end-user.

"Andrew86" wrote:
I have an application which requires a number of DLLs (unmanaged ansi C dlls)
to reside in the same directory as the application. I currently have these
dlls included in the project folder and marked as "content".

When I publish the application with ClickOnce and update my application -
these dlls (along with a .chm help file that doesnt change) keep being
redownloaded. From what I've read in all of the ClickOnce marketing hype, it
claims that only files that have changed will be redownloaded - but these
files seem to be always redownloading. From what I can tell from the manifest
file in the Release directory, the hashes of these dlls are the same. My
application is simply using "dllimport" statements to access functions in the
dlls, so the dlls themselves arent being recompiled.

If I mark the files as data - and choose the "exclude" option in the
publishing properties, it seems to roll the existing files forward to the new
version as expected - however as I said previously, I need the files to exist
in the same folder as the program/executable.

I've considered using System.IO.File.Move to grab the dlls from the data
directory and put them in the application folder at runtime, but for some
reason this seems dangerous/unreliable to me.

If this application was just residing on a regular LAN, I wouldnt care - but
the intent is to distribute updates over the web to customers, and this is
adding an unccessary 2-3MB of downloading for each update.

Anyone have any ideas what I'm doing wrong? Or is this just how ClickOnce
works so I'll have to live with it?

Regards,
Andrew
Aug 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mika M | last post by:
Hi! I made ClickOnce deployment for Windows Forms VB 2005 application, and it's working mostly fine. Now I have some question: 1. Is it okay when my application goes into x:\Documents and...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
1
by: moondaddy | last post by:
I have a .net 2.0 winforms app which I'm deploying via clickonce. Unfortunately one of the things that needs to be installed during the clickonce is an MS Access mde application which uses a 3rd...
0
by: PROCOS | last post by:
I already posted this in "Framework.Setup" but I think this was the wrong newsgroup. So here we go again: ------------------------- We have a large software suite (> 200 installation files +...
4
by: Marc Gravell | last post by:
Repost from dotnet.general (no response), and OT but I hoped somebody might have a clue... I have a handful of ClickOnce installs that work fine almost everywhere... however, on some machines...
3
by: Peter Wyss | last post by:
Hello! I've a few questions about ClickOnce in VisualStudio 2005. The installation of my application works fine, I published the files on a webserver and installed the app on a winxp client,...
1
by: Jack | last post by:
Hi there, Apologies if this NG is off-topic but I can't find anything more appropriate (feel free to let me know). I'm looking at ClickOnce as a possible alternative to MSI and have poured...
3
by: Dean Slindee | last post by:
Using VS2005, I am deploying a WinForm application with ClickOnce. The project contains a ReportViewer2005 control, so there is a prerequisite for the ReportViewer2005.dll. The ReportViewer.dll...
0
by: andrewschools | last post by:
Hi, I'm using ClickOnce for all of my installations and updates. However, when I modify any of the datasets in my application, when a user downloads the new update, all their data saved in their...
3
by: Ryan Liu | last post by:
hi, I like the Publish function comes with VS2008. But 3 questions remain: how to make update path to be flexiable? Because I will give those updates to my cutomers, and different cutomer will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.