Adventure Game Studio | Forums

AGS Development => Editor Development => Topic started by: Crimson Wizard on Sat 05/09/2015 21:04:25

Title: Moving Templates and Demo Game folders to shared location
Post by: Crimson Wizard on Sat 05/09/2015 21:04:25
We need to move the "Templates" and "Demo Game" folders to some standard shared location in Windows to prevent security issues in Win Vista and later.

One of the possible paths could be %ALLUSERSPROFILE% (http://www.askvg.com/list-of-environment-variables-in-windows-xp-vista-and-7/). In Win XP it is "C:\Documents and Settings\All Users", and in Vista and later ones it is "C:\ProgramData".

On other hand, we may choose "Public" documents folder on recent systems.

Which makes more sense? Any other ideas?
Title: Re: Moving Templates and Demo Game folders to shared location
Post by: ChamberOfFear on Sat 05/09/2015 22:01:24
The most common in my experience is to let users choose themselves on install between %ALLUSERSPROFILE% and %USERPROFILE%. This is a fairly conventional solution so that's probably the way to go I think.
Title: Re: Moving Templates and Demo Game folders to shared location
Post by: sonneveld on Sun 06/09/2015 07:15:49
Smoking cat person is correct.  I think in innosetup you can use {userdocs} & {commondocs} to point towards the user's documents directory or the public writable all users documents directory. (See http://jrsoftware.org/ishelp/topic_consts.htm#userdocs ) The interesting thing will be to see how this works in XP and newer OSs. Also if we're installing as an admin, there seems to be some questions as to which user {userdocs} refers to.

Probably will need to create an option in the installer to select either option. See http://stackoverflow.com/questions/8176661/change-from-userdocs-to-commondocs or http://stackoverflow.com/questions/10940518/setting-destdir-from-inno-pascal
Title: Re: Moving Templates and Demo Game folders to shared location
Post by: Cassiebsg on Sun 06/09/2015 09:19:26
I hope there'll be an option for the user to self choose where to install.
I HATE the standard wincrap folders! So I would hate having to fight to find my files every single time I do something! >:(