Jump to content











Photo
* * * * * 2 votes

My personal script collection working with Win7RescuePE


  • Please log in to reply
142 replies to this topic

#1 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 10:14 AM

Hi all,

This week I was working on a project to replace my BartPE environment with a more recent solution so I decided to go for Win7RescuePE. I did a lot of new script for myself (basically all based on the same script framework).

Something I never liked about the scripts is that they come with pre-bundled binaries. From my point of view it makes it difficult to maintain the scripts and they get outdated quite quickly. So my approach was to write the scripts in a way that they can work with future releases too and at runtime (or on user request) update themselves. With most applications I've been quite successful. I also tried to keep the scripts generic in order that it's very likely that future releases of the applications are supported too by simply updating the download URL.

So I would like to share my results in the hope that somebody might find one or another script useful.

New Scripts.
These scripts are not part of Win7RescuePE - maybe some of the applications are available as scripts already but especially I did not find them with a download feature which from my point of view makes it much easier to keep the files up to date. In addition this keeps script download size very small. So all the scripts together are less than 1MB in size but if you build it it will create a WinBuilder image of about 1.5GB in size including all applications. The only embedded files are supplementary files required to deal with the downloaded sources.

- UnknownDevices
- Auslogics Defrag
- FreeCommander
- WinDirStat
- XnView
- Firefox
- IP-Tools (KS-Soft)
- LanSpy
- MiTeC Network Scanner
- PuTTY
- Skype
- Thunderbird
- WinSCP
- Wireshark
- WinPcap
- Convert
- HxD Hex Editor
- MiTeC Hex Editor
- MiTeC Mail Viewer
- OpenOffice.org
- WinMerge
- PC Inspector File Recovery
- TestDisk & PhotoRec
- Foundstone Conficker Detection Tool
- John the Ripper
- PasswordsPro
- Sala's Password Renew
- SAMInside
- BlueScreenView
- CPU-z
- Drive Snapshot
- Java Runtime Environment
- MiTeC Registry Recovery
- Process Explorer
- Process Monitor
- RegAlyzer
- DiskSpeed
- MonTest

Modified scripts:
These scripts are part of Win7RescuePE and have been modified. Usually the modification is only related to the download feature. The script does not include any "hard-coded" files any more. This allows one ot update the download URL to update the package (as long as the installer is not changed by the project too much).

- Avira
- Works with AntiVir 9
- Configurable download URLs
- If update is selected updates program and signatures
- Fixed possible If-end-else syntax problems
- Using built-in CopyProgram API
- Modularized script (cleans up process)
- Automatic start menu folder creation (optional)
- Spybot - Search & Destroy
- Full automatic download from Internet (no included files needed)
- Configurable download URLs
- Automatic start menu folder creation (optional)
7-Zip
- Full automatic download from Internet (no included files needed)
- Enhanced Context Menu - Support for Drives
- Automatic start menu folder creation (optional)
InfraRecorder
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)

HDD Scan
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
FileZilla
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
Opera USB
- Can replace the opera package
- Full automatic download from Internet (no included files needed)
SoftPerfect Network Scanner
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
Recuva
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
Restoration
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
NTPWEdit
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
Agent Ransack
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
Dependency Walker
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
UniExtract
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
- Some Script re-structuring
- Fixed registry when program is written to another program folder
UnstoppableCopier
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
- Some Script re-structuring
Q-Dir
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
a43
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
- Added automatic language download
Super Finder XT
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
HDD-Scan
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
WinDLG
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
MbrFix
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
SumatraPDF
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)
SystemExplorer
- Full automatic download from Internet (no included files needed)
- Automatic start menu folder creation (optional)


In addition I've modified some included scripts to fit my needs (maybe somebody finds it useful too).
Grub4DOS
- Allows to set colors in graphical mode
- Allows to select a skin (*.gz) instead just the built-in
- No built-in skins
- Direct download of binaries from Sourceforge
Memtest86+
- Direct download of required binary
- Integration into grub menu.lst
- Should automatically support future versions
Parted Magic
- Direct download of required binaries
- Integration into grub menu.lst
- Hopefully automatically supports future versions
PostConfig
- Added compression selection
CreateISO
- Removed Grub4Dos code and boot manager attachments
- Just does a single task: Packing the ISO



