ninken
Posts: 1
Joined: Fri Jan 07, 2022 3:10 am

Game mod installing / file checks.

Fri Jan 07, 2022 3:16 am

I'm working on creating a install for for a mod for an older video game.

However I need the user to point me to the game .EXE file.
I need first verify the game version from the exe file data.
Then based on the game version exe I will or will not install the game mod.

I'm having issues creating a custom action with the file dialog filter for .exe, it wants to select a folder only.
Second I need some help how I can read the exe metadata and best method is boolean result from a vbs script?

Any pointers on how to do this or sample pia projects that do patching ?
I'm not patching however just installing the necessary files depending on the game version.

Thanks.

Catalin
Posts: 6544
Joined: Wed Jun 13, 2018 7:49 am

Re: Game mod installing / file checks.

Fri Jan 07, 2022 3:45 pm

Hello and welcome to our forums,

In order to achieve that, you could follow our "How to select an external file during the installation" article.

The above article should help in creating a dialog that will let the usre point to the EXE (it even has a sample project attached).

After that, you can retrieve the property assigned to the control (this property will store the path to the EXE) in your custom action and then extract the metadata from your executable (if this is possible).

How to set an installer property using custom actions

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”