[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?
Re: Help with Separate Update Program...?
Have you tried writing it to the registry? Then your Update app could retrieve it from there.
Justin
Re: Help with Separate Update Program...?
or you can write to the Application Data folder
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.
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
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.