Git Product home page Git Product logo

Comments (7)

heaths avatar heaths commented on June 3, 2024

Try help import-module (hint: try -path).

from psmsi.

StingyJack avatar StingyJack commented on June 3, 2024

There is no -Path parameter for import-module
image I load modules from filesystem paths often.

Like I said, I could import via the manifest file, but those functions in the Readme.md (get-msiproductinfo and get-msicomponentinfo) are not in the function list. So perhaps the psd1 is not the thing to point import-module at, or maybe the readme is grossly out of date.

from psmsi.

heaths avatar heaths commented on June 3, 2024

The README.md file is correct. I use this module often.

You can pass a path to the -Name parameter, or just update your $env:PSModulePath. Do not use the psm1. In general, always choose the psd1 if there is one.

from psmsi.

StingyJack avatar StingyJack commented on June 3, 2024

If the readme is correct, and I'm importing the psd1 without errors, why don't the functions in the readme show up when I run 'get-command' for this module?

from psmsi.

heaths avatar heaths commented on June 3, 2024

Not sure. Works fine on all my machines, and first I'm hearing of this. It's all standard authoring and hasn't changed in years. Could be an issue with the PowerShell configuration on your machine, but I have no idea what that could be.

PS> gcm -mod msi

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Get-MSIComponentState                              3.2.33     msi
Function        Get-MSISharedComponentInfo                         3.2.33     msi
Function        Install-MSIAdvertisedFeature                       3.2.33     msi
Cmdlet          Add-MSISource                                      3.2.33     msi
Cmdlet          Clear-MSISource                                    3.2.33     msi
Cmdlet          Edit-MSIPackage                                    3.2.33     msi
Cmdlet          Export-MSIPatchXml                                 3.2.33     msi
Cmdlet          Get-MSIComponentInfo                               3.2.33     msi
Cmdlet          Get-MSIFeatureInfo                                 3.2.33     msi
Cmdlet          Get-MSIFileHash                                    3.2.33     msi
Cmdlet          Get-MSIFileType                                    3.2.33     msi
Cmdlet          Get-MSILoggingPolicy                               3.2.33     msi
Cmdlet          Get-MSIPatchInfo                                   3.2.33     msi
Cmdlet          Get-MSIPatchSequence                               3.2.33     msi
Cmdlet          Get-MSIProductInfo                                 3.2.33     msi
Cmdlet          Get-MSIProperty                                    3.2.33     msi
Cmdlet          Get-MSIRelatedProductInfo                          3.2.33     msi
Cmdlet          Get-MSISource                                      3.2.33     msi
Cmdlet          Get-MSISummaryInfo                                 3.2.33     msi
Cmdlet          Get-MSITable                                       3.2.33     msi
Cmdlet          Install-MSIPatch                                   3.2.33     msi
Cmdlet          Install-MSIProduct                                 3.2.33     msi
Cmdlet          Measure-MSIProduct                                 3.2.33     msi
Cmdlet          Remove-MSILoggingPolicy                            3.2.33     msi
Cmdlet          Remove-MSISource                                   3.2.33     msi
Cmdlet          Repair-MSIProduct                                  3.2.33     msi
Cmdlet          Set-MSILoggingPolicy                               3.2.33     msi
Cmdlet          Test-MSIProduct                                    3.2.33     msi
Cmdlet          Uninstall-MSIPatch                                 3.2.33     msi
Cmdlet          Uninstall-MSIProduct                               3.2.33     msi


PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.17134.112
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.112
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

from psmsi.

StingyJack avatar StingyJack commented on June 3, 2024

I don't discount an environmental issue, visual studio recently forgot how to load modules from any of the 64bit ps module paths. In this case, my ps versions are all the same, however I dont get a Version number listed for the commands and the module lists as Script, and it seems like none of the Cmdlets are available.

Trying to locate the cmdlets in the dll's in the package isnt finding them either
image

Are there any assemblies that look to be missing from this folder?
image

from psmsi.

heaths avatar heaths commented on June 3, 2024

That's everything (and more; could of those files don't need to be in there and I'll remove). Run fuslogvw.exe from the .NET Framework SDK and see if there are binding errors.

from psmsi.

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.