Click here to Skip to main content
15,893,266 members
Home / Discussions / C#
   

C#

 
QuestionWinforms, Datagrids, Hyperlinks and Excel Pin
scotlandc22-Dec-05 6:25
scotlandc22-Dec-05 6:25 
QuestionMenu like functionality Pin
VPMahank22-Dec-05 5:23
VPMahank22-Dec-05 5:23 
Questionopen a excel interface in my c# form Pin
Sasuko22-Dec-05 5:04
Sasuko22-Dec-05 5:04 
AnswerRe: open a excel interface in my c# form Pin
KaptinKrunch22-Dec-05 7:09
KaptinKrunch22-Dec-05 7:09 
QuestionBook Pin
fmardani22-Dec-05 4:41
fmardani22-Dec-05 4:41 
QuestionAuto Update for my application Pin
.NetRocker22-Dec-05 4:35
.NetRocker22-Dec-05 4:35 
AnswerRe: Auto Update for my application Pin
J4amieC22-Dec-05 5:34
J4amieC22-Dec-05 5:34 
AnswerRe: Auto Update for my application Pin
Xodiak22-Dec-05 10:57
Xodiak22-Dec-05 10:57 
i had to do something similar at my company...small company here's what i did.
we have a networked server that everyone inhouse can access. the version number is located in the assembly of the app and i compare that to a data file located on the server (you can use streamreader to do that, or if you have a database back end that you can have the version information located inside of some table that you can query off of). you will need to make a deployment application (plenty of literature out there on that).


here's what i did:


-create deployment app (one of the projects that you can put in your solution) and compile: (.msi file is created)

-put msi file in shared server directory and resolve the directory path to some web address

-when the person logs into the app (im assuming through some login screen), a query is run to check the assembly version of the one on their computer as opposed to the most updated version

-if they require an update, this is what you do:

-implement the System.Net.WebClient class and download the msi off the server via the web address

-use the DownloadFile method of the webclient class

-save to a local directory (c:\temp perhaps...or somethign along those lines)

-execute the msi process using: System.Diagnostics.Process.Start("c:\TEMP\yourapp.msi")

-and then close your application: this.close() or something along those lines

-the installation should run as normal and then the user can start up the application again

-obvioulsy the version will be correct and this process wont happen again.

-read up on deployment applications, im sure you can do something manual like copy each executable manually over the web, but the msi makes it much easier...creats short cuts and everything.

only bad thing is that you're going to have to manually install the first version of this on each person's computer

best of luck

GeneralRe: Auto Update for my application Pin
.NetRocker23-Dec-05 5:47
.NetRocker23-Dec-05 5:47 
QuestionConnecting to a remote DB from a service Pin
Marc Clifton22-Dec-05 4:19
mvaMarc Clifton22-Dec-05 4:19 
AnswerRe: Connecting to a remote DB from a service Pin
.NetRocker22-Dec-05 4:54
.NetRocker22-Dec-05 4:54 
AnswerRe: Connecting to a remote DB from a service Pin
HerbCSO22-Dec-05 12:56
HerbCSO22-Dec-05 12:56 
QuestionHttpApplication Pin
talbot22-Dec-05 4:15
talbot22-Dec-05 4:15 
AnswerRe: HttpApplication Pin
.NetRocker22-Dec-05 4:55
.NetRocker22-Dec-05 4:55 
GeneralRe: HttpApplication Pin
talbot22-Dec-05 4:58
talbot22-Dec-05 4:58 
GeneralRe: HttpApplication Pin
.NetRocker22-Dec-05 5:23
.NetRocker22-Dec-05 5:23 
GeneralRe: HttpApplication Pin
talbot22-Dec-05 5:27
talbot22-Dec-05 5:27 
GeneralRe: HttpApplication Pin
.NetRocker22-Dec-05 5:39
.NetRocker22-Dec-05 5:39 
GeneralRe: HttpApplication Pin
talbot22-Dec-05 5:49
talbot22-Dec-05 5:49 
QuestionSharing global data among accesses to the server Pin
talbot22-Dec-05 3:56
talbot22-Dec-05 3:56 
AnswerRe: Sharing global data among accesses to the server Pin
.NetRocker22-Dec-05 4:59
.NetRocker22-Dec-05 4:59 
QuestiontreeView child restrictions Pin
WetRivrRat22-Dec-05 3:55
WetRivrRat22-Dec-05 3:55 
AnswerAnybody out there??? I need some help! Pin
WetRivrRat28-Dec-05 4:00
WetRivrRat28-Dec-05 4:00 
AnswerRe: treeView child restrictions Pin
Dave Kreskowiak28-Dec-05 5:54
mveDave Kreskowiak28-Dec-05 5:54 
GeneralRe: treeView child restrictions Pin
WetRivrRat28-Dec-05 6:30
WetRivrRat28-Dec-05 6:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.