Jump to content











Photo
- - - - -

Error when testing any app script


  • Please log in to reply
49 replies to this topic

#26 paraglider

paraglider

    Gold Member

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

Posted 15 June 2012 - 12:25 PM

You may also see a DRIVERS subkey. Leave that one alone as well. I would suspect the BCD0000.. is the active bcd store and should be left loaded. Hopefully you will not get a bsod on the next boot as you unloaded it.

#27 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 15 June 2012 - 12:27 PM

I download Winbuilder (again) and downloaded the WIN7PE SE Project (Complete) and tried to run the Wallpaper Script.
Error once again:

FileCopy - Failed to copy [C:\Users\AMK\Desktop\thethinker + teknix logo.bmp] to: [%BaseDir%\Target\Win7PE_SE\Windows\System32\winpe.bmp]: The directory name is invalid.

Tired running the BGINFO
script. Error again.
When I click on Customise/Run:

ExtractFile - Failed to expand file: [RunBGInfo.exe] to: [%BaseDir%\Workbench\Common\BGInfo]


Tried running the ShutdownPE script. Error:

RegHiveLoad - Failed to load registry hive: [Tmp_Software] From file: [%BaseDir%\Target\Win7PE_SE\windows\system32\config\software]: Unknown error


Tried running the PreConfig Script. Error:

Wimgapi (v6.0) was not found. Exiting...

Tried running the Explorer Shell Script. Error:

Cannot create file "%BaseDir%\Target\Win7PE_SE\Program Files\PEshell\PEShell.ini". The system cannot find the path specified: [IniWrite,"%targetdir%\Program Files\PEshell\PEShell.ini",Shells,Explorer,%SystemRoot%\explorer.exe]



:'(

#28 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 16 June 2012 - 10:11 AM

Hey Guys.
I tried running Ccleaner's Registry Cleaner and fixed the problems concerned with WinBuilder in the Registry.
I ran the WinPE SE project (untouched one). It built successfully.
But, when I changed the Wallpaper and ran the project. It was successful but the wallpaper didn't change.
The same error about the registry when I run the script alone.
:(

#29 pscEx

pscEx

    Platinum Member

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

Posted 16 June 2012 - 01:13 PM

I tried running Ccleaner's Registry Cleaner and fixed the problems concerned with WinBuilder in the Registry.

:dubbio:
Do me a favour: Do not say "with WinBuilder", say "with the actual WinBuilder project" :cheers:

WinBuilder is a "stupid" batch processor and
  • does, what the project / script author coded
  • omits, what the project / script author forgot to code.
Peter

#30 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 16 June 2012 - 01:20 PM

Alright..
Any more ideas, why i am getting these issues?
I tried a System Restore as well... Still the problem persists

#31 pscEx

pscEx

    Platinum Member

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

Posted 16 June 2012 - 01:36 PM

Any more ideas, why i am getting these issues?

No final idea, we have to test.

I ran the WinPE SE project (untouched one). It built successfully.
But, when I changed the Wallpaper and ran the project. It was successful but the wallpaper didn't change.

.
Do the first build. Then post a (zipped) log, with debug option enabled, and "stop on error" disabled.
Then change the wallpaper, do the second build and post the second log, too.

When there is any "open registry" or "open WIM mount" we can find it in the log.

I tried a System Restore as well... Still the problem persists

Do not try too much to "repair" your system, when the issue only occurs in a WinBuilder project, and nowhere else.

You may come into the situation that you destroyed your running OS.

Peter

#32 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 20 June 2012 - 11:05 AM

Hi and sorry for the sorta late reply.
I did what you asked.


Log for without changing any options - http://www.mediafire...i8xy483p6aigtxc

Log for after changing the wallpaper - http://www.mediafire...d8e118a11pcam7i



I know you didn't ask me to post this:

Log for Only the Wallpaper script - http://www.mediafire...md2eotbsd3e16ib

but I did, just in case.
:)

#33 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 20 June 2012 - 02:18 PM

For your wallpaper, look at the display script in tweaks folder.
In Aero themes, change "2. Display Theme Wallpaper" by "1. Display Wallpaper previously defined".


Otherwise, for your last log, you can NOT execute a script alone on an existing building, files are compressed at the end of building (postconfig script) in a Windows Imaging Format: boot.wim
So the registry hive files: software, default, systeme, can not be found in windowssystem32config.

For other scripts, boot.wim and install.wim files of your win7 source, need to be mounted first, to copy files from these mounted source to your Win7PE.

Shortly: Build a full project.
There are advanced options in Utils folder that you can learn in a second time.

:cheers:

#34 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 23 June 2012 - 12:13 PM

OMG!
Sorry for the "Shouting".. but it worked.
Changing the Options in {Tweaks -> Display} actually made the wallpaper script run on its own without an error or a warning.
I also built the whole project and it worked without any errors.
:D
I can't thank you enough! :)


