Comments (8)
On Windows 10, open powershell and run the following (much easier to install and update; I'll be removing the MSI eventually anyway):
install-module msi -scope currentuser
from psmsi.
Hi Heath,
Many thanks for the info. I've never dabbled with Powershell before but I managed to open a Powershell prompt and tried running 'install-module msi -scope currentuser'. This prompted me to install something called Nuget. However, when I tried running ' install-module msi -scope currentuser' again it did not generate any message. I was simply returned to the Powershell prompt.
Where do I go from here?
Best regards,
David
From: Heath Stewart [mailto:[email protected]]
Sent: 03 September 2016 17:56
To: heaths/psmsi
Cc: haggis999; Author
Subject: Re: [heaths/psmsi] How do I install psmsi? (#10)
On Windows 10, open powershell and run the following (much easier to install and update; I'll be removing the MSI eventually anyway):
install-module msi -scope currentuser
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #10 (comment) , or mute the thread https://github.com/notifications/unsubscribe-auth/AFEQ4lIbGHZBXTmomVVV1l0yck8c98J5ks5qmaawgaJpZM4JzUqW . https://github.com/notifications/beacon/AFEQ4ipk4sc4Lxu2A9m2fvqMCZVyaCFEks5qmaawgaJpZM4JzUqW.gif
from psmsi.
Nuget is a popular package manager for building solutions - no doubt you'll want to use this with Visual Studio is writing code. The PowerShellGet module (installed with WMF 5 / Windows 10) requires it once to pull from http://powershellgallery.com. Once installed, any module that installs without error should just work. Try running get-msiproductinfo
and that will verify my module is installed.
I recommend reading up on using powershell from Microsoft TechNet. There's lots of good tutorials and large user communities to help as well. Back and forth in a bug reporting system probably isn't the best approach for learning powershell. ;)
from psmsi.
I've always managed to build .NET websites without any obvious need for either Nuget or Powershell, but I'll check them out in more detail when I get the time. My current objective is simply to reinstall VS 2015 on a different drive from the original installation, a process that Microsoft seems to have made much more difficult than I expected.
I was prompted to get Nuget from psgallery. No errors or warnings appeared, so I presume it installed correctly. However, when I ran get-msiproductinfo I was told that "The 'get-msiproductinfo' command was found in the module 'MSI', but the module could not be loaded. For more information, run 'Import-Module MSI'".
Further investigation suggests that I need to change the Powershell execution policy from 'Restricted' to 'AllSigned'. I'm currently working my way through that process...
from psmsi.
I ran Powershell in Administrator mode, which let me change the execution policy from 'Restricted' to 'AllSigned', but nothing relevant is working as the code from psgallery appears to be unsigned. Rather reluctantly, I tried to set an execution policy of Unrestricted, but it was overridden by the system.
No doubt there is a way for me to force an execution policy of Unrestricted, but is this really the recommended approach?
from psmsi.
You'll find many modules unsigned. I recommend 'RemoteSigned' so at least content on UNC paths needs to be signed. If you have some admin policy overriding that, I really can't help you.
For problems with Visual Studio, I recommend you contact Customer Support Services at http://support.microsoft.com. I'm not sure what you plan to do with the module anyway, as it won't necessarily fix the problem that's probably caused by one or more components still installed to your previous drive. This has to be fixed outside the scope of this project.
from psmsi.
I'm only trying to run your module because your blog recommended it as the solution for identifying which installed components are preventing relocation of VS 2015 (ref the link quoted in my OP).
I'm just running vanilla Windows 10 Professional and know nothing about admin policies, but it looks like I will have to do some Googling on that topic, as my attempt to set RemoteSigned was also overridden.
from psmsi.
Hi Heath,
I eventually succeeded in changing the execution policy to 'RemoteSigned' with the help of the following link.
This then let me run the remaining two steps for identifying and uninstalling the component that was preventing the relocation of VS 2015, as per your blog. My original problem is thus resolved. I am very grateful to you for taking the time to generate what was to me a highly obscure solution that I would never have been able to create for myself, and for assisting me in making it work ;-)
That said, I am still puzzled as to why Microsoft makes the relocation of Visual Studio so complicated! It would be far more user friendly if the VS installation procedure was able to identify which components were preventing relocation.
from psmsi.
Related Issues (19)
- Installer/Artifacts HOT 2
- Unable to find package MSI: How to install? HOT 8
- README doesn't say where to get binaries HOT 1
- 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
- How to import from path? HOT 7
- 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.
- command not recognized in powershell after install psmsi.msi on windows 7 HOT 6
- Can not download installer HOT 2
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.