Author Topic: Weird Installation Problem  (Read 7193 times)

0 Members and 1 Guest are viewing this topic.

Offline Zincat

  • Captain
  • **********
  • Z
  • Posts: 566
  • Thanked: 111 times
Re: Weird Installation Problem
« Reply #30 on: April 04, 2020, 06:23:16 AM »
Windows doesn't like things in C:/Program Files being edited, so if the database is in the same folder as the rest of the program then it's likely that protection is what is causing the long waits. Making sure it doesn't get installed in program files would fix it, as would having the database be somewhere else. %appdata% is commonly used for this sort of thing.

This is most likely the correct reason. Windows really doesn't like tinkering with the c:/Program Files folder.
In a certain sense it's a good thing (it can protect users, especially the less computer-savvy ones), but then you have these problems cropping up.

Probably do write it somewhere in the installer, or propose a different folder by default. And I would surely use 64bits, for systems that support it.
 

Offline Tuna-Fish

  • Chief Petty Officer
  • ***
  • T
  • Posts: 30
  • Thanked: 10 times
Re: Weird Installation Problem
« Reply #31 on: April 04, 2020, 06:28:55 AM »
It is folder related. If I move the install files from C:/Program Files/Aurora to C:/Aurora it works fine. That is true for both my main PC and my laptop.

No idea what is going on there.

The "program files" directories in modern (post-xp) windows versions is meant for immutable program data. It has different file permissions and backup behavior than the rest of the filesystem, and consequently is very slow to write.

Assuming that you have a base database file(s) that are meant to be changed during use, the correct way to use them in modern windows systems is to have a clean copy of them in the install folder, but never open them from this folder, instead on startup you check whether %appdata%/aurora4x(example_name)/ exists, and if not, create it, and then copy over all the files that are meant to be changed during use, and open them in %appdata%.
« Last Edit: April 04, 2020, 06:42:22 AM by Tuna-Fish »
 

Offline Tikigod

  • Lieutenant
  • *******
  • Posts: 195
  • Thanked: 55 times
Re: Weird Installation Problem
« Reply #32 on: April 04, 2020, 06:38:23 AM »
It is folder related. If I move the install files from C:/Program Files/Aurora to C:/Aurora it works fine. That is true for both my main PC and my laptop.

No idea what is going on there.

The "program files" directories in modern (post-xp) windows versions is meant for immutable program data. It has different file permissions and backup behavior than the rest of the filesystem, and consequently is very slow to write.

Assuming that you have a base database file(s) that are meant to be changed during use, the correct way to use them in modern windows systems is to have a clean copy of them in the game folder in in the install folder, but never open them from this folder, instead on startup you check whether %appdata%/aurora4x(example_name)/ exists, and if not, create it, and then copy over all the files that are meant to be changed during use, and open them in %appdata%.

Things like this bug me immensely when trying to keep my System drive dedicated to the OS and only specific software that benefits from using a SSD.

If I have something installed on my secondary HDD, I expect it to keep as much of its dependant files stored relative to the drive I've installed it on, not to dump additional files onto another drive.... I get why developers do it, but so much of it seems to stem from outdated "Good practise" that really isn't necessary 9 times out of 10.

Just like all those games out there that despite being installed on my secondary HDD, still insist that settings, mod data, saves and such all be tossed onto my system SSD in a directory within the users Documents hierarchy, which ends up meaning my system drive has gigs of misc data sprawled around on it for applications installed on my secondary drive..... Yes Paradox.... you suck big time for doing it for every game.
The popular stereotype of the researcher is that of a skeptic and a pessimist.  Nothing could be further from the truth! Scientists must be optimists at heart, in order to block out the incessant chorus of those who say "It cannot be done. "

- Academician Prokhor Zakharov, University Commencement
 

Offline Demonius

  • Warrant Officer, Class 1
  • *****
  • Posts: 83
  • Thanked: 25 times
Re: Weird Installation Problem
« Reply #33 on: April 04, 2020, 07:12:47 AM »
Putting stuff in program files… does the . exe have a digital signature?
 

Offline Steve Walmsley (OP)

  • Moderator
  • Star Marshal
  • *****
  • S
  • Posts: 11675
  • Thanked: 20460 times
Re: Weird Installation Problem
« Reply #34 on: April 04, 2020, 07:19:18 AM »
I think it will be easiest just to have the database in the installation directory and warn players not to install in program files. That reduces the potential for bugs outside my control.
 
The following users thanked this post: unkfester, Protomolecule

Offline Tuna-Fish

  • Chief Petty Officer
  • ***
  • T
  • Posts: 30
  • Thanked: 10 times
Re: Weird Installation Problem
« Reply #35 on: April 04, 2020, 08:29:09 AM »
If I have something installed on my secondary HDD, I expect it to keep as much of its dependant files stored relative to the drive I've installed it on, not to dump additional files onto another drive.... I get why developers do it, but so much of it seems to stem from outdated "Good practise" that really isn't necessary 9 times out of 10.

This isn't some outdated "good practise", it's following the proper guidelines on how to store data on Windows set by Microsoft. Putting all the things relevant to one program into one folder is the traditional way of doing things in windows, separating the program and static data into %programfiles% and putting everything that might get modified into %appdata% is the new, proper way of doing things.

Whether this is the right approach is another discussion, but on this Paradox (and basically all other modern games) are just doing what Microsoft orders them to do on their platform.
 

Offline clement

  • Pulsar 4x Dev
  • Sub-Lieutenant
  • *
  • c
  • Posts: 137
  • Thanked: 13 times
Re: Weird Installation Problem
« Reply #36 on: April 04, 2020, 09:16:21 AM »
Is there a need to have an install program vs. just providing a zip file of the folder structure that can be placed where we want it to live in our machine?
 

Offline Inglonias

  • Lieutenant
  • *******
  • I
  • Posts: 170
  • Thanked: 69 times
Re: Weird Installation Problem
« Reply #37 on: April 04, 2020, 09:24:11 AM »
If you don't have the required runtimes to run the game, you will need the installer, yes. (Source)
 

Offline clement

  • Pulsar 4x Dev
  • Sub-Lieutenant
  • *
  • c
  • Posts: 137
  • Thanked: 13 times
Re: Weird Installation Problem
« Reply #38 on: April 04, 2020, 10:01:01 AM »
If you don't have the required runtimes to run the game, you will need the installer, yes. (Source)

Yep, I just figured that is a paragraph on the download post with a link to the. Net 4 runtime installer for anyone with a version of Windows to old to have it. I believe anyone with Windows 7 and up who has updates enabled should have the. Net 4 runtime installed.