protected override string GetExePath() { var innoSetupInstallationPath = _innoSetupService.GetInnoSetupInstallationPath(); var innoSetupCompilerPath = Path.Combine(innoSetupInstallationPath, "ISCC.exe"); if (!File.Exists(innoSetupCompilerPath)) { throw new InvalidOperationException("Inno Setup installation detected, but the compiler doesn't exist!"); } return(innoSetupCompilerPath); }
protected override string GetExePath() { var innoSetupInstallationPath = _innoSetupService.GetInnoSetupInstallationPath(); var innoSetupCompilerPath = Path.Combine(innoSetupInstallationPath, "ISCC.exe"); if (!File.Exists(innoSetupCompilerPath)) { throw new InvalidOperationException($"An Inno Setup installation was detected, but no compiler exists at {innoSetupCompilerPath}"); } return(innoSetupCompilerPath); }
public Task <bool> IsInstalledAsync(CancellationToken cancellationToken) => Task.FromResult(_innoSetupService.GetInnoSetupInstallationPath() != null);