Moving Templates and Demo Game folders to shared location

Started by Crimson Wizard, Sat 05/09/2015 21:04:25

Previous topic - Next topic

Crimson Wizard

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%. 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?

ChamberOfFear

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.

sonneveld

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

Cassiebsg

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! >:(
There are those who believe that life here began out there...

SMF spam blocked by CleanTalk