Topic: Wrong CodeType  (Read 1255 times)

Wrong CodeType
« on: September 06, 2018, 10:07:29 PM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
Hi,
I get this error

- PEBakery Build <Project Win10XPE> -

<Errors>
- [1] Error in script [auTmer11] (Win10XPE\Apps\XPE Plugin Creator\auTmer11_XPE.Script)
[Error] Error - Wrong CodeType [\Windows\System32\drivers\gm.dls], Only alphabet, number and underscore can be used as CodeType (Line 70)

This is the offending line 70 of the script:
[AddFiles]
\Windows\System32\drivers\gm.dls

Regards

Re: Wrong CodeType
« Reply #1 on: September 07, 2018, 07:30:11 PM »

Homes32

  • Code Baker
  • Chef
  • ***
  • Date Registered: Dec 2010
  • Posts: 177
Hi,
I get this error

- PEBakery Build <Project Win10XPE> -

<Errors>
- [1] Error in script [auTmer11] (Win10XPE\Apps\XPE Plugin Creator\auTmer11_XPE.Script)
[Error] Error - Wrong CodeType [\Windows\System32\drivers\gm.dls], Only alphabet, number and underscore can be used as CodeType (Line 70)

This is the offending line 70 of the script:
[AddFiles]
\Windows\System32\drivers\gm.dls

Regards

It looks like your .script is trying to directly execute the [AddFiles] section (via Run or Exec). This will never work because \Windows\System32\drivers\gm.dls is not a valid command. in the Win10XPE project this section is meant to be read by ExtractSection.exe and fed to wimlib-imagex.exe, not processed by PEbakery or winbuilder.
« Last Edit: September 07, 2018, 09:26:47 PM by Homes32 »

Re: Wrong CodeType
« Reply #2 on: September 07, 2018, 10:36:02 PM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
Actually there were both lines in the script and that is way the plugin worked without error with Winbuilder.  :embarrassed:

ExtractSectionFiles,%ScriptFile%,AddFiles
//--
Run,%ScriptFile%,AddFiles

Solved, thanks.

Re: Wrong CodeType
« Reply #3 on: September 08, 2018, 12:08:00 AM »

Homes32

  • Code Baker
  • Chef
  • ***
  • Date Registered: Dec 2010
  • Posts: 177
Actually there were both lines in the script and that is way the plugin worked without error with Winbuilder.  :embarrassed:

ExtractSectionFiles,%ScriptFile%,AddFiles
//--
Run,%ScriptFile%,AddFiles

Solved, thanks.

thats very odd indeed. at the very least you should have a Unrecognized command: [\Windows\System32\drivers\gm.dls] warning in the winbuilder log.

would you be willing to share your .script for further analysis?

Re: Wrong CodeType
« Reply #4 on: September 08, 2018, 03:56:46 AM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
Yes, for Winbuilder it is an Unrecognized command warning and for Pebakery it is an error.


 

Powered by EzPortal