Git Product home page Git Product logo

Comments (8)

heaths avatar heaths commented on June 13, 2024

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.

haggis999 avatar haggis999 commented on June 13, 2024

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.

heaths avatar heaths commented on June 13, 2024

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.

haggis999 avatar haggis999 commented on June 13, 2024

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.

haggis999 avatar haggis999 commented on June 13, 2024

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.

heaths avatar heaths commented on June 13, 2024

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.

haggis999 avatar haggis999 commented on June 13, 2024

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.

haggis999 avatar haggis999 commented on June 13, 2024

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)

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.