gamevault-app icon indicating copy to clipboard operation
gamevault-app copied to clipboard

Attempt to set install directory when starting a setup executable

Open KairuByte opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. It's a little annoying for those with tech experience, and nigh impossible for someone without tech experience, to set the install directory manually.

Describe the solution you'd like Most (all?) installers support a flag for "install to this directory." GoG installers for instance, support the /dir=[directory] argument. I admit I do not know of any others off the top of my head, but I do know the majority have them. This (and any others we find) could be added to the end of the setup run as a sort of brute force attempt to set the install directory.

Additional context This will be useless once server side manifest files have been added.

KairuByte avatar Jan 26 '24 19:01 KairuByte

do you have any further examples of installers supporting this including the corresponding argument?

Alfagun74 avatar Jan 27 '24 23:01 Alfagun74

Yea, we can add something like "Try auto add install path". But for that be should list some common install arguments out there

Yelo420 avatar Feb 05 '24 14:02 Yelo420

We need to look into what settings different installer types use. If there are standard ways these settings are written, please let us know. We're also thinking about whether we should try to figure out the installer type or just add all the settings we know about, like this:

installer.exe -dir "dir" -directory "dir" -target "dir"

to cover most situations. Is there a limit to how many settings we can add?

Right now, we only know about these:

Installer Type Setting Reference Implemented
GOG /dir= Link No

Alfagun74 avatar Feb 06 '24 23:02 Alfagun74

I'm not 100% sure on what kinds of installers most games use these days. I admit I pretty much only use Steam or GOG.

I know there are flags for MSI files and such, but I don't believe I have ever seen a game use the MSI installer format.

I'll try to do some research into Humble Bundle installers, since thats the only other store I am really aware of that serves bare exe's these days, and only for their "free game" benefit offerings.

KairuByte avatar Feb 07 '24 22:02 KairuByte

We will implement a settings toggle that activates this feature and simply appends any known directory parameters to the installer. This way, you can switch it off in case installers cannot handle that flag and crash.

Alfagun74 avatar Mar 08 '24 08:03 Alfagun74