This is a Grand Theft Auto V launcher that allows us to switch between several modded versions and a vanilla version of the game easily, without taking too much space.
Removed a lot of the unnecessary nesting and also added a function ThrowExIfPathsDontExist() which throws an exception if install.Path is null, !Directory.Exists(install.Path) and optionally !Directory.Exists(Path.Combine(install.Path, "update\x64\dlcpacks"). Added the function because the same code was being used twice anyway. I haven't tested this code but it should work.
Removed a lot of the unnecessary nesting and also added a function ThrowExIfPathsDontExist() which throws an exception if install.Path is null, !Directory.Exists(install.Path) and optionally !Directory.Exists(Path.Combine(install.Path, "update\x64\dlcpacks"). Added the function because the same code was being used twice anyway. I haven't tested this code but it should work.