473,788 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creat an Installation package for client and server

I have developed an application using C# under .NET 2.0 framework. It is
almost done and it is time for me to think about deploymnet to all users. I
don't have any background about this and would like to see if anyone can help
me get started. I have read some about clickonce deployment and not sure
much about this yet. Thanks for your help.

Nov 21 '06
20 3159
Hi,

By "ftp file synch", do you mean that you'll write your own program that
monitors an ftp directory?

That would surely work, however that's basically what ClickOnce does anyway.
Automatically or on demand, ClickOnce will check whether a newer version is
available on a web server, download it and then install it. Why reinvent
the wheel?

BTW, the requirement to defer updates when the program detects low network
connectivity doesn't really make much sense anyway. What happens if the
program detects high connectivity, then the user moves to a place with low
connectivity, or no connectivity at all, while the download is in progress?

I think that allowing the user to choose when they will perform the update
is a good choice, but if coding ClickOnce to do this is too complex for you
then I can't see how a custom solution is going to be any easier to develop
unless you already "know" exactly how to do it.

GL

--
Dave Sexton

"piggy" <pi***@discussi ons.microsoft.c omwrote in message
news:83******** *************** ***********@mic rosoft.com...
After doing some research, i don't think ClickOnce works well for us down
the
road. We are thinking about ftp file synch. Download the new version if
available to user machine. Is it possible? Thanks.

"Dave Sexton" wrote:
>Hi,

Well, from the docs on MSDN it looks like you might have to use a program
called MageUI.exe. I haven't used this myself, so I'm not sure how it
works, but it seems that you might have to manually configure the
application manifest (AFAICT).

"How to: Check for Application Updates Programmaticall y Using the
ClickOnce
Deployment API"
http://msdn2.microsoft.com/en-us/lib...63(VS.80).aspx

(Check out the table of contents (TOC) to the left and you'll see a whole
bunch of links to information regarding ClickOnce deployments.)

--
Dave Sexton

"piggy" <pi***@discussi ons.microsoft.c omwrote in message
news:AE******* *************** ************@mi crosoft.com...
>I appreciate your help.

i have a sample app (it just has a simple form) and i pulish it but i
uncheck the "appliation should check for update" since i don't want to
the
application to automatically check for the new version. I got that
part
done
and working. Then i add a update form in the same solution. The form
has
a
"update button" and that is the event handler when the event is raised.
But
it always returns "no new version" and it makes sense because i run the
setup
again so it has the lastest version. Then i create a new application
with
an
update in there and it is still the same thing. I am trying to come up
with
the way to test for update programatically . Do you have any ideas how
this
can be done? thanks,

"Dave Sexton" wrote:

Hi,

Because of the special requiremnet that download and update won't
happen
when
the network connectivity is low. Only high. That is why i can't
use
ClickOnce update automatically. It will have to be programatically .
I
think
you may have missed the important part that no download and update
when
network connectivity is low.

Actually, that's why I brought up option #2, and this is what I said
about
it:

"It sounds to me like option 1 is your best choice, but option 2 is
definitely worth consideration."

It's your choice, since you know whether it's a requirement or
something
you
can avoid. I don't think that what you want is possible in ClickOnce,
as
I've already stated, without programming it. Therefore, #2 might be
your
only option. #1, IMO, is preferable if you can avoid this "feature".

I have created a very simple app and public it using ClickOnce
technology.
I public it to a file share which is in my C drive
(C:\DeployTest\ ClickOnceTest\) . Run the setup.exe and it is
installed
in
my
PC (pretent that i am the end user). Then i created another form
called
to
do the update but for some reason the
applicationDepl oyment.IsNetwor kDeployed
returns fall all the time. here is the code. Hope you can help me
with
this.
I have found the code from the msdn website. Thanks,

It sounds like, from the MSDN documentation, that your app isn't a
ClickOnce
application or was installed on the local computer when the
IsNetworkDeplo yed property returns false:

"If you want your application to run both inside and outside of a
ClickOnce
deployment (for example, if you need to debug your application on the
local
computer before deploying it), test IsNetworkDeploy ed before accessing
the
CurrentDeploym ent property.

