Comments (8)
OK - these are actually dynamically generated boxstarter scripts - so I had to manually concenate them anyway because doing them on the boxstarter command line results in trying to install the "temp" named package multiple times.
from boxstarter.
Yeah. Boxstarter does not do any reordering and processes everything top to bottom. I'm assuming the script generation you are referring to is happening on your end?
from boxstarter.
Yes - I have a calling script that concatenates them. Have also worked out a way to reliably have a local include script with my own functions for prompting,etc.
It would sure be nice if when boxstarter receives a list of scripts that aren't npkg files that it would create "temp1", "temp2", "temp3" and then chain them together so that the multiple package support was built in for temporary packages as well :)
from boxstarter.
Hmm. I'm not sure I'm following you. Can you clarify "giving boxstarter a list of scripts?" Maybe provide an example of how you are calling it?
Thanks!
from boxstarter.
So if I do:
Install-BoxstarterPackage @(package1, package2)
Where package1 and package 2 are script files that boxstarter dyamically compiles into the temp package. It seems to compile each script into the same named temp package - every additional one after the first one says that the package is already installed.
from boxstarter.
ahhh. gotcha. Unfortunately Boxstarter handles script files differently than true packages which is not documented and clearly suboptimal. You can work around this however by doing something like this:
@(package1, package2) | % { Install-BoxstarterPackage $_ }
from boxstarter.
I don't think that would persist through a reboot right? Because if script 2 of 5 reboots it wouldn't restart my script that is doing the above loop?
So I am doing this:
@("$PSScriptRoot\script1.txt", "$PSScriptRoot\script2.txt", "$PSScriptRoot\script3.txt") | %{Get-Content $_ | Add-Content "consolidatedscript.txt"}
Install-BoxstarterPackage -PackageName consolidatedscript.txt
from boxstarter.
You are correct assuming you are calling it locally.
from boxstarter.
Related Issues (20)
- PRs (etc) no longer have build logs available
- enable Boxstarter modules to be loaded on Linux systems
- Boxstarter gets installed to top of PSModulePath and overwrites Write-Host HOT 5
- Strange Behavior with PROCESSOR_ARCHITECTURE environment variable HOT 6
- Set-BoxstarterTaskbarOptions - Disable News and Interests Icon
- Bootstrapper is failing with Chocolatey v2.0.0 HOT 2
- Certain Chocolatey commands, such as `choco list`, do not work as intended as parameters are not passed correctly HOT 1
- Boxstarter (weblauncher) always installs latest version of Chocolatey HOT 5
- Boxstarter 3.0.2 install error HOT 3
- Bootstrapping Boxstarter fails due to Chocolatey directory already existing HOT 1
- Allow usage of the chocolatey.org/install.ps1 to be overridden HOT 7
- Deploy Chocolatey 2.3 with Boxstarter
- Optional feature to show/log the reason for rebooting
- Boxstarter fails when chocolatey-community-validation.Extension is installed HOT 1
- Merge individual function scripts into a PowerShell module file HOT 4
- Install-BoxstarterPackage: Errors Array of result object is empty, even if an error occurs HOT 2
- Enable GitHub security and static analysis scanning
- Boxstarter.Winconfig\Install-WindowsUpdate errors out with 0x8002802B (TYPE_E_ELEMENTNOTFOUND) HOT 1
- Package parameter does not work: /nodesktopicon
- Lots of verbose output noise when installing Chocolatey packages using Boxstarter 3.0.3.0 HOT 1
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 boxstarter.