473,320 Members | 1,865 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,320 software developers and data experts.

QUESTION: Auto-updating Winform app (on website)

I have a winform app that I want to auto-update whenever there is a new
version on the web server.

I realize that I can have a shortcut pointing to, for example,
http://locahost/myweb/MyApp.exe. But, I always get the "Open" or "Save as"
dialog when I run this. I can't seem to get around this.

I then tried to make a "bootstrap" app that would reside locally, on the
clients machine, that would launch the app. This doesn't work. Any ideas
what I'm doing wrong? Here's the code:

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim asmMyAssembly As [Assembly] =
[Assembly].LoadFrom("http://localhost/powerweb/powerconsole.exe")
Close()
End Sub
Nov 20 '05 #1
3 1746
"VB Programmer" <gr*********@go-intech.com> scripsit:
I have a winform app that I want to auto-update whenever there is a new
version on the web server.

I realize that I can have a shortcut pointing to, for example,
http://locahost/myweb/MyApp.exe. But, I always get the "Open" or "Save as"
dialog when I run this. I can't seem to get around this.


<http://www.gotdotnet.com/team/windowsforms/appupdater.aspx>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
I thought this behavior was by design.

I wouldn't want a link to install something on my machine automatically.
Imagine if you went to a page, and they have a window.location =
http://microsoft.com/virus.exe in the load event.

You wouldn't want it to automatically install.

Or so I would think.

bill
"VB Programmer" <gr*********@go-intech.com> wrote in message
news:em**************@TK2MSFTNGP10.phx.gbl...
I have a winform app that I want to auto-update whenever there is a new
version on the web server.

I realize that I can have a shortcut pointing to, for example,
http://locahost/myweb/MyApp.exe. But, I always get the "Open" or "Save as" dialog when I run this. I can't seem to get around this.

I then tried to make a "bootstrap" app that would reside locally, on the
clients machine, that would launch the app. This doesn't work. Any ideas
what I'm doing wrong? Here's the code:

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim asmMyAssembly As [Assembly] =
[Assembly].LoadFrom("http://localhost/powerweb/powerconsole.exe")
Close()
End Sub

Nov 20 '05 #3

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OG**************@TK2MSFTNGP11.phx.gbl...
"VB Programmer" <gr*********@go-intech.com> scripsit:
I have a winform app that I want to auto-update whenever there is a new
version on the web server.

I realize that I can have a shortcut pointing to, for example,
http://locahost/myweb/MyApp.exe. But, I always get the "Open" or "Save as" dialog when I run this. I can't seem to get around this.
<http://www.gotdotnet.com/team/windowsforms/appupdater.aspx>


See... This was my idea originally.... A pluggable updater, and I started to
write it.. and low and behod Microsoft has to put it up before me! Just
because they have WAY more money and more resources! please hire me.

-=)

No really, I had this idea a long time ago... It was the shredded fiber
optics I found in my room that lead me onto them... the nurv...
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #4

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

Similar topics

2
by: j-marvin | last post by:
hi- i just went to ipowerweb.com to set up my db. it has an easy web interface. what is confusing me is i bought a mysql book and i thought there was all this administration i had to worry...
2
by: Joe | last post by:
Hi, We want to build a couple of secured pages which will be viewable only to those who have an account. One way of implementing the security is using session cookies (temporary cookies). When...
0
by: needin4mation | last post by:
static void Main() { using (WinForm our_directx_form = new WinForm()) { Application.Run(our_directx_form);
1
by: VB Programmer | last post by:
I have a winform app that I want to auto-update whenever there is a new version on the web server. I realize that I can have a shortcut pointing to, for example, http://locahost/myweb/MyApp.exe....
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
2
by: VB Programmer | last post by:
I have a settings file that is in the same dir as my local VB.NET exe winform application. From my winform application how do I reference the "current directory" to access the file? NOTE: I...
1
by: Tom Rahav | last post by:
Hi, I'm looking for information about how to send data (messages, etc.) from a running win-service to to a running win-form. Can someone help? Thanks, Tom.
1
by: Marek | last post by:
Hi all, who can give me an answer on this question: how to validate controls on WinForm? So clicking on AceptButton does not return control from WinForm to program until all controls have proper...
2
by: jyanmin.fang | last post by:
Hi, In my current project, I need to embed an .NET winform usercontrol in the aspx page (via <Objecttag). This winform usercontrol has an event called DoEvent (void DoEvent()). This winform...
2
by: Anonymous | last post by:
I am currently developing an ASP.Net 2.0 website. I need to provide the following functionality, (but don't want to reinvent the wheel), and would therefore like feedback from developers about...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.