Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add cinstm (installmissing) to ask if something is installed and install it if not. #22

Closed
ferventcoder opened this issue May 12, 2011 · 3 comments
Assignees
Labels

Comments

@ferventcoder
Copy link
Owner

The idea here is something like a setup.bat that would ensure a machine is in a state for developing against.

I see this implemented like this:

  • Your source has a setup.bat that points to a powershell script.
    • The powershell script detects the presence of chocolatey and installs it if it is not there.
    • The script asks if things are installed at machine level (cinstm 7Zip) and it looks to see if something is installed. (could include version here and source as well)
    • If it is not installed, it runs install for it automatically.
    • and so on.

the script might look like this (pseudocode):

try {
    & chocolatey
} catch {
    write-host 'Installing chocolatey'
    #take steps to download chocolatey
    #run chocolateyInstall.ps1
}

cinstm 7Zip
cinstm psake
cinstm baretail
@ghost ghost assigned ferventcoder Jun 21, 2011
@ferventcoder
Copy link
Owner Author

Fixed in d40703c - note that I changed this over from cisinst (since that seemed like it was only a query and not a command) to cinstm for install missing.

@ferventcoder
Copy link
Owner Author

This only detects as far as chocolatey installing items. If you have installed by other means that could be future enhancement.

@ferventcoder
Copy link
Owner Author

cinstm msysgit will install mSysGit only once (only if it has not been installed already with chocolatey)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant