Page 1 of 1

No creation of Appdata after Error

Posted: 04 Feb 2012 17:40
by PeterH
If XY starts,
and admin.ini is found (i.e. user wants to specify appdata-location),
and the appdata-directory pointed to in admin.ini doesn't exist,
and it cannot be created (here: illegal file name :oops: )
and even no appdata exists in default location:
:arrow: no default appdata should be allocated!

Reason: by admin.ini user specified an explicit location. If this doesn't exist *and* cannot be created it means that there is something absolutely wrong! I.e. error in admin.ini, authorization-problem, or whatever!

Either XY should just give info (and maybe terminate),
or XY should at least ask if appdata should be allocated at default location, and allow "No".
No problem to terminate XY in this case!

The auto-creation at default location means doing what is explicitly (but with errors) *not* requested.

(Sorry that I'm stupid enough to do this several times... :oops:
but I make some install-tests, and often copy a model-file without first customizing it.)

Re: No creation of Appdata after Error

Posted: 07 Feb 2012 11:56
by admin
admin.ini? do you may be mean startup.ini? otherwise please post the admin.ini code you are using.

Re: No creation of Appdata after Error

Posted: 07 Feb 2012 13:25
by PeterH
admin wrote:admin.ini? do you may be mean startup.ini? otherwise please post the admin.ini code you are using.
Sure you're right... :oops:

I created both files, then wrongly happened to take the first name - but that's nonsense, of course!

Startup.ini, [Appdata], Path=, here with an illegal path name.

By the way, now really to admin.ini: as I see it, XY on start copies registration details from admin.ini to xyplorer.ini - does that make sense?
(Just to ask, no problem with that.)
(And if it makes a difference: on first start, on creation of admin.ini)

Re: No creation of Appdata after Error

Posted: 07 Feb 2012 14:37
by admin
OK, I agree with both of your suggestions, and have just implemented them.

(No mention in change log: too complex to explain)

Thanks!

Re: No creation of Appdata after Error

Posted: 07 Feb 2012 20:14
by PeterH
Very fine, will test it then...
(... I hope at will, not by mistake :roll: )

Have thanks, too!

Re: No creation of Appdata after Error

Posted: 07 Feb 2012 23:20
by PeterH
Tested: very good!

It explains the error, even shows the (simulated) wrong string.
And next it asks for using default or cancel!

That is: gives the chance to cancel, correct the data, and then restart.

Ich bin begeistert!

Thanks!