MantisBT - Zandronum
View Issue Details
0002396Zandronum[All Projects] Suggestionpublic2015-08-10 07:512023-05-07 02:54
Dark-Assassin 
 
hightweakN/A
closedfixed 
MicrosoftWindowsXP/Vista/7
 
3.1 
0002396: [Installer] Change default installation directory
As you all should know, since Windows Vista, pretty much anything in the Program Files or Program Files (x86) directories require the user to have Administrator Access or modified permissions to make any changes.

What I propose is to change the default installation directory from C:\Program Files (x86)\Zandronum to something like C:\Games\Zandronum as seen in some other game installers.
Few examples of errors from installing in the current default directory:
'http://zandronum.com/forum/showthread.php?tid=6292 [^]'
'http://zandronum.com/forum/showthread.php?tid=6293 [^]'
'http://zandronum.com/forum/showthread.php?tid=5974 [^]'
'http://zandronum.com/forum/showthread.php?tid=5969 [^]'
No tags attached.
has duplicate 0002398closed  Use the AppData folder for the configuration file instead of install folder 
Issue History
2015-08-10 07:51Dark-AssassinNew Issue
2015-08-10 07:52Dark-AssassinNote Added: 0013185
2015-08-10 13:39DuskRelationship addedhas duplicate 0002398
2015-08-10 13:41DuskNote Added: 0013192
2015-08-10 13:46KlofkacNote Added: 0013193
2015-08-10 13:46KlofkacNote Edited: 0013193bug_revision_view_page.php?bugnote_id=13193#r7877
2015-08-10 13:50KlofkacNote Edited: 0013193bug_revision_view_page.php?bugnote_id=13193#r7878
2015-08-11 01:38Dark-AssassinNote Added: 0013206
2015-08-11 01:39Dark-AssassinNote Edited: 0013206bug_revision_view_page.php?bugnote_id=13206#r7895
2015-08-11 07:06HexaDokenNote Added: 0013207
2015-08-11 09:54KlofkacNote Added: 0013208
2015-08-14 07:55DuskNote Added: 0013217
2015-08-14 07:55DuskNote Edited: 0013217bug_revision_view_page.php?bugnote_id=13217#r7907
2022-06-20 23:06dukeNote Added: 0022272
2022-07-02 01:17DrinkyBirdNote Added: 0022274
2023-05-07 02:54Dark-AssassinStatusnew => closed
2023-05-07 02:54Dark-AssassinResolutionopen => fixed
2023-05-07 02:54Dark-AssassinFixed in Version => 3.1

Notes
(0013185)
Dark-Assassin   
2015-08-10 07:52   
Damn italics made \ look like |
(0013192)
Dusk   
2015-08-10 13:41   
How come did this suddenly surface with multiple users in such a short timeframe if this has been the case since Windows Vista? Did Windows 10 do something that causes this to be a problem now?
(0013193)
Klofkac   
2015-08-10 13:46   
(edited on: 2015-08-10 13:50)
Or, instead of changing the installation directory (it is kind of non-standard), the configuration file could be put to %AppData%\Zandronum directory instead. AppData is exactly made for things like this. And in order to maintain portability and compatibility with older version, Zandronum could look into its own directory first, but if it does not find anything, create new in AppData.
Linux is already using ~/.zandronum/ for config, so there is not this problem. So why not make it same for Windows?

(0013206)
Dark-Assassin   
2015-08-11 01:38   
(edited on: 2015-08-11 01:39)
The configs should be writing to AppData, but for some it still isn't. Something could have changed in Windows 8, but I've only got 7.

Another downfall is that you still require elevated privileges to install any WAD/PK3 files in to the installation directory. Weather manually or from DE, DS or IDE.

And with the linux part, is is completely standard to write everything user modifiable to the user's home directory. Same with OSX too.
Else, you must have root access to write anything.

(0013207)
HexaDoken   
2015-08-11 07:06   
Re: Klofkac's suggestion: should this ever make it in, I request an option of some form that would allow me to override the config file location back to the game's folder.

I have always absolutely hated it when a program stores pretty much anything belonging to it outside of the folder it is in.
(0013208)
Klofkac   
2015-08-11 09:54   
Quote

should this ever make it in, I request an option of some form that would allow me to override the config file location back to the game's folder.


Well, as I said, for compatibility purposes Zandronum could always look into its own directory first. Meaning, you can just move the config from AppData to Zandronum folder and done.
(0013217)
Dusk   
2015-08-14 07:55   
I think this should be a last resort to save the ini if saving fails and -config is not given.

(0022272)
duke   
2022-06-20 23:06   
The latest Zandronum 3.1 installer now uses %LOCALAPPDATA%\Zandronum as the default installation directory.

But the zandronum-installer repository on OSDN hasn't been updated since 2019. The repo version still uses Program Files by default and this issue remains open.

Could the installer changes be pushed to the repo and this issue closed?
(0022274)
DrinkyBird   
2022-07-02 01:17   
The main installer repo is on GitHub, for some reason:'https://github.com/TorrSamaho/zandronum-installer. [^]' Not sure why the repo on OSDN isn't the main and isn't being updated.

And yes, this ticket should be closed.