UniUploader settings

Support and feedback for UniUploader
UniUploader requires microsoft .net runtimes!

UniUploader settings

Postby ColdStorm » Sat Mar 24, 2007 7:54 pm

When I configure some settings in the new UniUploader, close it and reopen it again, all settings are lost. If i manually configure it in the "settings.ini" file, there aren't any changes either. In the older versions this worked flawless (except the rc of 1.6.3).
Last edited by ColdStorm on Sat Mar 24, 2007 7:54 pm, edited 1 time in total.
ColdStorm
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Feb 01, 2007 8:51 pm

UniUploader settings

Postby Vanterax » Sat Mar 24, 2007 7:57 pm

My problem with UU 2.6.3 is that it's setting itself to start with windows despite having the box unchecked when auto-updating. It has caused some panic among my users.

And if I try to check the box, UU crashes.

System.UnauthorizedAccessException: Access to the registry key is denied.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
at WindowsApplication3.Form1.InstallStartupKey()
Last edited by Vanterax on Sat Mar 24, 2007 7:59 pm, edited 2 times in total.
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

UniUploader settings

Postby Vanterax » Sat Mar 24, 2007 8:08 pm

UU 2.6.3 does not obey SYNCROURL that I have in UA. It keeps reseting itself to the default value "http://XXXXXXX.XXX/uniadmin/interface.php". Even if I write it in the INI file myself, it keep being reset.
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

UniUploader settings

Postby MattM » Sat Mar 24, 2007 8:48 pm

ouch this isnt good.

I wonder what is causing this.

I know why the registry problem is occuring, and the solution.

But, I dont know why the settings are being lost, or possible solutions.

We need to investigate this some more.
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

UniUploader settings

Postby Vanterax » Sat Mar 24, 2007 9:10 pm

The debug windows shows a registry error when I load UU.

I can change settings and when I exit UU, they get written in settings.ini. However when I load up UU again, those settings aren't read. Everything is at default values again.

Is UU giving up on reading the INI file after this registry error?
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

UniUploader settings

Postby Vanterax » Sat Mar 24, 2007 9:42 pm

MattM... The problem is here:

Code: Select all
case "STARTWITHWINDOWS":
      stboot.Checked = settingValueBool;
      InstallStartupKey();
      break;


InstallStartupKey() generates an exception that interrupts the processing of the rest of the settings. That's why our INI settings can't stick.
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

UniUploader settings

Postby Vanterax » Sat Mar 24, 2007 10:09 pm

Thanks to the source code, I made an exception handler inside InstallStartupKey() to ignore the error. I don't use the startup feature, so it's no big loss. It'll do until the official source is fixed. :)
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

UniUploader settings

Postby Toto » Sat Mar 24, 2007 10:28 pm

Same problems here about the app launching at the start of windows whithout having the option checked.
Toto
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sun Jan 14, 2007 8:53 pm

UniUploader settings

Postby Vanterax » Sat Mar 24, 2007 10:36 pm

The problem is inside the function that sets the startup key. First, it attempts to write it regardless of the setting value, but it only works once for some reason. It only works the first time and subsequent attempts result in a "permission denied". I changed the routine to use CurrentUser instead and again, it only worked once.

I've disabled it on my end for now, but it's of no help for all my guild mates who have been auto-updated.
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

UniUploader settings

Postby MattM » Sat Mar 24, 2007 10:37 pm

Yikes, guess I better release 2.6.4

thanks for the help guys
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

UniUploader settings

Postby Vanterax » Sun Mar 25, 2007 12:30 am

Ok, now I know what's going on.

On my system, I have SpySweeper which, among other things, monitors all my startup settings to warn me when an application is setting itself to auto-start. If I deny UniUploader this right, it will constantly be denied this until I reboot. However, UU doesn't recover nicely when it's denied access to the registry. It complains of an "access denied" and then stops processing the INI file. That messes its settings and overwrite the INI with default values when it exists.

The solution is two folds:

1 - UU isn't obeying the "Start with Windows" checkbox. Even with it isn't checked, it tries to set itself as autostart.
2 - Implement an exception handler inside InstallStartupKey() to make it recover more nicely from other softwares preventing this sort of registry change.

That should solve it for everyone.
Last edited by Vanterax on Sun Mar 25, 2007 12:31 am, edited 1 time in total.
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

UniUploader settings

Postby MattM » Sun Mar 25, 2007 12:32 am

done and done, 2.6.4 released, try it out :D
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

UniUploader settings

Postby Vanterax » Sun Mar 25, 2007 12:45 am

You're awesome, Matt! Working beautifully now! Thanks! :D
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

Re: UniUploader settings

Postby MattM » Sun Mar 25, 2007 12:58 am

and thank you for your research! :geek:
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

UniUploader settings

Postby rouven » Sun Mar 25, 2007 11:20 pm

still have the problem with lost settings in 2.6.4
User avatar
rouven
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 93
Joined: Fri Jan 12, 2007 4:39 am
Location: Hamburg, Germany

Next

Return to UniUploader

Who is online

Users browsing this forum: No registered users and 0 guests

cron