474,034 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(By Val sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim asmMyAssembly As [Assembly] =
[Assembly].LoadFrom("http ://localhost/powerweb/powerconsole.ex e")
Close()
End Sub
Nov 17 '05 #1
1 1775
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******** ******@TK2MSFTN GP10.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(By Val sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim asmMyAssembly As [Assembly] =
[Assembly].LoadFrom("http ://localhost/powerweb/powerconsole.ex e")
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
1719
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 about. for i.e. messing with grant tables and setting privileges. the interface at ipowerweb seems so easy compared to what the book gets into. is it possible that the web interface provided by my host is all i need to worry about?
2
1322
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 a user logs in a session cookie is created. When the browser window is closed the session cookie disappears. This way when the browser is closed the session is over. So that even if one tries to copy and past the URL of a secured page, they...
0
274
by: needin4mation | last post by:
static void Main() { using (WinForm our_directx_form = new WinForm()) { Application.Run(our_directx_form);
1
316
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. 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...
5
2602
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 solution: 1) web service website. 2) SOAP Extension Class Lib that compiles to a dll 3) WinForm application with a proxy to test the web service.
1
1210
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
7344
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 values. TIA, MP
2
3755
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 usercontrol will fire this event upon certain action by the user. I tried to let the aspx page subscribe to this event via <script for="winObj1" event="DoEvent()" language="javascript"> window.alert("window control event happen!");
2
1206
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 which software products out there (open source included), is reliable and provides the required functionality - note, I am not interested in hearing from software vendors. Here is the required functionality:
0
10515
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11585
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11961
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
11117
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...
0
10279
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8667
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
7841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
5381
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
3
3944
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.