Change Install Directory After Installation

Is the best way to change the install directory for Ignition to uninstall and install? Change the install directory through the install wizard

Or move the Ignition folder?

I would typically move the Ignition folder by following these steps:

  1. Stop Ignition service (run stop-ignition.bat file or stop from services)
  2. Run uninstall-ignition.bat file (uninstalls the service)
  3. Move the entire Ignition install directory to new location
  4. Run install-ignition.bat file (reinstall the service)
  5. Start Ignition service (run start-ignition.bat file or start from services)

Following these steps will set the path to executable for the service to the new location.

3 Likes

When doing this on a Linux OS, there is an Uninstall.run file but not an Install.run file.

Also, I don't see anything about install/uninstall using the Gateway Command-line Utility (gwcmd).

I don't have a Linux system to test at the moment, but I think you should be able to run ./ignition.sh remove from the install directory and then use ./ignition.sh install from the new location.

I would suggest taking a gateway backup before testing

2 Likes

To be clear, run ./ignition.sh remove while in the directory where Ignition is installed? Then run ./ignition.sh install from the new directory?

The ./ignition.sh install won't be in the new directory, it'll still be in the old directory. So move the files after running ./ignition.sh remove to the new directory and then I'll be able to run ./ignition.sh install?

Correct, run ./ignition.sh remove from the current install directory, then move the entire Ignition install directory to the new location and then run ./ignition.sh install from the new directory. Again, make sure you take a gateway backup before testing this out. I haven't actually tried this on Linux. All the times I've gone through it have been on Windows.

Ok, thank you for the info. I will give it a try on a dev environment and make sure this works properly before doing it in production.

I would personally just let the installer do this.
Take a backup.
Run the uninstaller.
Install the version you want in the location you want.
Restore the backup.

3 Likes

Agreed, with how robust Ignitions gateway backup is, it would be immensely easier to take a backup, uninstall, reinstall in correct directory location desired and restore the gateway backup. Shorter downtime and less room for issues down the road.

1 Like

I tried it by running the uninstaller and re-install. Seem to take longer especially loading in the gateway backup which took longer than 1 minute. Then I had to go through the gateway network configure and approve/accept connections. I didn't have to do that when moving the files over after running the steps @avaughn suggested.

Ah, yeah. The new install will have a new UUID generated, which will need to be accepted again. Potentially a point in favor of moving the files :man_shrugging: