gamevault-app
gamevault-app copied to clipboard
Attempt to set install directory when starting a setup executable
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.
do you have any further examples of installers supporting this including the corresponding argument?
Yea, we can add something like "Try auto add install path". But for that be should list some common install arguments out there
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 |
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.
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.