GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Cannot install ScriptCS via Chocolatey for multiple user accounts. · Issue #874 · scriptcs/scriptcs

Cannot install ScriptCS via Chocolatey for multiple user accounts. #874

New issue
Copy link
New issue
Copy link
Closed
Closed
Cannot install ScriptCS via Chocolatey for multiple user accounts.#874
Copy link
Labels
bug
Milestone
v0.13

Description

@aarondandy
aarondandy
opened on Dec 18, 2014
Issue body actions

After ScriptCS is downloaded to C:\ProgramData\chocolatey\lib\ScriptCs... I think chocolateyInstall.ps1 is run which copies the files to the LOCALAPPDATA\scriptcs folder for the current user. This works for the first account but when I log into the system as another user and attempt to install for that user it fails because ScriptCS is already installed. Because of how our security here is set up I can't elevate my account but instead run programs as a different accounts with different privileges. I know this is an inconvenient setup but my employer has lots of computers so I don't think I am unique in this situation.

As a short term (or possibly "short term") work around would it be safe for me to add C:\ProgramData\chocolatey\lib\ScriptCs.{version}\tools\scriptcs to the system path?

Activity

  1. adamralph
    added
    bug
    on Dec 18, 2014
  2. adamralph commented on Dec 18, 2014

    @adamralph
    adamralph
    on Dec 18, 2014
    Contributor
    More actions

    @aarondandy thanks for raising. That's a nasty one. The work around you describe should be just fine. scriptcs.exe doesn't care where it is run from. We should have a think about how to solve this generally, though.

  3. aarondandy commented on Dec 20, 2014

    @aarondandy
    aarondandy
    on Dec 20, 2014
    ContributorAuthor
    More actions

    Would it be crazy to package this into an MSI with WiX and install that way instead?

  4. adamralph commented on Dec 21, 2014

    @adamralph
    adamralph
    on Dec 21, 2014
    Contributor
    More actions

    The problem stems from the fact that we are performing a user specific installation (LOCALAPPDATA) but the installation also has a sytem-wide component (C:\ProgramData\chocolatey), but chocolatey has no facility to repeat just the 'user' part for another user. Or maybe it has, but we're just not using it. We could choose to switch to a pure system-wide installation, but that can be achieved without the use of an MSI. I'd like to avoid MSI creation if at all possible since using WiX is a risk to mental health. I'd prefer to explore other options before considering it.

  5. aarondandy commented on Dec 21, 2014

    @aarondandy
    aarondandy
    on Dec 21, 2014
    ContributorAuthor
    More actions

    Yeah WiX is a pain but if somebody in IT is asked to prepare a system with scritcs and Ruby they would install ruby just fine and then call you back with "WTF is chocolatey and why do I need to type a virus script into powershell to install it?" I think having an MSI release would help with adoption.

  6. adamralph commented on Dec 21, 2014

    @adamralph
    adamralph
    on Dec 21, 2014
    Contributor
    More actions

    That's a fair point, and a reality which is sad in many ways.

  7. tillig commented on Jan 15, 2015

    @tillig
    tillig
    on Jan 15, 2015
    Contributor
    More actions

    Just ran into this myself. Dos there need to be any user-specific portion to the install? If scriptcs doesn't care where it's run from, could it use the built-in Chocolatey mechanism to add a batch redirect to the chocolatey/lib/scriptcs.*/scriptcs.exe?

    I could be over-simplifying here, I just see stuff like the putty.portable package able to put in a near-zero install and magic happens.

  8. adamralph commented on Jan 15, 2015

    @adamralph
    adamralph
    on Jan 15, 2015
    Contributor
    More actions

    @scriptcs/core can anyone chime on this? The choco package was put together before my time.

    I think the current behaviour may have been driven by the desire for the installer to not require admin rights.

  9. aarondandy commented on Jan 15, 2015

    @aarondandy
    aarondandy
    on Jan 15, 2015
    ContributorAuthor
    More actions

    With an MSI it can detect if you are elevated (or ask) and install to the appropriate location. Also, the "this user" or "all users" question can be asked. But that is going down the WiX road. On a related note @dealproc mentioned in JabbR that they have experience with WiX ;)

  10. tillig commented on Jan 19, 2015

    @tillig
    tillig
    on Jan 19, 2015
    Contributor
    More actions

    I found a solution to this (PR #903) by modifying the Chocolatey package contents so the new Chocolatey package should enable a single install on the machine to work for multiple users. No WiX required.

  11. adamralph
    changed the title [-]Install ScriptCS via Chocolatey for multiple user accounts.[/-] [+]Cannot install ScriptCS via Chocolatey for multiple user accounts.[/+] on Jan 19, 2015
  12. aarondandy commented on Jan 19, 2015

    @aarondandy
    aarondandy
    on Jan 19, 2015
    ContributorAuthor
    More actions

    I think that PR closes this issue for sure and will satisfy the majority of people. I still think there will be a small group that for one reason or another will prefer an msi file but I wont push that as I don't think the complexity is worth it. Perhaps a zip distribution would satisfy them as an alternative, should that issue be raised in the future.

  13. khellang commented on Jan 20, 2015

    @khellang
    khellang
    on Jan 20, 2015
    Member
    More actions

    This should be resolved with #903 😄

  14. khellang
    closed this as completedon Jan 20, 2015
  15. adamralph
    added this to the v0.13 milestone on Jan 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      • v0.13

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.