LiveXP is a very flexible PE 1x, using Explorer as shell, supporting SATA/IDE drives, USB devices, and many other features and tweaks. This project is based on PE environment and will use a Windows ™ XP/2003 Install CD.

Download server link to use with the WinBuilder Download Centre: www.livexp.galapo.net.

Download the most recent archive of the project:

10 Pages V  « < 8 9 10  
Reply to this topic
 RegAddBoot script updates
post Dec 2 2009, 09:38 AM
Post #91
Arvy
Frequent Member   ***
Group: Developer

  Joined: 4-January 08 From: Canada, Parry Sound

Posts: 371
Thank(s): 15


Canada


Yes, okay. Thanks dera.

In any case, what I was really curious about were JonF's final methodological approach for determining the drive letter variable to be entered into the registry and his placement of that part of his process into the overall VistaPE start-up sequence.

As you point out, the latter factor appears critical to the ultimate impact (if any at all) of the EnvUpdate() function. I'm puzzled about why it should be necessary to keep it in memory if the session manager is actually able to establish it subsequently as it does with all the other entries that are held under the same environment key in the registry.


--------------------
Regards,
Richard
+Quote Post
post Dec 2 2009, 01:51 PM
Post #92
JonF
Gold Member   *****
Group: .script developer

  Joined: 7-January 07 From: Boston, MA

Posts: 1,164
Thank(s): 228


United States


QUOTE (dera @ Dec 2 2009, 03:39 AM) *
exactly which script in the VistaPE project was updated?

(anyway i used this au3, only corrected 'REG_EXPAND_SZ' into 'REG_SZ'
and that was my experience:
if the complied au3 ran before the winpeshl.exe via "HKLM\Setup","CmdLine","mycommand.cmd" then the EnvUpdate() not needed at all
and it works also in BS Explorer building only from the WAIK,

if "HKLM\Setup","CmdLine", "winpeshl.exe" used and the complied au3 ran before the vpeldr.exe via the winpeshl.ini [LaunchApps] section
then EnvUpdate() doesn't help)

AFAIK NightMan never created a CDDrive environment variable. He replaced %CDDrive% with the appropriate drive letter as he created the shortcuts, on the fly. But he forgot to do that for the arguments portion of the shortcut specification.

My code is contained inb the script, but here it is:

CODE
$CfgFile = "vistape.cfg"
$CDLetter = False
$Letter = DriveGetDrive("all")
For $L = 1 To $Letter[0]
  If (StringRegExp($Letter[$L], "(?i)^(A|B):$")) Then ContinueLoop
  If (StringRegExp(DriveStatus($Letter[$L]), "READY") <> 0) Then
    If FileExists($Letter[$L] & "\" & $CfgFile) Then
      $CDLetter = StringUpper($Letter[$L])
      ExitLoop
    EndIf
  EndIf
Next

If $CDLetter Then
  RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment","CDDrive","REG_SZ",$CDLetter)
; Not many apps listen to this broadcast, but cmd.exe does. So this program
; should be run in a .cmd file so cmd.exe will listen and maintain the environment
; variable after this program exits.
  EnvUpdate()
EndIf
+Quote Post
post Dec 2 2009, 01:52 PM
Post #93
JonF
Gold Member   *****
Group: .script developer

  Joined: 7-January 07 From: Boston, MA

Posts: 1,164
Thank(s): 228


United States


QUOTE (dera @ Dec 2 2009, 03:39 AM) *
exactly which script in the VistaPE project was updated?

07-config.script. I may have messed up the update; try downloading now.
+Quote Post
post Dec 2 2009, 04:20 PM
Post #94
dera
Gold Member   *****
Group: .script developer

  Joined: 17-January 07
Posts: 1,154
Thank(s): 269


Hungary


Thanks!
ok, now i can see the updated scripts
+Quote Post

10 Pages V  « < 8 9 10
Reply to this topic
1 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts scripts
making a "choosing script"
4 Rah.Levi 469 23rd August 2010 - 02:32 PM
Last post by: Rah.Levi
No New Posts Topic has attachmentsScript for mount wims or run programs inside wim?
3 vvurat 532 10th August 2010 - 08:45 AM
Last post by: Wonko the Sane
No New Posts ScriptBuilder w/ UI Selector
3 Flyboarder 982 3rd June 2010 - 06:31 AM
Last post by: Flyboarder
No New Posts Script error on clean installation
4 Karl1982 758 22nd May 2010 - 12:41 AM
Last post by: Karl1982
No New Posts Script Request: Hamachi
0 javierkaiser 518 14th April 2010 - 08:55 PM
Last post by: javierkaiser