Page 1 of 1

[SOLVED] How can i change hosts file?

Posted: 05 Jul 2023, 21:00
by hxvy0
I need to change hosts file but idk how to do it with installforge

Re: How can i change hosts file?

Posted: 07 Jul 2023, 18:04
by markbell
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.