I then tried adding few features until I got this error:

http://www.mediafire...afd7d5mgu90uevc


{Its something to do with InstallWimSrc not being able to be unmounted.}

Part of the error from the log that I decided to post


       [// Check that the image is well unmounted (some issues encountered sometimes with wimmount driver, who locked the folder)]

       Run - Processing section: [CheckUnMountInstallWim] From file: [%BaseDir%\Projects\Win7PE_SE\Finalize\3-postconfig.script]

                    IF - Directory exists: [%BaseDir%\Mount\Win7PE_SE\Source\InstallWimSrc] evaluated string: [If,ExistDir,%InstallSRC%,Begin]

                    Retrieve - Sucessfully retrieved the directory size from: [%BaseDir%\Mount\Win7PE_SE\Source\InstallWimSrc] to variable: [%ISRCsizeFolder%] with result: [-1549961793]

                          IF - [-1549961793] is not equal to: [0] evaluated string: [If,%ISRCsizeFolder%,Equal,0,Begin]

                          [If,ExistDir,%InstallSRC%,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%InstallSRC%#$q"]

                          [If,ExistDir,%InstallSRC%,Message,"%InstallSRC% Folder can not be deleted !!!#$x#$xExiting...",Error]

                          [If,ExistDir,%InstallSRC%,Halt,"%InstallSRC% Folder can not be deleted. Exiting..."]

                          [DirMake,%InstallSRC%]

                    [End]

                          ELSE - executing command: [Begin]

                          Message: %BaseDir%\Mount\Win7PE_SE\Source\InstallWimSrc Can not be Unmounted or there are files in folder !!! Exiting...

                         %BaseDir%\Mount\Win7PE_SE\Source\InstallWimSrc Can not be Unmounted or there are files in folder. Exiting...

                   Run - Processed section [CheckUnMountInstallWim] in file: [%BaseDir%\Projects\Win7PE_SE\Finalize\3-postconfig.script]

             Run - Processed section [UnMountWim] in file: [%BaseDir%\Projects\Win7PE_SE\Finalize\3-postconfig.script]

              Script time: 4 minutes, 4 seconds and 90 milliseconds



              Finished processing script: 3 - PostConfig





  Project time: 17 minutes, 26 seconds and 557 milliseconds



#35 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 27 June 2012 - 12:23 PM

Hi.
I don't mean to be rude, but..
Its been 4 days... no reply...
:,(

#36 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 02 July 2012 - 12:00 PM

After a bit of research of my own..
I now get this:

3 times Error about unable to unmount installwim.

Imagex.exe doesn't have a program associated with it for performing this action....



I also tried to click the Gooooooo button in the Utils part for InstallWim.

Now .. I am just confused....
:S

#37 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 02 July 2012 - 12:24 PM

Please, as stated above, try the "extract the wim folder" script in Utils folder, to do once, it requires ~10 Gb on your harddisk.
and then, in Images configuration use these extracted folders (checkbox + path).

It is safer with quicker building and it avoids the use of the MS ImageX tools (more precisely wimmount drivers). Therefore no need to use unmount install.wim and boot.wim.
It should work better in your case ;)

:cheers:

#38 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 03 July 2012 - 07:42 AM

Hi.
Thanks for the reply.
I did that already and still get errors.

Log:
http://www.mediafire...7h5km1z4rrwjrkz


Do you want me to upload the step by step procedure of how I do it.
Maybe I'm doing something wrong.
:/

#39 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 03 July 2012 - 07:58 AM

I get two error pop-ups.

First error. Appears two times, after OK is clicked the first time:
http://i1134.photobu...or-twotimes.png


Second error:
http://i1134.photobu...r/scnderror.png

There are no errors in the log, only Warnings... which cause the build to be stopped.

"The build was stopped by a script command"

#40 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 03 July 2012 - 08:23 AM

OK, I think I understand, it seems that you have used the very old server win7pe.winbuilder.net/SE in the download center.
and you end up with incompatible script versions and bugs when building.

The very old server win7pe.winbuilder.net/SE should NO longer exist.
This has been asked SEVERAL times to Nuno and others Admin and I do not know (I prefer not to know) for what BAD reason, they do not want to delete this FAKE adress from the list of servers. Ask them :frusty:.

The ONLY valid address for Win7PE_SE ishttp://w7pese.cwcodes.net/.
Uses the latest package or downloads the updates from this address and continues to use the extracted wim folders :thumbsup:.
It should work better ;)

#41 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 03 July 2012 - 12:28 PM

Hmm....
That's just confusing.
My WinBuilder shows the correct address for WIn7PE_SE:
http://w7pese.cwcodes.net/.

See the snapshot:

Posted Image

#42 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 03 July 2012 - 12:54 PM

After Unchecking more of the options in WinBuilder... This is what happened:

-> I clicked on Play (to start the build)
-> I left it building and left for 10 minutes, as I had some work.
-> When I returned...... The VirtualBox Emulation had already started and I was able to use the Build.
-> After clicking on Shutdown (in the VirtualBox Emulation) ... I opened WinBuilder and saw this Error:
Build Stopped due to an Error (or something like that)
-> I clicked OK.
-> I viewed the log.
-> The log contained 1 Error and 32 Warnings

Error:


FileCopy - Failed to copy [%BaseDir%\Temp\Win7PE_SE\ImDiskExtract\E\sys\i386\imdisk.sys] to: [%BaseDir%\Target\Win7PE_SE\Windows\System32\drivers]: The directory name is invalid.


=============

Logs:

This log was automatically created I guess:
http://www.mediafire...2m62bumzft4847m


I saved this log from the WinBuilder Project:
http://www.mediafire...zo3xwzazc3bl8ph


==============

I unchecked:
-> The Apps Folder (all of it)
-> The OtherOS Folder (all of it)

From Utils Folder, I unchecked:
-> Extract Wim Folder (as I already extracted them)
-> GetWaik Tools (as i already downloaded them)
-> GimageX (just tried)

#43 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 03 July 2012 - 12:59 PM

At one time or another you've downloaded with the old server to have the script 3-PostConfig in Version 18 (as in your log), and your errors are related.

Regardless, downloads the updates on pese.cwcodes.net.servers, it will work better.

#44 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 03 July 2012 - 01:12 PM

Alright then.
I'll delete the whole folder and download the project again.
Should I also get rid of the Windows 7 Professional 32 Bit Folder (which already has the Boot_wim and Install_wim extracted)?
I've got the .iso which I extracted the files from.
What would you recommend..?

I'm gonna download the complete package from the website itself and will update the scripts from the Download Center before attempting to build

Edited by AMK, 03 July 2012 - 01:14 PM.


#45 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 03 July 2012 - 01:39 PM

extract the files from the iso to your hdd, point to that folder and then use the script "extract wim folders" (to find in the utils section)

#46 pscEx

pscEx

    Platinum Member

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

Posted 03 July 2012 - 01:46 PM

@AMK:

Regardless how the current issue will be fixed, but you can save much time by changing one WinBuilder option.

Currently the build aborts, when an error occurs. The above log shows that a failure of ImDisk install ended the build. I do not know win7pese, and therefore I do not know why the emulator started inspite of the abort, but what the emulator showed, was certainly not the ISO created by the current build.

Change the following option:
In the WinBuilder main window, click the "Tools" button in the upper right.
Click the "Options" tab
Uncheck "Stop build on error" in the lower right.

That will cause that the build will be completed including building the final ISO / UFD, even if an error occurs.
In this way you can see "all" errors.
Of course, it depends on the errors whether the emulator will not boot at all, or boots with more or less smaller functionality restrictions.

Peter

#47 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 03 July 2012 - 07:26 PM

Hi again Guys.
It worked....
Just like ChrisR said,
I downloaded the Wiin7PE SE again and began the build.
First, I did it without changing any options. --- Worked!!!
Second, I tried adding a few more options like BGinfo,Net framework, Icon Positions, Calculator etc... --- Worked as well...

Now I'm gonna try adding more scripts one by one just to make sure I don't ruin it again...
:

Anyways, You guys were of Great Help.... All of you..

Once again, Thanks a lot :good:
:clap: :clap: :clap: :clap: :clap:

Its up to you now,
If you want you can close the thread, or leave it open (just in case)
If you choose to close it, then if anything comes up ... I might create a new one, after doing some debugging of my own of course.

:)

#48 pscEx

pscEx

    Platinum Member

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

Posted 03 July 2012 - 07:29 PM

You won your experiences!
:1st:

Peter

#49 AMK

AMK

    Member

  • Members
  • 34 posts
  •  
    Tanzania

Posted 03 July 2012 - 07:34 PM

Yep, mate!
At least now I've got an idea of troubleshooting this.
I started with UBCD4Win, then to PEBuilder and now WinBuilder...
From all of these, WinBuilder is the easiest to use according to me.. Except for the Scripts part...
:(
If only there were millions of Scripters and may be almost... just maybe all the application could be used in the WinBuilder PRoject.

I m gonna give LiveXP a try next ...
;)

Expect to hear from me soon. Lol.

Well, I'm off guys...

#50 pscEx

pscEx

    Platinum Member

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

Posted 03 July 2012 - 07:47 PM

I started with UBCD4Win, then to PEBuilder and now WinBuilder...

I have had several rather educating and productive time with Reatogo :wheelchair: between BartPE :wheelchair: :wheelchair: and WinBuilder :yahoo:

Peter




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users