[SOLVED] How can i change hosts file?

You have trouble using InstallForge? Then this is the right place for you.
Post Reply
Posts: 1
Joined: 05 Jul 2023, 20:57

I need to change hosts file but idk how to do it with installforge
User avatar
Posts: 19
Joined: 30 May 2023, 18:56

Assuming your setup requires administrator rights, you could use the Commands functionality: https://installforge.net/docs/how-tos/u ... -commands/

Here are the steps for your case.
  • First, you will have to create a batch script which performs the modification of your host file.
  • Add this batch script to your setup package, so that it will be installed on the client machine.
  • Define a custom command which executes the batch script.
InstallForge Power User
Post Reply