No creation of Appdata after Error

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

No creation of Appdata after Error

Post 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.)

admin
Site Admin
Posts: 67340
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: No creation of Appdata after Error

Post by admin »

admin.ini? do you may be mean startup.ini? otherwise please post the admin.ini code you are using.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: No creation of Appdata after Error

Post 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)

admin
Site Admin
Posts: 67340
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: No creation of Appdata after Error

Post 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!

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: No creation of Appdata after Error

Post by PeterH »

Very fine, will test it then...
(... I hope at will, not by mistake :roll: )

Have thanks, too!

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: No creation of Appdata after Error

Post 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!

Post Reply