GithubHelp home page GithubHelp logo

Comments (8)

BrianFarnhill avatar BrianFarnhill commented on June 12, 2024

Hi Heidi,

The xSPInstallPrereqs uses Get-xSharePointAssemblyVersion to get the version number from prerequisiteinstaller.exe (from the InstallerPath property). This gives us the version number of the prerequisite installer, which lines up with the version number of SharePoint we are dealing with as well, meaning we can use that to determine which prerequisite installations to check for. From our own testing it works fine for both versions - have you seen this not work correctly somewhere though? Would be keen to know what scenarios it doesn't work in so we can accommodate them.

  • B

from sharepointdsc.

heidi2 avatar heidi2 commented on June 12, 2024

Ah, OK, I think the actual problem may be that I'm running powershell version 4.The version property that's used in Get-xSharePointAssemblyVersion appears to have been introduced in v5. Are you still intending to support v4 at this stage, or do I just need to upgrade?

from sharepointdsc.

BrianFarnhill avatar BrianFarnhill commented on June 12, 2024

We are absolutely looking to support PowerShell 4 as well - let me spin up an environment where I can validate that and I'll let you know how I go. What we do though should have been working fine though but I'll confirm. Do you have a specific error message or logs or anything you can share with me about your error that you can share with me?

from sharepointdsc.

BrianFarnhill avatar BrianFarnhill commented on June 12, 2024

OK it would appear you are correct Heidi - I can see how we address this as well, I'll work on getting a fix pushed in for this one and post here when it is resolved.

from sharepointdsc.

BrianFarnhill avatar BrianFarnhill commented on June 12, 2024

Hey Heidi,

I have a fix that appears to be working in my repo - I'll do some integration and functional tests with it to make sure it behaves correctly in a few scenarios and then I'll post the fix. Expect it within a few days to a week, and I'll post here and close this issue when it's done.

Thanks for reporting the bug!

from sharepointdsc.

heidi2 avatar heidi2 commented on June 12, 2024

Excellent! Thanks for the quick response, and all the work you've put into this project.I'm just getting started with DSC, and it's great being able to do so much.

from sharepointdsc.

BrianFarnhill avatar BrianFarnhill commented on June 12, 2024

Hi @heidi2 - the fix for this issue is included in pull request #78 - I'm just waiting on a code review before I move this in to the dev branch though. In the mean time if you want to apply the fix to your own scripts the change is in xSharePoint.Util.psm1, in the Get-xSharePointAssemblyVersion function, the one line it uses should be:

return (Get-Command $PathToAssembly).FileVersionInfo.FileMajorPart

This will work in PS4 and PS5, so should resolve the issue you are seeing while we get the rest of the changes in that pull request reviewed and moved in. I'll keep this issue open until the fix is officially part of the dev branch though.

from sharepointdsc.

BrianFarnhill avatar BrianFarnhill commented on June 12, 2024

This fix is now merged in to the dev branch and will be in the next release - closing this issue

from sharepointdsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.