Jump to content











Photo
* * * * * 2 votes

Joshua's Win7peldr


  • Please log in to reply
164 replies to this topic

#1 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 14 June 2009 - 12:37 PM

Last edit 08/02/2009 Joshua

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:
Posted Image


Screenshot from current script German language selected:
Posted Image


PreLogonConfig is a tool to configure the password protection.
Posted Image


PreLogon is the password protection program.
Posted Image
Default password is: win7pe
You can easily change it with PreLogonConfig! ;)


win7peldr is the loader program.
Posted Image


Normal progress window:
Posted Image


Hidden progress window:
In hidden modus, a animated cursor is shown during loading.
Posted Image


Shortcuts with arrow
Posted Image


Shortcuts without arrow
Posted Image


Shortcuts BSExplorer as shell
Posted Image


Shortcuts BSExplorer as shell with my favorite background picture. ;)
Posted Image

Joshua

#2 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

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.


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.:

Try new version: www.drowaelder.de/winpe/winbuilder/win7pe/Shortcuts/shortcuts.exe

Joshua

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.

Can you be more specific? i did not understand what you mean. ;)

Other option would be to have a prerun.cmd which win7peldr runs first. That would be more flexible.

Why not use the [autorun] section in Win7PE.cfg ?

Joshua

#3 paraglider

paraglider

    Gold Member

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

Posted 14 June 2009 - 11:59 PM

At what point is autorun run?

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 paraglider

paraglider

    Gold Member

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

Posted 16 June 2009 - 02:25 AM

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|

#5 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 16 June 2009 - 08:38 AM

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|

That is strange. ;)
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 paraglider

paraglider

    Gold Member

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

Posted 16 June 2009 - 11:40 AM

http://www.paraglide...les/Paragon.zip

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 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 16 June 2009 - 12:54 PM

Both external icons in dlls and external .ico files work.

I am very pleased to hear that ... ;)
Can you edit post 1, and add a link to current shortcut version ?

Joshua

#8 paraglider

paraglider

    Gold Member

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

Posted 16 June 2009 - 11:47 PM

Done.

#9 alois3

alois3

    Newbie

  • Members
  • 28 posts
  •  
    France

Posted 18 June 2009 - 07:06 PM

hello,

I do not understand or does it files ?

shortcuts.exe & win7peldr.exe

please ;)

#10 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 18 June 2009 - 08:05 PM

I do not understand or does it files ?

Win7peldr.exe is a loader for WinPE7 project.
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

Posted Image

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.

Posted Image


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 alois3

alois3

    Newbie

  • Members
  • 28 posts
  •  
    France

Posted 18 June 2009 - 08:26 PM

its ok thanks

#12 alois3

alois3

    Newbie

  • Members
  • 28 posts
  •  
    France

Posted 18 June 2009 - 08:47 PM

thank you for your reply, I did not see how this file to 2 parts?

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 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 19 June 2009 - 03:30 PM

On todo list = Reste à faire

#14 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

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 paraglider

paraglider

    Gold Member

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

Posted 21 June 2009 - 02:17 AM

Joshua,

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 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 25 June 2009 - 09:53 PM

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.

New version is ready.
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.
Posted Image

After win7pe startet, you can do full hardware detect, or setting screen resolution with win7peldr.
Posted Image

Shortcut creation on usb drive is also working now. disable or delete old shortcut script!

Joshua

#17 hackules

hackules
  • Members
  • 3 posts

Posted 25 June 2009 - 10:05 PM

I'd just like to say how happy and grateful I am to see Joshua & Paraglider still at it after all this time. Thanks guys!!!

#18 yahoouk

yahoouk

    Silver Member

  • .script developer
  • 518 posts

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. :lol:
I'll try it. ;)
Thank you.

yahooUK

#19 telenut

telenut
  • Members
  • 8 posts
  •  
    Belgium

Posted 02 July 2009 - 12:28 PM

Hi,
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 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 02 July 2009 - 12:58 PM

I just mounted the wim file and replaced the 2 files.

That did not work!
You have to use my complete script! (Or you must make more modifications to some files.)

Joshua

#21 telenut

telenut
  • Members
  • 8 posts
  •  
    Belgium

Posted 02 July 2009 - 01:02 PM

It does not work, that's for sure :-)
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 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

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 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 10 July 2009 - 09:20 AM

@dera
I can't reproduce your problems. :lol:
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:
Posted Image

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 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 10 July 2009 - 12:03 PM

My win7peldr.exe is 1.1.0.6
Attached File  03.png   66.04KB   40 downloads
my winpeshl.ini:
[LaunchApps]
win7peldr.exe
explorer.exe

after boot, it first shows the PE-Drive for a moment

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),
the first i can clearly recognize is the 'regedit /s clid.reg'
then comes this screen
Attached File  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
Attached File  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
Attached File  04.png   8.87KB   25 downloads

#25 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 10 July 2009 - 12:09 PM

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),

Start win7peldr from your bootet system to see the found drive letter.
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