I'm trying to make a simple Boxstarter package that will install a few basics to new machines. Nothing special. I've created a new package as suggested in the docs (using the Boxstarter shell):
New-BoxstarterPackage -Name MyPackage -Description "I hope you enjoy MyPackage"
I've ended up stripping everything I had in tools/ChocolateyInstall.ps1
away and now it just contains:
Write-ChocolateySuccess "A success message"
I've then packaged this with:
Invoke-BoxstarterBuild MyPackage
I've then copied the resulting MyPackage.1.0.0.nupkg
file to a fresh machine that has Boxstarter installed on it and run with:
Install-BoxstarterPackage -PackageName "C:\Temp\MyPackage.1.0.0.nupkg"
This is when I see errors:
ERROR: At C:\ProgramData\chocolatey\lib\tmp4CEB.tmp\tools\ChocolateyInstall.ps1:2 char:647
+ ... ∟MyPackage.nuspec ¢↑( ¶uPKNÄ0♀Ý#q‡¨ˆ;lP&#Ø! ...
+ ~
Missing closing ')' in expression.
At C:\ProgramData\chocolatey\lib\tmp4CEB.tmp\tools\ChocolateyInstall.ps1:2 char:651
+ ... Package.nuspec ¢↑( ¶uPKNÄ0♀Ý#q‡¨ˆ;lP&#Ø!ħ,× ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
If I open the version of ChocolateyInstall.ps1' from
C:\ProgramData\Boxstarter\BuildPackages\tmp4CEB.tmp\tools`, it looks corrupt:
It also looks like it contains some XML. What am I doing wrong?