Joshua's Win7peldr
#1
Posted 14 June 2009 - 12:37 PM
This a loader for the Win7PE project. http://www.boot-land...?showtopic=7250
It can password protect your system.
Can make a system that is able to expire.
Can detect hardware, create shortcuts, writing registry entries, and much more.
A helpfile is on my todo list.
Current version can be found here:
http://joshua.winbuilder.net
Here are screenshots of current version.
Screenshot from current script:
Screenshot from current script German language selected:
PreLogonConfig is a tool to configure the password protection.
PreLogon is the password protection program.
Default password is: win7pe
You can easily change it with PreLogonConfig!
win7peldr is the loader program.
Normal progress window:
Hidden progress window:
In hidden modus, a animated cursor is shown during loading.
Shortcuts with arrow
Shortcuts without arrow
Shortcuts BSExplorer as shell
Shortcuts BSExplorer as shell with my favorite background picture.
Joshua
#2
Posted 14 June 2009 - 09:16 PM
I have found the following problems:
1) It generates an error popup if the target of a shortcut does not exist. I would like it to fail silently.
2) Its not correctly associating an explicit icon file with the shortcut e.g.:
Drive Tools\Paragon\Drive Backup 9|Drive Backup 9|b:\Programs\DB9\windb_sfx.exe|b:\Programs\DB9\launcher.ico|
I confirm both problems.
Would be nice to have an option for win7peldr to scan the drivers and find and mount a specified wim file to a specified directory. Currently its messy doing it as it needs to be done before the shortcuts are created. So I have to run autorun.cmd from winpeshl.ini prior to starting win7peldr. Other option would be to have a prerun.cmd which win7peldr runs first. That would be more flexible.
Try new version: www.drowaelder.de/winpe/winbuilder/win7pe/Shortcuts/shortcuts.exeI have found the following problems:
1) It generates an error popup if the target of a shortcut does not exist. I would like it to fail silently.
2) Its not correctly associating an explicit icon file with the shortcut e.g.:
Joshua
Can you be more specific? i did not understand what you mean.Would be nice to have an option for win7peldr to scan the drivers and find and mount a specified wim file to a specified directory.
Why not use the [autorun] section in Win7PE.cfg ?Other option would be to have a prerun.cmd which win7peldr runs first. That would be more flexible.
Joshua
#3
Posted 14 June 2009 - 11:59 PM
I want to scan all drives looking for source\programs.wim and mount at b:\Programs. Most of my programs are in programs.wim. It reduces the memory footprint as boot.wim is loaded totally into memory. Any wim loaded later after boot using imagex only the directory entries are loaded into ram.
As long as autorun.cmd is run before the shortcuts are created then I can use it to load programs.wim so the shortcuts can reference programs in b:\programs
#4
Posted 16 June 2009 - 02:25 AM
Drive Tools|Drive Backup 9|b:\Programs\DB9\windb_sfx.exe|b:\Programs\DB9\paragon.dll|
#5
Posted 16 June 2009 - 08:38 AM
That is strange.Still not associating the external icon correctly using this line from win7pe.cfg:
Drive Tools|Drive Backup 9|b:\Programs\DB9\windb_sfx.exe|b:\Programs\DB9\paragon.dll|
May be this is a stupid question, but are you sure,
file b:\Programs\DB9\paragon.dll exist, and contains a icon, during shortcuts.exe run?
Do you have a downloadlink for paragon.dll, for testing?
Joshua
#6
Posted 16 June 2009 - 11:40 AM
I checked that the icon could be associated by changing the properties via explorer.
Sorry I updated win7peldr.exe not shortcuts.exe. Should have looked at the link you posted - just assumed it was a link to win7peldr. Did not realize win7peldr was using shortcuts.exe
Both external icons in dlls and external .ico files work.
#7
Posted 16 June 2009 - 12:54 PM
I am very pleased to hear that ...Both external icons in dlls and external .ico files work.
Can you edit post 1, and add a link to current shortcut version ?
Joshua
#8
Posted 16 June 2009 - 11:47 PM
#9
Posted 18 June 2009 - 07:06 PM
I do not understand or does it files ?
shortcuts.exe & win7peldr.exe
please
#10
Posted 18 June 2009 - 08:05 PM
Win7peldr.exe is a loader for WinPE7 project.I do not understand or does it files ?
http://www.boot-land...?showtopic=7250
It currently can do the following things.
First it reads:
section [preconfig] from Win7PE.cfg, and parse all his entrys.
Example
[preconfig] hidewait|Explorer clid|regedit /s clid.reg
Then it reads sections [main] and [shells] , and start the default shell.
Example
[main] screen=1024x768 wpeinit=background ;autorun=normal mountprogram=no defaultshell=Explorer [shells] Total Commander|totalcmd\totalcmd.exe Explorer|x:\windows\explorer.exe BS Explorer|BSExplorer\Explorer.exe
Then it reads section [autorun] , and parse all his entrys.
Example
[autorun] wait|BGInfo|%SystemDrive%\Program Files\BGInfo\runBGinfo.exe
Then it installs the drivers, found in GetWindowsDir & "\Inf"
Then it creates shortcuts found parsing section [shortcut] using Shortcuts.exe
Example
[shortcut] Desktop|WinDlg|%SystemDrive%\Program Files\Windlg\WinDlg.exe|| Diagnostic|WinDlg|%SystemDrive%\Program Files\Windlg\WinDlg.exe|| System Information|System Info|%SystemDrive%\Program Files\System Info\siw.exe|| Network|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe|| Desktop|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe|| Desktop|Disk Management|%SystemRoot%\System32\mmc.exe||/b %SystemRoot%\System32\diskmgmt.msc Administrative Tools|Disk Management|%SystemRoot%\System32\mmc.exe||/b %SystemRoot%\System32\diskmgmt.msc Administrative Tools|Computer Management|%SystemRoot%\System32\mmc.exe||/b %SystemRoot%\System32\compmgmt.msc System|Startup Repair (win7)|x:\sources\recovery\startrep.exe|| System|System Recovery|x:\sources\recovery\recenv.exe||
Then it reads section [postconfig] , and parse all his entrys.
Example
[postconfig]
hidewait|Server|x:\windows\system32\net.exe start "LanmanServer"
Then it minimize to systemtray.
From there you can open it, and you can change the screenresolution.
Following startoptions/parameters are possible: (section [preconfig],[postconfig])
[autorun], )
wait - the program is launched in the standard window, before continue the job shutdown is waited for
nowait - stabdart window, not waiting for the shutdown
hidewait - hidden mode, waiting for the shutdown
hidenowait - hidden mode, not waiting for the shutdown
2.Program name
3.Program path and parameters
On todo list:
1. writing registry entrys.
Example
[registry] "HKLM",0x1,"SOFTWARE\Classes\Drive\shellex\DragDropHandlers\7-Zip","","{23170F69-40C1-278A-1000-000100020000}" "HKLM",0x1,"SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-Zip","","{23170F69-40C1-278A-1000-000100020000}" "HKLM",0x1,"SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-Zip","","{23170F69-40C1-278A-1000-000100020000}"
2. creating file association's
Example
[association] zip,%SystemDrive%\Program Files\7-zip\7zfm.exe z,%SystemDrive%\Program Files\7-zip\7zfm.exe wim,%SystemDrive%\Program Files\7-zip\7zfm.exe tpz,%SystemDrive%\Program Files\7-zip\7zfm.exe
3. Some usefull tools.
Joshua
#11
Posted 18 June 2009 - 08:26 PM
#12
Posted 18 June 2009 - 08:47 PM
1. writing registry entrys. Example CODE [registry] "HKLM",0x1,"SOFTWARE\Classes\Drive\shellex\DragDropHandlers\7-Zip","","{23170F69-40C1-278A-1000-000100020000}" "HKLM",0x1,"SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-Zip","","{23170F69-40C1-278A-1000-000100020000}" "HKLM",0x1,"SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-Zip","","{23170F69-40C1-278A-1000-000100020000}"
&
2. creating file association's Example CODE [association] zip,%SystemDrive%\Program Files\7-zip\7zfm.exe z,%SystemDrive%\Program Files\7-zip\7zfm.exe wim,%SystemDrive%\Program Files\7-zip\7zfm.exe tpz,%SystemDrive%\Program Files\7-zip\7zfm.exe
I started, I still have a little trouble
#13
Posted 19 June 2009 - 03:30 PM
#14
Posted 19 June 2009 - 03:33 PM
?????On todo list = Reste à faire
Ok, i translate with:
http://dict.leo.org/...=...e&relink=on
and now i understand!
Joshua
#15
Posted 21 June 2009 - 02:17 AM
I would prefer that win7peldr exited instead of minimizing to the taskbar if no defaultshell is specified.
Also I get an error popup with a CreateShortcuts title saying \win7pe.cfg file is not found.
I think it may be because with the latest version of win7pe the full hardware detection seems to loose my virtual disk drives in vmware.
#16
Posted 25 June 2009 - 09:53 PM
New version is ready.I would prefer that win7peldr exited instead of minimizing to the taskbar if no defaultshell is specified.
Also I get an error popup with a CreateShortcuts title saying \win7pe.cfg file is not found.
Download complete script included all needed files here: www.drowaelder.de/winpe/winbuilder/win7pe/win7peldr/8-Win7pe-loader.script
You can now configure win7peldr parameters.
After win7pe startet, you can do full hardware detect, or setting screen resolution with win7peldr.
Shortcut creation on usb drive is also working now. disable or delete old shortcut script!
Joshua
#17
Posted 25 June 2009 - 10:05 PM
#18
Posted 25 June 2009 - 10:11 PM
New version is ready.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Shortcut creation on usb drive is also working now. disable or delete old shortcut script!
Joshua
Beautiful.
I'll try it.
Thank you.
yahooUK
#19
Posted 02 July 2009 - 12:28 PM
I just mounted the wim file and replaced the 2 files.
Now it loads and after that I just get a black screen (with mouse cursor)...
#20
Posted 02 July 2009 - 12:58 PM
That did not work!I just mounted the wim file and replaced the 2 files.
You have to use my complete script! (Or you must make more modifications to some files.)
Joshua
#21
Posted 02 July 2009 - 01:02 PM
Problem is: I'm at work now, and the needed winbuilder files are on my harddisk at home.
Guess I just to it next week. thx!
#22
Posted 02 July 2009 - 09:07 PM
On todo list:
1. writing registry entrys.
2. creating file association's
3. Some usefull tools.
Joshua
New version is ready.
Added support for:
writing registry entrys
creating file association's
This needs testing! Please test and give feedback.
Joshua
#23
Posted 10 July 2009 - 09:20 AM
I can't reproduce your problems.
Are you sure you have the correct win7peldr.exe on your UFD ???
When you boot from UFD, or when you start the win7peldr.exe after boot, it first shows the PE-Drive for a moment.
It looks like this:
Did it show the correct UFD drive letter ?
For your shortcut problem. Are you sure your winpeshl.ini looks like this:
[LaunchApps] win7peldr.exe explorer.exe
and not like this:
[LaunchApps] win7peldr.exe "wallpaper.exe %SystemDrive%\Windows\System32\Winpe.bmp" "Shortcuts.exe -f %SystemDrive%\Windows\System32\Win7PE.cfg" "Shortcuts.exe -f %CDDrive%\Win7PE.cfg" "x:\Program Files\PEshell\PEshell.exe"
Joshua
#24
Posted 10 July 2009 - 12:03 PM
03.png 66.04KB 40 downloads
my winpeshl.ini:
[LaunchApps]
win7peldr.exe
explorer.exe
no, i cannot recognize (maybe shows something for a very-very short time but i am not able to read what as it happens very fast),after boot, it first shows the PE-Drive for a moment
the first i can clearly recognize is the 'regedit /s clid.reg'
then comes this screen
01.png 25.57KB 18 downloads
i get this screen as remember right 3 times
nevertheless if in command-line type:
shortcuts.exe -f G:\Win7PE.cfg
then the shortcuts to the 'Programs' folder (which located in the root of the UFD) are generated fine
also noticed
while in my registry there are CDDrive and PEDrive environment variables
seem these variables don't work at first time
in command-line can get this
02.png 10.38KB 39 downloads
after open sysdm.cpl > Advanced > Environment Variables... > System Variables > select the PEDrive variable > Edit.. > here i doesn't change anything just click on Ok
then seems this procedure somehow can 'repair' the env. vars
now i can get this
04.png 8.87KB 25 downloads
#25
Posted 10 July 2009 - 12:09 PM
Start win7peldr from your bootet system to see the found drive letter.no, i cannot recognize (maybe shows something for a very-very short time but i am not able to read what as it happens very fast),
If the time is still to short, i can compile a special debug version.
Can you give me a list of all your drive types and letters ?
Joshua
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users