예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public Task <bool> IsInstalledAsync(CancellationToken cancellationToken) =>
 Task.FromResult(_innoSetupService.GetInnoSetupInstallationPath() != null);