Jump to content











Photo
- - - - -

Problems with Runscanner


  • Please log in to reply
9 replies to this topic

#1 Hebination

Hebination

    Newbie

  • Members
  • 10 posts
  •  
    United States

Posted 13 April 2009 - 05:46 PM

I am running Winbuilder 076 and I am trying to integrate Runscanner into my build but it always comes back with the following error during build time:

IF - syntax was not valid: [If,ExistFile,"%BootSRC%\Windows\System32\bcdedit.exe,Require_File,bcdedit.exe]

I don't know what it should read so hopefully I can get some help :) .

#2 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 13 April 2009 - 06:02 PM

Well, the message can be read literally that it is not finding bcd.exe inside the system32 folder of your windows source folder.

This might happen because %BootSRC% is a variable without a properly defined value assuming that the rest of your project is being built correctly.

Just out of curiosity, where have you found this script?

There are some scripts that use an outdated coding, this is clearly mentioned on the section title but a lot of people still try to use them and wouldn't be surprised if this was the case.

It would require the script to be updated.

http://www.boot-land...p;showdlforum=4

:)

#3 Hebination

Hebination

    Newbie

  • Members
  • 10 posts
  •  
    United States

Posted 13 April 2009 - 06:09 PM

Thanks for the swift reply! I got the script here which I thought was the newer version but perhaps not.

http://www.boot-land...mp;showfile=242

#4 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 13 April 2009 - 06:21 PM

Hmm.. you're using the right section.

But are you using a VistaPE project?

This sort of error would also be possible if you're using a XP project.

-------------------

To avoid confusions and a lot of question would you please post your log.html?

This would save us time so that we can read all about project, also, maybe JonF can also help debugging what is happening here since it's his script.

:)

#5 paraglider

paraglider

    Gold Member

  • .script developer
  • 1743 posts
  • Location:NC,USA
  •  
    United States

Posted 13 April 2009 - 11:36 PM

bcdedit is only required if you use the /sv command line option to runscanner. Command line options are described here:

http://www.paraglide.../runscanner.htm

I prefer to use /sd instead of /sv. I use these parameters:

/t 0 /ac /sd /y /m+

instead of

t 0 /sv /ac /sd /y /m+

for remote regedit

#6 Hebination

Hebination

    Newbie

  • Members
  • 10 posts
  •  
    United States

Posted 14 April 2009 - 05:27 PM

Thanks Paraglider, that was the medicine that my build needed!

#7 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 14 April 2009 - 06:02 PM

IF - syntax was not valid: [If,ExistFile,"%BootSRC%\Windows\System32\bcdedit.exe,Require_File,bcdedit.exe]

In spite it may run now, just a reply to the initial question.
The syntax is really wrong. :)
No hint that some file is missing anywhere ...
What is missing, is a quote in the command:

If,ExistFile,"%BootSRC%\Windows\System32\bcdedit.exe",Require_File,bcdedit.exe


Peter

#8 XZed

XZed

    Newbie

  • Members
  • 15 posts
  •  
    France

Posted 14 April 2009 - 08:03 PM

In spite it may run now, just a reply to the initial question.
The syntax is really wrong. :)
No hint that some file is missing anywhere ...
What is missing, is a quote in the command:

Peter


Thank you for your solution ! Just one question, after your solution, i've a new error :

Run - Processing section: [reg_hiveload] From file: [%BaseDir%\Projects\VistaPE-Core\Base\00-api-main.script]
[Parameter] with parameters: [HKU]
[Success] SetVar - Sucessfuly changed the value of [%hive_file%] to: [%BaseDir%\Target\VistaPE-TEST\windows\system32\config\software]
[Info] Loading HKU hive..
[Info] Loading hive from %BaseDir%\Target\VistaPE-TEST\windows\system32\config\software
[Failed] RegHiveLoad - Failed to load registry hive: [wb-hive] From file: [%BaseDir%\Target\VistaPE-TEST\windows\system32\config\software]
[Warning] Halt
Run - Processed section [reg_hiveload] in file: [%BaseDir%\Projects\VistaPE-Core\Base\00-api-main.script]


Any idea :) ?

Thanks you

#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 15 April 2009 - 07:38 AM

[Failed] RegHiveLoad - Failed to load registry hive: [wb-hive] From file: [%BaseDir%\Target\VistaPE-TEST\windows\system32\config\software]

There are three two possible reasons:
  • If working under Vista host you do not run WB as admin (But that should be catched previously)
  • The file ....\software really does not exist
  • This hive is mounted in your local registry, left from a previous crashed or stopped run.
    Then you have to unmount it manually using Regedit.
Peter

#10 XZed

XZed

    Newbie

  • Members
  • 15 posts
  •  
    France

Posted 15 April 2009 - 10:20 AM

There are three two possible reasons:

  • If working under Vista host you do not run WB as admin (But that should be catched previously)
  • The file ....\software really does not exist
  • This hive is mounted in your local registry, left from a previous crashed or stopped run.
    Then you have to unmount it manually using Regedit.
Peter


Thank you very much, in my case, it was the third reason :) !

Thank you very much




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users