A general problem I faced with my Java RT script is that Environment variables set within the registry "HKLM\System\ControlSet001\Control\Session Manager\Environment" are set properly via peldr but not applied. As a work-around I've created an Environment Fix script which places a shortcut on the desktop. It simply runs "setx.exe" (needs Win7 DVD) which seems to make Windows re-read the environment variables.
I've tried as well to add a "setx.exe" program using "AddAutoRun" or "AddPostConfig" but at this stage it does not seem to work as expected - setx.exe only works when run from running (Explorer) shell. Maybe Joshua can have a look at it. The problem with this issue is that I cannot set JAVA_HOME as a new environment variable and I have to append %JAVA_HOME%\bin to the PATH (I cannot use RegAddBoot since this will overwrite the PATH, so I have to read it during build and append using a variable which is expanded at run-time. So JAVA_HOME should do the trick but it does not work because JAVA_HOME is not read and not exported to the process environment.

So the only work-around for the moment is to manually run the environment fix from Explorer at run time.

The same applies to the CDDrive variable. It is expanded by peldr when using it wihtin a RegAddBoot line but using %CDDrive% within any script will fail because it's not available to the process environment unless setx.exe is used.
I've noticed too that when running Win7PE (yes I was using Win7PE before I moved to Win7RescuePE) %CDDrive% is not set but %PEDrive% instead. This is quite bad because the script would have to support both. I would suggest that peldr sets CDDrive in any case and just set PEDrive in case of USB configuration. This allows one to detect if the application is run from USB if necessary (PEDrive present) but does not break programs relying on CDDrive.


Is there any space to upload such script collections? Since there is a limit of 1MB for attachments in the forum I had to delete script attachments from other posts I've made already. My space is now totally used up, so if I have to upload something new I will have to delete this script collection. I am still a bit confused about the structure and the right way to contribute...


HOW TO USE IT
I am including a few words on how to use it here since I was asked several times how these scripts are used. The answer I posted on page 9 but decided to put it here too for easy reference...

