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

(maint) update installer script #8

Merged
merged 1 commit into from
Sep 2, 2015

Conversation

ferventcoder
Copy link
Member

  • If TEMP variable is null, set a default one.
  • 7zip should not open a window while unpacking
  • Set default installation location for path to updated default location

- If TEMP variable is null, set a default one.
- 7zip should not open a window while unpacking
- Set default installation location for path to updated default location
@dlwyatt dlwyatt merged commit f815fc3 into chocolatey:master Sep 2, 2015
@ferventcoder ferventcoder deleted the update_installer branch September 2, 2015 16:03
@@ -229,7 +232,7 @@ function InstallChoco

# unzip the package
Write-verbose "Extracting $file to $tempDir..."
Start-Process "$7zaExe" -ArgumentList "x -o`"$tempDir`" -y `"$file`"" -Wait
Start-Process "$7zaExe" -ArgumentList "x -o`"$tempDir`" -y `"$file`"" -Wait -NoNewWindow
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlwyatt I was a bit curious if this causes issues...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea. Considering the source of the code, I figured I'd just merge it. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wasn't sure if there was some reason on this NOT to include the output. It gets a bit chatty and not in a verbose logging kind of way. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled down the merge and run some tests, all seems to be well.

The original reason for including the installer script in the DSC was to refactor the use of Write-Host as it isn't support when running under DSC.

I'll look to revisit as may be a more elegant way to work around this to have it pull down the latest installer from chocolatey.org, which would be much nicer. Added it to the issues list #10.

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

Successfully merging this pull request may close these issues.

3 participants