|
-
Jul 1st, 2010, 11:04 AM
#1
Thread Starter
Lively Member
[RESOLVED] Help with Separate Update Program...?
Well need to make a separate update program and I need some way of getting my main application's version. I thought about making a text file with the version but I can't write to the program files folder with permission, thats why I have a second program. I also though about making the update program's version the same as the main application, but that doesn't seem right because I have to update the update program.... So is there a way I can get the main applications version inside the update program?
-
Jul 1st, 2010, 11:11 AM
#2
Frenzied Member
Re: Help with Separate Update Program...?
Have you tried writing it to the registry? Then your Update app could retrieve it from there.
Justin
-
Jul 1st, 2010, 11:16 AM
#3
Frenzied Member
Re: Help with Separate Update Program...?
or you can write to the Application Data folder
-
Jul 1st, 2010, 11:26 AM
#4
Thread Starter
Lively Member
Re: Help with Separate Update Program...?
Okay- with the registry I need admin privileges and I'm not sure what you mean by the Application Data folder. Thanks for the replies.
-
Jul 1st, 2010, 11:31 AM
#5
Frenzied Member
Re: Help with Separate Update Program...?
If you can't write to the Application folder ( the folder the application's .exe resides in) and you can't write to the registry...
Then I have no idea what to do... do you have access to the all users folder? Or the current users temp folder?
Justin
-
Jul 1st, 2010, 12:46 PM
#6
Re: Help with Separate Update Program...?
You can have the main application does the update check at startup or on demand (by users). The main application then determines whether or not to launch the updater program. If it decides to launch the updater, it can call Process.Start(updater.exe, "any arguments it likes to pass to the updater here") and then closes itself. The updater can then download the updated version to overwrite the current version of the main app.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|