IsNetworkDeplo yed will return true regardless of whether the
application
is
installed or hosted online, and regardless of whether it was installed
from
a Web site, file share, or CD-ROM."

"ApplicationDe ployment.IsNetw orkDeployed Property"
http://msdn2.microsoft.com/en-us/lib...kdeployed.aspx

<snip>

In the future, you may find it easier to load up the MSDN
documentatio n
for
classes and APIs that you don't understand. Reading the documentation
should prove to be quicker than waiting for responses in newsgroups,
and
you'll acquire a much better understanding about the subject matter.
I
recommend asking questions in newsgroups after you do the research or
if
you
don't quite understand something that you've read. My responses in
this
thread were based partially on knowledge that I acquired from the
documentatio n on MSDN, which is readily available to you as well :)

HTH

--
Dave Sexton



Dec 4 '06 #21

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

Similar topics

3
2057
by: Rob Brown | last post by:
I put together an installation program and it works great the first time. The problem I have is that we want the users to be able to rerun the installation without needing to uninstall the older package first. How can I set up the package to overlay the existing installation without forcing the user to run an uninstall first? Thanks, Rob Brown
2
6269
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For some reasons, it does not complete the reinstall. See the status report from the GUI installer at the end of this note. Errors are towards the bottom. Everything installed in /usr/opt for DB2 but the sqllib folder that is supposed to be created in...
1
8103
by: srihari | last post by:
Hai, I am trying to install IBM DB2 8.1 on Red Hat linux 8.0. My machine is Intel XEON 64bit. The installation went well except for the creation of tools catalog. When I tried to install the tools catalog as a post installation task I get some java error. $ db2 CREATE TOOLS CATALOG SYSTOOLS USE EXISTING DATABASE TOOLSDB FORCE SQL22209N The DB2 Administration Server encountered an unexpected Java error on host "". I have jdk1.3 already...
0
3029
by: Hernan Garber | last post by:
Hi, Attached, the installation log. Win 2k Server SP3 IE6SP1/SQL Server Installed Thanks Setup.exe: Setup.exe: ========== Logging started ==========
0
2205
by: Pavan | last post by:
I have my .NET code published in two servers http://server1/<ApplicationName>/Publish.htm and http://server2/<ApplicationName>/Publish.htm, and if i open IE on the client machine and type the link (http://server1/<ApplicationName>/Publish.htm) it would install the application in the client machine from server1. 1) Changing the server location on the same client machine (i.e. http://server2/<ApplicationName>/Publish.htm) should override...
6
1965
by: ljh | last post by:
(note: this is being posted to the dotnet groups because of thier expertise in app development and network administration) I cannot, for the life of me, remember the name of an application that I had a couple of years ago. It was an app that monitored the installation of another application and created a setup package that could be run on another PC to install the app almost like an Xcopy install. The app monitored all added or...
0
1268
by: Pavarotti | last post by:
I have a program written in VB.Net 2003 and have to make it work on a Client without the vs.net framework. I was wondering if there is a way in which I can include dotnetfx within my deployment package and have my installation package to execute the dotnetfx installation package prior to the installation of the main application. Is the above strategy possible, if so how do I have to go about it?
1
2650
by: aryan24 | last post by:
Hi, I am new to LINUX. I have down loaded MySQL-server-community-5.0.45-0.sles10.i586.rpm from the site and trying to install on suse linux 10.2. using this command #>rpm -i MySQL-server-community-5.0.45-0.sles10.i586.rpm it is giving an error file /usr/bin/perror from install of MySQL-server-community-5.0.45-0.sles10 conflicts with file from package mysql-client-5.0.26-12 file /usr/bin/replace from install of...
11
2153
by: Robin S. | last post by:
I've used phpinfo() to confirm settings for mySQL on our host server, and it's not returning accurate info. phpinfo() returns a mySQL client API version of 3.23.54 (uselss for me), where as a SELECT VERSION() query on the mySQL database returns version 5.0.27 (exactly what we need). I think there's something wrong with the mySQL library in PHP. Is there any more thurough method of seeing php's settings for mySQL? Obviously I don't...
0
10366
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.