Announcement

Collapse
No announcement yet.

Setting a path correctly on computer to be installed systems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting a path correctly on computer to be installed systems

    Hello. I am writing some addons, for a game, called Train Simulator, which is provided by STEAM. Since the game folder can be on any drive / folder, i need to find out how I can get the installer to find this information out, and show the correct path.

    Futher, I would like the installer to find if a certain Asset / Content is installed on the computer system before it installs.

    Additionally, Some of my admendments require the copy of certain files from the Game's own folder / .AP files ( Which is a zip file basically ).

    Would appriciate some direction on this please.

    Kind Regards

    Stuart
    SGRAVESNET

  • #2
    You would start by researching the registry, and look up where the application was deployed by inspecting the corresponding registry values. Once you have determined the installation path, you would use actions like File.DoesExist() to check if the required files exist on the target system. Finally, you use File.Copy() to make copies of the *.ap files.

    Ulrich

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