Skip to content

Conversation

gentoo90
Copy link
Contributor

@gentoo90 gentoo90 commented Sep 5, 2015

  • adds GitTfs to %PATH% on install and removes on uninstall
  • supports upgrade
  • uses WiX# (WiX should be installed to build this)

Just build GitTfs.Setup project and MSI file will be in its root folder

@pmiossec
Copy link
Member

pmiossec commented Sep 5, 2015

We need to discuss about that with @spraints because our chocolatey package already provide these features and is easier to build.

It will need to do the job twice :-(

@spraints
Copy link
Member

spraints commented Sep 7, 2015

an MSI for git tfs seems fine to me. What does the dependency story look like? I think the only chocolatey dep is Git.

var ProjectName = "GitTfs";
var GUID = new Guid("98823CC2-0C2E-4CF7-B5ED-EA2DD26559BF");
var Conf = "Release";
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to do this without a #ifdef? I'd rather avoid preprocessor stuff.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is generated code, please feel free to ignore this comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aware of any other way to distinguish Debug and Release in code. Anyway why are you against #if DEBUG? Is preprocessor in C# broken?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I avoid preprocessor conditionals because they make it so that different code is compiled in debug and release. It makes it easier to accidentally add a bug that affects release without noticing the problem in debug.

gentoo90 added 3 commits March 2, 2016 16:46
* adds GitTfs to %PATH% on install and removes on uninstall
* supports upgrade
* uses WiX#
@gentoo90
Copy link
Contributor Author

gentoo90 commented Mar 2, 2016

Rebased and updated. I believe

#if DEBUG
    var IsDebug = true;
#else
    var IsDebug = false;
#endif
    if (IsDebug) ...

is the minimum possible usage of preprocessor.

@gentoo90 gentoo90 force-pushed the msi branch 2 times, most recently from 1efb109 to e44e7df Compare March 2, 2016 17:23
@spraints
Copy link
Member

spraints commented Mar 2, 2016

😎 Looks good.

spraints added a commit that referenced this pull request Mar 2, 2016
@spraints spraints merged commit 5f46bfd into git-tfs:master Mar 2, 2016
@gentoo90
Copy link
Contributor Author

gentoo90 commented Mar 2, 2016

Appveyor doesn't want to add msi artifact :(
Although it did for my repo and with the same commit.

@pmiossec
Copy link
Member

pmiossec commented Mar 2, 2016 via email

@gentoo90
Copy link
Contributor Author

gentoo90 commented Mar 2, 2016

C:\gittfs\GitTfs.Setup\bin\Release\GitTfs.Setup.exe runs WiX which builds MSI.

@spraints
Copy link
Member

spraints commented Mar 5, 2016

When I made v0.25.0 just now, my build machine said it couldn't find wix. Is there a way to install wix via paket?

@pmiossec
Copy link
Member

pmiossec commented Mar 5, 2016

.\.paket\paket.exe add nuget wix

should work (and you will have to commit the 2 packet files updated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants