seegit icon indicating copy to clipboard operation
seegit copied to clipboard

Installer?

Open haacked opened this issue 11 years ago • 7 comments

Should we create an installer?

haacked avatar May 22 '13 23:05 haacked

I say we do and publish it on seegit.github.io :D

Therzok avatar May 23 '13 00:05 Therzok

SeeGit also could be installed through chocolatey.org

marisks avatar Sep 19 '13 08:09 marisks

@marisks YES! Let's do that. :) Want to help?

haacked avatar Sep 19 '13 15:09 haacked

I would like to help with creating Chocolatey package.

I think that at first only portable version should be created. For that only ZIP archive with executables will be needed. Could you upload such archive for Release 1.0?

marisks avatar Sep 20 '13 06:09 marisks

I have created Chocolatey package, but there is an issue with running SeeGit from command line. SeeGit can be run only from directory it resides. The issue is with configuration reading - it tries to read config from current directory, but not the application directory. In Settings.cs ConfigurationManager.OpenMappedExeConfiguration is used to read configuration:

    public Settings()
    {
        var fileMap = new ExeConfigurationFileMap();
        fileMap.ExeConfigFilename = @"SeeGit.exe.config";
        _config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);

        if (!_config.HasFile)
            throw new ConfigurationErrorsException("Config file not found.");
    }

But ConfigurationManager.OpenMappedExeConfiguration reads configuration from current directory and not from application directory. Is there any reason to use OpenMappedExeConfiguration instead of OpenExeConfiguration? OpenExeConfiguration reads application config from application directory. The only difference is that you can't provide different file name.

marisks avatar Oct 17 '13 06:10 marisks

Is there any reason to use OpenMappedExeConfiguration instead of OpenExeConfiguration?

Umm, I have no idea honestly. :stuck_out_tongue:

I'm fine with changing it to OpenExeConfiguration if it makes it work with Chocolatey.

haacked avatar Oct 17 '13 16:10 haacked

Let's use Squirrel! http://github.com/squirrel/squirrel.windows

haacked avatar Oct 09 '15 17:10 haacked