Comments (7)
Try help import-module
(hint: try -path
).
from psmsi.
There is no -Path
parameter for import-module
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.
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.
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.
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.
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
Are there any assemblies that look to be missing from this folder?
from psmsi.
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)
- Installer/Artifacts HOT 2
- README doesn't say where to get binaries HOT 1
- command not recognized in powershell after install psmsi.msi on windows 7 HOT 6
- Can not download installer HOT 2
- How do I install psmsi? HOT 8
- Unable to find package MSI: How to install? HOT 8
- Cannot load in PowerShell 6 (PowerShell Core) HOT 3
- Remove-MSISource cannot remove a path if it does not exist HOT 1
- WIN7 loads module, but several cmdlets missing
- The process cannot access the file 'C:\Program Files\WindowsPowerShell\Modules\MSI\3.2.26.21626\Microsoft.Deployment.Compression.dll' because it is being used by another process. HOT 1
- Module is not loaded automatically in PowerShell Core
- set target/destination not effect with install-msiproduct HOT 2
- Unable to load module in PowerShell v2 HOT 6
- Unable to install directly from URL HOT 1
- get-msisummaryinfo : A share violation has occurred HOT 6
- Compare-MSIPackage
- services HOT 1
- Support asynchronous install of MSI to allow cancelling of install.
- Invalid Win32-FileTime HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psmsi.