473,396 Members | 2,010 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.

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 17 '05 #1
1 1739
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 17 '05 #2

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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
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.