Here is a log how I built it:
  • Download WinBuilder 0.78 SP4 and extract the archive
  • Run WinBuilder.exe
  • In the Main windows (Download Center) enable any project (is it a bug that the icons on the right only appear when a project is selected)?)
  • Deactivate the project you selected and instead click on the topmost icon to the right of the project list (Add new web server)
  • Enter "joshua.winbuilder.net/Projects"
  • Download all scripts you would like to use (note, if you're going to use my script set you might disable some large scripts like Apps/Net/opera, Apps/Security/Antispyware/SpybotSD, Apps/Security/AntiVirus/Avira and probably more) - if in doubt just download everything.

Now you're ready to configure Win7RescuePE. I will describe here how to integrate my script set and to configure Win7RescuePE in one step:
  • Download and extract my script set provided in this thread (first post)
  • Overwrite the contents of the "Projects/" folder with the content provided in my archive. Don't worry, it will not overwrite any scripts or files, it just adds some tools to the "Tools/" folder as well as a "Skybeam" sub-folder to the "Win7RescuePE/" folder.
  • Now re-launch WinBuilder

Now the configuration...
You should see WinBuilder which shows the Win7RescuePE project as you downloaded it. In addition there should be a couple of "Skybeam/" folders visible in the root folder of WinBuilder. I will start from top telling you which changes you should do to the script in order to get it built correctly
  • Click on the "Source" button on top
  • Enter path to your Windows 7 32-bit DVD in "Source directory"
  • Clickk on "Script" to get back to script mode
  • Click on "Configuration", I just did small changes here:

    • Screen resolution: 1024x768 (well, your taste)
    • Disable the "Enable loader hidden menus" option (well, I don't like hidden stuff)
    • Hardware detect modus: 3 (I don't like to do this manually every time)
    • Don't forget to click "Save"

  • Open "Build/PreConfig"

    • Click "Get Info"
    • Select your Install.wim image ("5: Windows 7 ULTIMATE" in my case)
    • Select your Boot.wim image ("2: Microsoft Windows Setup (x86)" in my case)
    • Click "Check Source" to verify your configuration

  • Open "Build/Copy Files"

    • Enable "Addition fonts"
    • Enable "Some recovery tools (requesting MS Win7 DVD)" (there is a typo in "reguesting" ;-)
    • Enable "Other Language Files"

  • I left the "Shell" Script disabled
  • Enable the "Skybeam/Base" folder (all scripts)

    • You might customize the Grub4DOS script as you like
    • Change "Locale settings" as you like

  • Keep the "Addons/MMC" script enabled
  • Keep the "Net/Extra NIC Drivers script" enabled
  • Keep the "PENetwork Beta V5t" enabled

    • I checked the "Check for newer version of PENM online" option and left the remaining options untouched

  • All other "Net/*" were left disabled (I don't need them)
  • I left all scripts in the "Tweaks/" folder enabled
  • Disable all "Apps/" scripts of Win7RescuePE
  • Re-enable Apps which you would like to use but are not part of my script collection. I've enabled the following only:

    • "Apps/Net/Remote Connect/Remote Desktop Connection"
    • "Apps/Security/Antispyware/HijakThis! V2.0.2" (not part of my script collection)
    • "Apps/KeyFinders" (all) (not part of my script collection, no official download URL)
    • "Apps/System/Pserv V2.7" (not part of my script collection)
    • "Apps/System/Xchm 1.9" (not part of my script collection)

  • Now enable all "Skybeam/App" scripts (or of course only the ones you would like to use)
  • Now enable all "Skybeam/OtherOS" scripts (or of course only the ones you would like to use)
  • Make sure "OtherOS/Parted Magic Linux" is disabled if you're enabling my "Skybeam/OtherOS/Parted Magic Linux" script (they conflict)
  • Now enable all "Skybeam/Finalize" script
  • Make sure "Finalize/*" scripts are disabled - they will screw up the GRUB configuration written by my scripts
  • If you would like to generate an ISO image use my "Skybeam/Finalize/Create ISO" script instead of the "Finalize/Create ISO" script included in Win7RescuePE
  • I left the "VirtualTest" scripts disabled

Note:
Some download links might fail due to cookie or referer protection or similar. In such cases go to the download page, click on the download link and then insert the link into the field within the script - or just disable the script which fails to download its dependencies.

Note:
To speed up the process of downloading you might select all my script once and click on the "Download/update now" button on the script before building the whole package. This will safe you from having to start over and wait half an hour just to find out that after fixing one URL it fails with the following one.

It sounds quite complex but actually the rule how to use the scripts is quite easy. You might mix Win7RescuePE with my script set. If there is a "conflicting" script just make sure either to use my modified one or the one included in Win7RescuePE - but not both. As I changed/fixed some things in the GRUB configuration building in order to allow dynamic plugging of other OS I recommend to use my finalization scripts instead of the included "Finalize" scripts.

2010-08-19
==========
- Updated innounp to version 0.33
- Updated InfraRecorder to version 0.51
- Updated Firefox to version 3.6.8
- Unattended local installation of latest FlashPlayer added.
- Added possibility to pick up local FlashPlayer version
NOTE: New Flash installer cannot be extracted and therefore it's not
possible to download and extract the plugin automatically.
- Updated Opera portable to version 10.61
- Updated Thunderbird to version 3.1.2
- Updated CPUID Hardware Monitor to version 1.16
- Updated Wireshark to version 1.2.10
- Updated Recuva to version 1.38
- Updated CPU-z to version 1.55
- Updated Parted Magic to version 5.2
- Updated Memtest86 to version 4.10
- Updated VLC to version 1.1.3
- Updated FileZilla to version 3.3.4.1
- Updated WinSCP to version 4.2.8
- Updated Sumatra PDF to version 1.1 and using wget.exe to download
- Updated WinMerge 2.12.4 download URL
- Updated PC Inspector file recovery download URL, added referer and WGet
- Updated download URL ofr RegShot 1.8.2
- Updated download URL of Resolution Changer 1.0.0
- Updated Runscanner to version 2.0.0.47
- Updated SystemExplorer download URL
- Updated Grub4DOS download URL
- Updated cwRsync download URL
- NEW: Nirsoft ProductKey

Update 2010-05-13 17:00:
- Win7PE_SE should be supported too - Win7RescuePE still recommended
- Avira Script updated, now includes all CRT dll's
(Works for me currently but might require additional testing)
Caution: Avira requires to start network support before you start Avira or
it crashes!
- Universal Extractor updated to version 1.6.1
- FreeCommander updated to version 2009.02a
- MBRFix download URL updated
- Q-Dir updated to latest version
- FastStone Image Viewer updated to version 4.1
- VLC updated to version 1.0.5
- FileZilla updated to version 3.3.2.1
- Firefox updated to version 3.6.3
- Firefox Flash plugin updated and inclusion of dependency DLL fixed
- Opera updated to version 10.53
- Opera configuration fix added (fixing operaprefs_default.ini)
- Thunderbird updated to version 3.0.4
- WinPcap fixed to include correct DLLs (hopefully... it's quite tricky)
- WinSCP updated to version 4.2.7 portable
- Wireshark updated to version 1.2.7
- Updated LanTricks LanSpy pakcage (just cosmetical)
- Added LanTricks LanCalculator
- Updated SumatraPDF to version 1.0.1
- Updates WinMerge to version 2.12.4
- Updated Recuva to version 1.37
- Fixed John The Ripper and updated download URL
- Updated NTPWEdit download URL
- DriveSnapshot moved to disk tools
- CPU-z updated to version 1.54
- Added /accepteula parameter to ProcessExplorer
- Added /accepteula parameter to ProcessMonitor
- Updated Download URL of SystemExplorer
- Added Resolution Changer version 1.0.0


Update 2009-09-20 22:44
- Tried to enable multi-language support in DirectX11 script (note, it' maintained by YahooUK, not me)

Update 2009-10-06
- (Hopefully) fixed UnixTimestamp creation

Update 2009-10-07:
- Added Notepad2 (including shell integration)
- Added Windows Firewall Work-Around
Windows firewall service is set to disabled in 2-Config.script but somehow it's still active and the machine does not allow any incoming connections. To work-around this issue you need first to configure the network (PENetwork) an then set the firewall service (MpsSvc) to "manual" and then use "net start MpsSvc". Note that the start of the service will fail but afterwards it seems to be disabled correctly and incoming connections are allowed.
To do this semi-automatically I've created the WindowsFirewallControl.script Script. It sets MpsSvc to "manual" and places two shortcuts in the start-menu and/or on desktop. One to start the firewall and one to stop. So to get incoming connections working you just need to run PENetwork and then use the "Windows Firewall enable" shortcut and wait for it to fail and you're done. If at one point in time the firewall service will work correctly the shortcuts can be used to enable/disable the firewall.

Update 2009-12-30:
- Updated CPUID Hardware Monitor download URL for version 1.15
- Updated FastStone Image Viewer download URL for version 4.0
- Updated VLC download URL for version 1.0.3
- Updated FileZilla Client download URL for version 3.3.0.1
- Updated Firefox download URL for version 3.5.6
- Updated Opera USB download URL for version 10.10
- Updated Thunderbird download URL for version 3.0 (warning, untested yet)
- Updated WinPcap download URL for version 4.1.1
- Updated WinSCP download URL for version 4.2.5
- Updated Wireshark download URL for version 1.2.5
- Updated SumatraPDF download URL for version 1.0.1
- Updated MemTest86+ download URL for version 4.0.0
- Updated Parted Magic Linux download URL for version 4.8
- Updated CPU-z download URL for version 1.53
- Updated SystemExplorer URL for version 2.0.5 and switched to portable ZIP version
- Updated InnoUnp tool to version 0.27

Update 2009-12-31:
- Updated InnoUnp tool to version 0.27 (this time really)
- Fixed copy/paste bug in Spybot script

NOTE:
I was notified that downloading the attachment of this post is not working. I tried to re-upload the file but it fails. It seems the upload function is not working at the moment. For anybody interested in downloading the archive please fetch it from here.

#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 20 September 2009 - 11:29 AM

Is there any space to upload such script collections? Since there is a limit of 1MB for attachments in the forum I had to delete script attachments from other posts I've made already. My space is now totally used up, so if I have to upload something new I will have to delete this script collection. I am still a bit confused about the structure and the right way to contribute...

I hope (no offence intended B)) that the thing you deleted were valueless. :cheers:

Next time, before deleting ANYTHING, try PMing me, I will ask Nuno if he can manage to either:

Temporarily, and until one of the above is set up, you can use an external hosting site allright :cheers:, posting on the board just a link to it.

:loleverybody:

jaclaz

#3 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 11:40 AM

I hope (no offence intended :cheers:) that the thing you deleted were valueless. :loleverybody:


Oh, not really valueless I think. However I've updated the posts too that the scripts are included in the attachment to this post. So the content is of course not lost.

Previous posts:
CPU-z Plug-in
DriveSnapshot Plug-in
UnknownDevices Plug-in
RegAlyzer

After that I got tired uploading independent scripts with a 1-minute forced timeout in between. So I continued to finish all scripts and then zipped and uploaded here.

Temporarily, and until one of the above is set up, you can use an external hosting site allright B), posting on the board just a link to it.


Well, this is for sure not good for versioning. It will just lead to various versions of the scripts floating around.
In best case I would like to contribute to existing projects (having write access in some directories). But it seems that the repositories are managed by single people in most cases. This spreads the scripts over various locations while the same script is duplicated (of course in different versions) over multiple projects. A central repository with version menagement (CVS/SVN/git) could be useful to post scripts and to enhance collaboration.

For example I've tested my scripts with Win7RescuePE now. Somebody might add some code to make it compatible with other project(s). So as long as he's not sending it back to me I will not update it and suddenly there will be multiple versions for different projects floating around. While a single script could be written to support all projects.

So now I am going to look for the "old skin" of the forum again. The default style is just unreadable and chaotic for my eyes... :cheers:

#4 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10554 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 20 September 2009 - 11:46 AM

This seems like a very valid contribution to our community so I'd see no objections to give your personal work place inside the server.

Please get in contact with me: mail@nunobrito.eu so that I can pass your new account details.

-------

About adding more room to attachments inside the forum, this is a necessary measure to keep the database light. For bigger files it's preferable to manage them by FTP and assign websites to developers.

:loleverybody:

#5 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 20 September 2009 - 12:05 PM

So now I am going to look for the "old skin" of the forum again. The default style is just unreadable and chaotic for my eyes... B)


It would be nice if you would sport the light blue ribbon too :loleverybody: :
http://www.boot-land...amp;#entry76483

@Nuno
Posted Image

:cheers:

jaclaz

#6 paraglider

paraglider

    Gold Member

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

Posted 20 September 2009 - 12:07 PM

setx broadcasts a WM_SETTINGCHANGE message to all top level windows. Explorer processes this broadcast and reloads its copy of the environment variables from the registry. Explorer is one of the few processes that process this broadcast. It should be possible to autorun setx from a shortcut in the startup folder.

Would be useful if win7peldr wrote the value of %CDDrive% into [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment] or [HKEY_CURRENT_USER\Environment].

#7 paraglider

paraglider

    Gold Member

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

Posted 20 September 2009 - 12:14 PM

I hope you are not confusing runscanner ( similar to sysinternals autoruns and also hijackthis ) from http://www.runscanner.net/ with my runscanner program ( registry redirector )( which came first ) and is available from www.paraglidernc.com

#8 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 01:42 PM

This seems like a very valid contribution to our community so I'd see no objections to give your personal work place inside the server.

Please get in contact with me: mail@nunobrito.eu so that I can pass your new account details.


Thanks for the offer. First I would like to see people reactions on this scripts and then let's see if some of them will be made "official". I already got some webspace, this is not my primary problem here. I could put the files on my server too but spreading the scripts over various locations is not a solution from my point of view. Lots of people will just re-invent the wheel over and over again not knowing that a script for his favorite application already exists somewhere.

So let's await some comments first :loleverybody:

#9 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 20 September 2009 - 02:21 PM

your PartedMagic-script ist not working properly if it also should download the latest version.
ATM I try your scripts and it downloads pmagic-4.4.iso, but the newest version is pmagic-4.5.iso

I'll post more results after testing a while

Edit: even if I press "Update/Download" in the script it downloads version 4.4

#10 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 20 September 2009 - 02:33 PM

directx11.script:
there are the typical language problems as mentioned already here:
http://www.boot-land...?...ost&p=77424
for me (german source) I have to change all en-US-parts in the script to de-DE and then the script works. I hope that YahooUK will fix this language problem soon :loleverybody:

#11 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 02:57 PM

your PartedMagic-script ist not working properly if it also should download the latest version.
ATM I try your scripts and it downloads pmagic-4.4.iso, but the newest version is pmagic-4.5.iso

I'll post more results after testing a while

Edit: even if I press "Update/Download" in the script it downloads version 4.4


Cool; That's a great opportunity to test my thesis that the script should work with future versions too. PM 4.5 has been released this week so my script was still using 4.4 download URLs.

Unfortunately this seems to be one of the examples where it might fail. The reason is that (even the script I derived from) used pmagic/pmodules/pqmagic.sqfs to detect that the file is available. Unfortunately the PM project seems to have decided to rename "pmagic.sqfs" to "pmagic-4.5.sqfs".

So I decided now to check for "bzImage" which hopefully does not change its name (kernel). Please find an updated script within the first post attachment (I will update in a minute).

#12 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 03:01 PM

directx11.script:
there are the typical language problems as mentioned already here:
http://www.boot-land...?...ost&p=77424
for me (german source) I have to change all en-US-parts in the script to de-DE and then the script works. I hope that YahooUK will fix this language problem soon :loleverybody:


Well, I just included it because Skype was claiming about dsound.dll which is obviously included in DirectX11 package. If I find some time I will either update the DirectX11 package or add the required files to Skype (might not need all files but only dsound and some stuff. So if you don't need Skype feel free to disable DirectX11 package too I don't think any of the others need it.

#13 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 20 September 2009 - 04:56 PM

  • directx.script
    the variable %DistLang% is used in the 0-preconfig.script, an elegant way to have the correct language version is to change all language entries (en-US or de-DE) by %DistLang%. This works for me like a charm.
  • [Failed] List index out of bounds (1): [Else]
    some scripts throw these fault: 7-Zip.script, InfraRecorder.script, UnknownDevices.script, FileRecovery.script, CPU-z.script, DriveSnapshot.script
  • Download probs
    [Failed] (SumatraPDF.script) WebGet - [http://kjkpub.s3.ama...aPDF-0.9.4.zip] to directory: [%BaseDir%\Temp\SumatraPDF\download.zip] HTTP/1.1 400 Bad Request
    [Failed] (PCInspectorFileRecovery.script) WebGet - [http://mirror.filecl...e_Recovery.exe] to directory: [%BaseDir%\Temp\PCInspectorFileRecovery\filerecovery.zip] HTTP/1.1 403 Forbidden
  • Copy problems
    [Failed] (Skype.script) DirCopy - Failed to copy directory [C:\Programme\Skype\Phone\*] to: [%BaseDir%\Workbench\Common\Skype]: + s
  • missing Visual c++ runtime
    for the openoffice- and wireshark-script, visual c++ runtime is needed. It is not mentioned in script-description (like in the antivir-script).
  • Maybe problems in scripts
    [Failed] (JavaSE-RunTime.script) Run - Failed to find section [Update] in file: [%BaseDir%\Projects\Win7RescuePE\Apps\System\JavaSE-RunTime.script]
    [Warning] (7-Zip.script) Syntax was not valid: [Reg_Add,0x3,"%reg%\Software\7-Zip\FM","FolderShortcuts"]
    [Warning] (FastStone Capture) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
    [Warning] (FastStone Capture) Error preparing template
    [Warning] (XnView) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
    [Warning] (XnView) Error preparing template
    [Warning] (Firefox) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
    [Warning] (Firefox) Error preparing template
    [Warning] (Skype) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
    [Warning] (Skype) Error preparing template
    [Warning] (WinPcap.script) Syntax was not valid: [RegWrite,HKLM,0x0,"WB-Setup\ControlSet001\Enum\Root\LEGACY_NPF\0000\Control"]
    [Warning] (SumatraPDF) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
    [Warning] (SumatraPDF) Error preparing template
    [Warning] (PC Inspector File Recovery) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
    [Warning] (PC Inspector File Recovery) Error preparing template
    [Warning] (Java Runtime Environment) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
    [Warning] (Java Runtime Environment) Error preparing template

I'll add a log later if I found webspace that I can use for it

#14 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 20 September 2009 - 05:11 PM

Maybe it's surfacing back my original (dinosaur's ;)) idea that automated downloading from hardcoded internet paths pointing to sites on which you have no control over (files moved/removed/renamed/new versions, etc. etc.) it's only seemingly smart and useful :loleverybody:, in the sense that unless the .script is constantly updated, checking every single day if the "targets" still exist and modifying continuously the base .script (and of course unless the user doesn't continuously re-download the .script in the updated version problem won't be solved anyway), leads to a number of "short-lived" fully working .scripts.

B)

:cheers:

jaclaz

#15 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 20 September 2009 - 05:36 PM

@jaclaz : I agree with you. I only use scripts that works fine. When these programs are updated, I first test them and if there are no problems, I take them for my project.
That means for me: my programs are eventually not up2date but working and this is more important.
With these automated updates I have no control of what will be in my built.
Btw imho the need of controlling and correcting the download links is as much time intensive as manually updating the scripts. But some of the presented scripts are interesting and I think I will modify them for my needs

@SkyBeam :
some thoughts concerning the grub4dos.script
negative values for the counter are not really senseful. My modified entry looks like this (no counter if checkbox is unchecked, values for the NumberBox: 1 to 30 with 1 as step):
[Interface]
pCheckBox15="Timeout",1,3,260,425,130,18,False
pNumberBox2=pNumberBox2,1,2,400,425,40,18,5,1,30,1

[Grub4DosMGR]
If,%pCheckBox15%,Equal,True,Begin
TXTAddLine,"%MenuFile%","timeout %pNumberBox2%","Append"
TXTAddLine,"%MenuFile%"," ","Append"
End

#16 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 20 September 2009 - 06:16 PM

Noticed the following under PE ...
SoftPefect-NetworkScanner : want to start and I get the following message: "netscan.exe not found"
FastStoneImageViewer : want to start and I get the following message: "msacm32.dll is missing"

#17 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 06:26 PM

Maybe it's surfacing back my original (dinosaur's ;)) idea that automated downloading from hardcoded internet paths pointing to sites on which you have no control over (files moved/removed/renamed/new versions, etc. etc.) it's only seemingly smart and useful :loleverybody:, in the sense that unless the .script is constantly updated, checking every single day if the "targets" still exist and modifying continuously the base .script (and of course unless the user doesn't continuously re-download the .script in the updated version problem won't be solved anyway), leads to a number of "short-lived" fully working .scripts.


Well my scripts are "slightly" more smart. They only do a download once - and then store it within the global templates folder. After downloading you can re-build your WinPE over and over again (without a single file re-downloaded). If you want WinBuilder to re-download on every build there is a checkbox in each script which allows you this - but this requires that all download URLs are available at build time. If you do not enable it then you just go through the list of script and click download on each of them, then you start a full build and it will run through.

So currently my templates folder includes 1GB of downloaded binaries and does build "offline" unless I am manually clicking on update on any of the scripts.

So you just once need to find a working download URL. Unfortunately for some applications it's difficult. Especially if it's only available at some download sites where you get a volatile URL which is valid only a few minutes or just for your IP-address.
I fully agree that this is not 100% fool-proof but it has some clear advantages when updating.

#18 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 08:09 PM

some thoughts concerning the grub4dos.script
negative values for the counter are not really senseful. My modified entry looks like this (no counter if checkbox is unchecked, values for the NumberBox: 1 to 30 with 1 as step):


Thanks, makes sense and allows one to disable the timeout completely. However a maximum of 30 seems to be a bit too restrictive to me. I've increased it to 300. Will be included in my next update.

#19 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 08:17 PM

Noticed the following under PE ...
SoftPefect-NetworkScanner : want to start and I get the following message: "netscan.exe not found"
FastStoneImageViewer : want to start and I get the following message: "msacm32.dll is missing"


Under which *PE?

I stated that I did my tests under Win7RescuePE (with native Windows 7 DVD, not just WAIK) and I can confirm that both applications are working properly. Only FastStone ImageViewer shows a notice at start: "The system cannot find the drive specified." Maybe that could be changed by configuration, I did not investigate yet.

On other systems than Win7PE "netscan.exe" as well as "msacm32.dll" might have to be added manually.

#20 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 20 September 2009 - 08:26 PM

I use Win7RescuePE with waik installed (as described by Joshua) and Win7 RTM Ultimate as source. Building platform is winxp pro sp3.
Also my second built has the same errors.

#21 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 08:38 PM

directx.script
the variable %DistLang% is used in the 0-preconfig.script, an elegant way to have the correct language version is to change all language entries (en-US or de-DE) by %DistLang%. This works for me like a charm.


Replaced 60 ocurrences of en-US by %DistLang%. Let's include it in the next update...
However the script is "maintained" by YahooUK, so I am not taking responsibility.

[Failed] List index out of bounds (1): [Else]
some scripts throw these fault: 7-Zip.script, InfraRecorder.script, UnknownDevices.script, FileRecovery.script, CPU-z.script, DriveSnapshot.script

Strange, could not verify this here. Using WinBuilder 078 SP1 and latest Win7RescuePE.


Download probs
[Failed] (SumatraPDF.script) WebGet - [http://kjkpub.s3.ama...aPDF-0.9.4.zip] to directory: [%BaseDir%\Temp\SumatraPDF\download.zip] HTTP/1.1 400 Bad Request


Just tried to download using the URL in Firefox and updated using the "Download/Update now" button - both worked. Probably temporary error?

[Failed] (PCInspectorFileRecovery.script) WebGet - [http://mirror.filecl...e_Recovery.exe] to directory: [%BaseDir%\Temp\PCInspectorFileRecovery\filerecovery.zip] HTTP/1.1 403 Forbidden


This one was a problem. It seems that the download server only allows one download or just for your host - direkt linking is not allowed.
You could go here, click on "Download" and then copy the download-link you get to the URL text box in WinBuilder, then click Download and this URL will work for you. - Don't check the "always update on build" check box.

If somebody has a permanently working direct download link please post.

Alternatively you can install it locally and let WinBuilder include it from your local installation folder (that's actually why I added this option too).

Copy problems
[Failed] (Skype.script) DirCopy - Failed to copy directory [C:\Programme\Skype\Phone\*] to: [%BaseDir%\Workbench\Common\Skype]: + s


Do you have skype installed on your local machine? The Skype script takes the "skype.exe" binary from your local machine (you can specify the path). Please install Skype first.

missing Visual c++ runtime
for the openoffice- and wireshark-script, visual c++ runtime is needed. It is not mentioned in script-description (like in the antivir-script).


For Wireshark you're right. It either requires you having installed Wireshark on the local machine or having Visual C++ Runtime version 30729.4148 installed by another aplication (which is very likely the case). If not, then you can just install Wireshark once on the local machine. I've added a notice to the script.

For OpenOffice.org such a hint is not requires since the script cannot automatically unpack the download. It needs a local installation and if you have one you will have the correct runtime anyway (which is then included by the script).


Maybe problems in scripts
[Failed] (JavaSE-RunTime.script) Run - Failed to find section [Update] in file: [%BaseDir%\Projects\Win7RescuePE\Apps\System\JavaSE-RunTime.script]
[Warning] (7-Zip.script) Syntax was not valid: [Reg_Add,0x3,"%reg%\Software\7-Zip\FM","FolderShortcuts"]
[Warning] (FastStone Capture) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (FastStone Capture) Error preparing template
[Warning] (XnView) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (XnView) Error preparing template
[Warning] (Firefox) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (Firefox) Error preparing template
[Warning] (Skype) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (Skype) Error preparing template
[Warning] (WinPcap.script) Syntax was not valid: [RegWrite,HKLM,0x0,"WB-Setup\ControlSet001\Enum\Root\LEGACY_NPF\0000\Control"]
[Warning] (SumatraPDF) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (SumatraPDF) Error preparing template
[Warning] (PC Inspector File Recovery) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (PC Inspector File Recovery) Error preparing template
[Warning] (Java Runtime Environment) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (Java Runtime Environment) Error preparing template
[/list]
I'll add a log later if I found webspace that I can use for it


Hmm, mine does not show a single warning/error when I build all - WinBuilder 078 SP1, Win7RescuePE.

#22 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 08:40 PM

I use Win7RescuePE with waik installed (as described by Joshua) and Win7 RTM Ultimate as source. Building platform is winxp pro sp3.
Also my second built has the same errors.


Same as me - just that I am using Win7 Professional RTM as the host system where I run WinBuilder.

Which WIAK version do you use? I am using WAIK for WinPE 3 final.
Download WAIK final here.

#23 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 20 September 2009 - 08:44 PM

6001.18000.080118-1840-kb3aik_de.iso
Automated Installation Kit (AIK) for Windows Vista SP1 and Windows Server 2008
that is the waik Joshua pointed to in his tutorial

I do not download and install your version because my os (winxp) is not supported by your version

#24 turbine

turbine
  • Members
  • 5 posts
  •  
    United States

Posted 20 September 2009 - 08:55 PM

I built the project, and I was pleased I was able to get it working after several attempts. However, :loleverybody: I am so surprised that I cannot remove the Temp Windows 7 files from my Vista computer hard drive.

I tried booting from several projects thinking this would give me full control over the HD contents. I tried using chmod 777 under Unix Utitlites, and every other strategy that came to mind. I have yet to try booting in Linux and mounting the drive, but there is some risk in doing this.

Please point me down the correct path. I am frustrated enough with this that I may nuke the drive.

Let me add that I feel foolish to find myself in this situation.

#25 SkyBeam

SkyBeam

    Member

  • Members
  • 41 posts
  • Location:Switzerland
  •  
    Switzerland

Posted 20 September 2009 - 09:04 PM

6001.18000.080118-1840-kb3aik_de.iso
Automated Installation Kit (AIK) for Windows Vista SP1 and Windows Server 2008
that is the waik Joshua pointed to in his tutorial

I do not download and install your version because my os (winxp) is not supported by your version


Somehow I don't believe that the WAIK version is NOT to be blamed here.
For example you've reported:

[Failed] (JavaSE-RunTime.script) Run - Failed to find section [Update] in file: [%BaseDir%\Projects\Win7RescuePE\Apps\System\JavaSE-RunTime.script]


This I fixed now - will upload fixed version soon. Selecting the Script and clicking "Update now" would solve the problem too on your side.

Then you write:

[Warning] (7-Zip.script) Syntax was not valid: [Reg_Add,0x3,"%reg%\Software\7-Zip\FM","FolderShortcuts"]


Well not sure why it's not valid. Maybe changing the line from
Reg_Add,0x3,"%reg%\Software\7-Zip\FM","FolderShortcuts"
to
Reg_Add,0x3,"%reg%\Software\7-Zip\FM","FolderShortcuts",""
could fix it.
I will try - however a warning probably should not break the whole build.

[Warning] (FastStone Capture) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (FastStone Capture) Error preparing template
[Warning] (XnView) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (XnView) Error preparing template
[Warning] (Firefox) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
[Warning] (Firefox) Error preparing template
[Warning] (Skype) Syntax was not valid: [Exit,Error#$spreparing#$stemplate,#$sdownload#$sfailed.]
...


Seems to be the same error multiple times.
It appears to be thrown by the following line:
If,NotExistFile,"%ProgramTemplate%\%ProgramEXE%",Exit,"Error preparing template, download failed."
Which I include in all scripts to verify if the program is downloaded correctly. However I don't see (yet) where it could have a syntax error.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users