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

Getting errors on build #4

Open
HylanderJ opened this issue Aug 22, 2018 · 3 comments
Open

Getting errors on build #4

HylanderJ opened this issue Aug 22, 2018 · 3 comments

Comments

@HylanderJ
Copy link

I have been getting this error when trying to use WindowsBuilder. It used to work but doesn't now. I have re-downloaded WindowsBuilder, tried a new install.wim, and all of the built in bsd files, and still get this error. I am running in an administrator command prompt.

Importing helper modules...

  • PSJapson/Lizoc.PowerShell.Japson.dll
  • PSTemplate.psm1
  • WindowsBuilder/WindowsBuildHelper.psm1
    Importing default configuration
    Get-Member : You must specify an object for the Get-Member cmdlet.
    At C:\WindowsBuilder\tools\WindowsBuilder\WindowsBuilder.ps1:38 char:36
  • ... dEnv.registryMountPoint | Get-Member -MemberType NoteProperty | selec ...
  •                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException
    • FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand

Die : An unknown error has occured.
At C:\WindowsBuilder\tools\Builder\Builder.psm1:358 char:25

  •                     Die '' 'InvokeTaskError' -NoWill
    
  •                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Die], Exception
    • FullyQualifiedErrorId : InvokeTaskError,Die

Die : An unknown error has occured.
At C:\WindowsBuilder\tools\Builder\Builder.psm1:358 char:25

  •                     Die '' 'InvokeTaskError' -NoWill
    
  •                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Die], Exception
    • FullyQualifiedErrorId : InvokeTaskError,Die

Die : An unknown error has occured.
At C:\WindowsBuilder\tools\Builder\Builder.psm1:358 char:25

  •                     Die '' 'InvokeTaskError' -NoWill
    
  •                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Die], Exception
    • FullyQualifiedErrorId : InvokeTaskError,Die

[0450:51] Error: At C:\WindowsBuilder\tools\Builder\Builder.psm1:358 char:25 + Die '' 'InvokeTaskError' -NoWill + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: An unknown error has occured.

@imacks
Copy link
Contributor

imacks commented Aug 25, 2018

I'm guessing PSJapson/Lizoc.PowerShell.Japson.dll is not loaded properly, or some problem with the build config files (BSD). To test my suspicion, you can modify the source code to dump the internal data:

[tools\WindowsBuilder\WindowsBuilder.ps1] (line 267)

    # parse!
    $defaultConfig = ConvertFrom-Japson ($defaultBsd -join [Environment]::NewLine)
# add this line
$defaultConfig | ConvertTo-Json -depth 32

@HylanderJ
Copy link
Author

HylanderJ commented Aug 27, 2018

Here is the output of the convert-to-json command

Importing helper modules...

  • PSJapson/Lizoc.PowerShell.Japson.dll
  • PSTemplate.psm1
  • WindowsBuilder/WindowsBuildHelper.psm1
    {
    "build-configuration": "global.bsd",
    "hostOS": "Windows_NT",
    "dirSeparator": "\",
    "windowsBuilderDir": "C:\WindowsBuilder\tools\WindowsBuilder",
    "toolsDir": "C:\WindowsBuilder\tools",
    "rootDir": "C:\",
    "repoDir": "C:\WindowsBuilder",
    "sourceDir": "C:\WindowsBuilder\src",
    "tempDir": "C:\WindowsBuilder\temp",
    "workingDir": "C:\WindowsBuilder\working",
    "mountDir": "C:\WindowsBuilder\working\mount",
    "resDir": "C:\WindowsBuilder\resource",
    "outputDir": "C:\WindowsBuilder\working\output",
    "templateHelperScriptFile": "C:\WindowsBuilder\tools\template_helpers.ps1",
    "registryMountPoint": {
    "Windows/System32/config/COMPONENTS": "HKLM:\svc_components",
    "Windows/System32/config/DEFAULT": "HKLM:\svc_default",
    "Windows/System32/config/DRIVERS": "HKLM:\svc_drivers",
    "Windows/System32/config/SAM": "HKLM:\svc_sam",
    "Windows/System32/config/SECURITY": "HKLM:\svc_security",
    "Windows/System32/config/SOFTWARE": "HKLM:\svc_software",
    "Windows/System32/config/SYSTEM": "HKLM:\svc_system",
    "Users/Default/NTUSER.DAT": "HKLM:\svc_user"
    }
    }

I used an unmodified build config file to eliminate that as the problem. I am still getting the same errors.

@refriedfood
Copy link

I get the same errors. All I really want to do is strip all the crap out of windows OS, disabled certain system componants, install programs so I don't have to reinstall them everytime I reformat, and possibly make a custom installation background... what a pain in the ass.

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

No branches or pull requests

3 participants