View Full Version : Pop Up Window "Restart Needed"
Elleah
05-25-2005, 06:56 AM
Hello,
I'm just puzzled with something. I am doing something in trueupdate which will detect our latest software version.
I have save my true update file as Test.tu2 and then save it as UpdateTU2.tu2. I have configured everything in the project and build settings. I've even add some serverfiles and delete my local server on the list. Then I build it. It was running fine.
Then I've tried to change my product name in the project setting. After doing so I rebuild it and even delete the client files also the server files in my server.
And upload the new build server files. Then I've tried to run again my update.exe. It seems that on my first screen the changed product name was appearing and while checking for the latest update there's a window that pop ups saying "Restart Needed", then it says that it has to be restarted in order ri perform the update. Why is that so and after clicking the ok button, it returns me to my previous built update file, which has the previous product name I have.
Can any one help me solve my problem. It is quite strange for me. I was really stock up with this.
Please help.
Thanks,
Elleah
Hi Elleah,
TrueUpdate 2.0 will restart the update process for two reasons:
1) The version of the client executable is older then the version available on the server in the .ts3 file.
2) The data stored in the client data file (*.dat) does not match the dat file stored on the server in the .ts2 file.
Your problem is probably being caused by a ts2 file that was not updated properly on your server. This would have occurred either during the build process or when you copied your files over to your server location. Try deleting all server files (.ts1, .ts2, .ts3, and .tsx) and rebuilding.
After that your project should work properly.
Elleah
05-25-2005, 11:05 PM
Hi Mark,
After series of test I was able to eliminate the window. I've just save my server files to another name and upload it to the server. It seems that it is a cache problem only.
One more thing I would like to ask, in the previous version in TU1 under the client configuration editor, we have a feature to use the user configuration in order to change proxy settings. I have browsed the help and documentation files to be able to do the same on my new update project in TU2 but unfortunately I wasn't able to find any way to do that.
I want my TU2 project to work the same as my TU1 project. Upon my Welcome screen I have included a configure button where user can configure the proxy setting.
Is it also possible in TU2? How can I able to do that?
Thanks.
Hi Ellah,
I'm glad that you have solved the previous issue, I will make a note of the cache issue incase it happens again or incase it is possible for us to do anything about it.
As far as the proxy issues are concerned, as I have said in previous posts with TrueUpdate 2.0 collecting and processing a users proxy information is generally not needed as TrueUpdate 2.0 should be able to acquire the proxy information automatically.
But if you still want to collect your users proxy information manually this is possible. The best way to do it in TrueUpdate 2.0 is not with a "configure" button (which is still possible if you rename the Help button and then use a series of Dialog.Input() actions) but with a separate screen. Simply configure an Edit Fields screen to collect proxy information and then use that proxy information whenever you access the Internet via the HTTP or FTPWI actions. You will probably want to make displaying the Proxy screen optional via some radio buttons or a checkbox.
Elleah
05-26-2005, 09:28 PM
Hi Mark,
Thanks. I will try to incorporate it in my program. I will let you know the result then.
Regards,
Elleah
Elleah
05-27-2005, 02:24 AM
Hi Mark,
Via a Dialog.Input() I was able to prompt user for the proxy address and port, but I am wondering how I can collect the proxy information from my registry, so I can initialize the Default text in my Dialog.Input() as the one read in the registry.
As I recall before you told me that I can get my Proxy setting via Software\Microsoft\Windows\CurrentVersion\Internet Settings. I am just wondering why I get an error why attempting to read value data from my registry, it gives me an error "COULD NOT GET SPECIFIED VALUE'S DATA".
my script is as follow:
Registry_Proxy = Registry.GetValue (HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", false);
Is the Registry.GetValue() action only applicable for reading my current application? I am having a hard time reading my PROXY SERVER setting. Is there any way I can collect those information, the actual address and port I am currently using.
Please advise.
Thanks,
Elleah
Hi Elleah,
First I noticed that you were not escaping backslashes in your code, try the following at it should work:
Registry_Proxy = Registry.GetValue(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Inte rnet Settings","ProxyServer", false);
Also it appears as though proxy information is only stored in the registry if you are using a proxy server. Personally I do not have a ProxyServer key in the registry because I do not use a proxy server, so you might check the ProxyEnable key to make sure that the user is using a proxy server:
result = Registry.GetValue(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Inte rnet Settings","ProxyEnable", false);
Elleah
05-29-2005, 08:37 PM
Hi Mark,
Thanks, I'll try to incorporate it in my script. Will let you know the result.
Regards,
Elleah
Elleah
05-30-2005, 05:16 AM
Hi Mark,
I was able to get the value on my registry. Thanks for the help.
Right now I am wondering how i can configure my registry, I am using the Registry.SetValue() action, just in case my user disabled the proxy setting. I am currently setting the Proxy enable to 1 when the user configure the proxy setting.
I am wondering why it doesn't work at all, yes it sets the value of the registry to 1, but I guess it cannot connect to the server at all. Do you have any idea what was the reason behind.
Thanks,
Elleah
Hi Elleah,
Since these registry settings are Windows settings I don't really know the best way to set them, or how settings them affects the way Windows works.
Take a look at this Microsoft article that describes how to configure the proxy settings using a .REG file. http://support.microsoft.com/default.aspx?scid=kb;en-us;819961
Now you will not have to use a .REG file since you can use TrueUpdate's built-in registry actions, but the article should provide enough information on what values you need to set.
Elleah
06-06-2005, 01:25 AM
Hi Mark,
I just want to check something. You've told me earlier that the TrueUpdate will only be restarted if my .ts2 and .ts3 is older than the one in the server. But currently I have uploaded new .ts2 and .ts3 in my server only the .ts1 because I made some change in my server script. I am just wondering why when I perform an update, it keeps on updating/restaring itself. The only thing I've change in my script is the latest version variable.
I haven't delete my previously .ts1 server file on the server, I've only overwrite it. Would it cause any difference.
What do you think is the cause of it? Becauseit is really strange, why it is happening.
Thanks,
Elleah
Ted Sullivan
06-06-2005, 08:03 AM
When you upload to you server, you must upload all of the files generated by the build process. You should not just upload one or two file, but all of them or something might be missing or out of sync.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.