That 'automatically' brings a very low knowledge level for Win7.
However, I like the project an try to help (due to WinBuilder items) as most as i can.
I (partly w/o understanding completelly) followed the 'ShortCut' issue in the Win7PE with Winbuilder 74 & 76 topic.
Here just an idea. If the experienced users judge that as nonsence, please tell me, and I'll be silent. (And that would not affect me any way)
I remember the stone age of OpenBuilder / WinBuilder version around 52 "Standard project".
There have been similar issues: The booting PE did not have the knowledge of the generating WinBuilder project.
Therefore 'simple' Shortcuts have been no problem, but 'more special' ShortCuts needed special treatement (e.g. language dependent folder names wich were NOT in the environment), which was added to the shortcut building app in the PE ... etc. ...
That was the reason I created the nativeEx idea:
Everything about Language dependent names, shortcut targets, etc. is known (or can brought to knowledge) to WinBuilder during build.
Shortcuts should be generated during build and be copied to the target.
It has been a hard way, but for nativeEx based projects it works very well.
Copyflow (for nativeEx):
- The app script makes a call to %BuildModelScript% to generate the shortcut
- %BuildModelScript% generates a 'Shortcut Template' ???.shc containing all necessary information
(%BuildModelScript% knows 'everything' e.g. language dependent folder names) - %BuildModelScript% calls %ActiveShell% (passing the template) to generate the shortcut and write into target.
In this way different PE-main-shell scripts can create their individual shortcuts.
The generated shortcut of Explorer.Script is very different from the shortcut of e.g. a43.script
Sample of ???.shc:
[Created] Program=shortcutParse Version=1.1.2 Copyright=(C) 2007 Peter Schlang Date=2009-Jun-22 205640015 [Shortcut] targetDir=V:\WB\wb debug\Workbench\nativeEx_barebone\UserData modelDir=V:\WB\wb debug\Workbench\nativeEx_barebone\UserData shortCutName=BGInfo shortCutType=DE shortCutLocation= shortCutExe=%SystemDrive%\Programme\BGInfo\Bginfo.exe shortCutToolTip= shortCutParameters= shortCutShow= shortCutDir=%SystemDrive%\Programme\BGInfo\ shortCutHotKey= shortCutIconFile= shortCutIcon=0