Jump to content











Photo
- - - - -

wbxpe desktop shortcut? and change ramdisk?


  • Please log in to reply
2 replies to this topic

#1 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 16 September 2007 - 02:17 AM

hey h7se:

i had a successful build with us xp sp2 rtm. i want to add desktop and programs shortcuts to plugin scripts and change the ramdisk size with your build. ive worked with normal bartpe before but your is modified and the plugins are in script form rather the the normal plugin (.inf) form. ive written sherpyas reg additions to create shortcuts in xpe but i cant get it to work with your build. i have an example script that i have modified to use with nativeex. please take a look and see what ive done wrong. i want to use the explorer shell instead of nu2menu. i think nu2menu is going backwards if you already have explorer.

[Main]
Title=HDTune
Description=This script will include HDTune in your PE compilation
Selected=True

Version=001
Date=9/12/2007
Locked=False
Author=Bits&PCs
Credit=

[Variables]
%ProgramMenu%=\%TBox_Menu%

[Process]
IniRead,"%ProjectInfo%","TargetStrings","sProgram_Files",%WorkDir%
DirMake,"%TargetDir%\%WorkDir%\HDTune\"
ExtractAllFiles,"%ScriptFile%","HDTune","%TargetDir%\%WorkDir%\HDTune\"
If,%ExplorerShortcut%,Equal,"shc-run",Run,%ScriptFile%,StartFolder_SHC
If,%CBox_StartFolder%,Equal,False,Set,"%ProgramMenu%",""
If,%CBox_SM%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"SM%ProgramMenu%","#$pSystemDrive#$p\%WorkDir%\HDTune\HDTune.exe","%TBox_Name%","-SS:SW_SHOWNORMAL#$q#$s#$q-SW:#$pProgramFiles#$p\HDTune#$q#$s#$q-SF:#$pProgramFiles#$p\HDTune\HDTune.exe#$q#$s#$q-SI:0"
If,%CBox_DE%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"DE","#$pSystemDrive#$p\%WorkDir%\HDTune\HDTune.exe","%TBox_Name%","-SS:SW_SHOWNORMAL#$q#$s#$q-SW:#$pProgramFiles#$p\HDTune#$q#$s#$q-SF:#$pProgramFiles#$p\HDTune\HDTune.exe#$q#$s#$q-SI:0"
If,%CBox_QL%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"QL","#$pSystemDrive#$p\%WorkDir%\HDTune\HDTune.exe","%TBox_Name%","-SS:SW_SHOWNORMAL#$q#$s#$q-SW:#$pProgramFiles#$p\HDTune#$q#$s#$q-SF:#$pProgramFiles#$p\HDTune\HDTune.exe#$q#$s#$q-SI:0"
If,%CBox_ST%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"ST","#$pSystemDrive#$p\%WorkDir%\HDTune\HDTune.exe","%TBox_Name%","-SS:SW_SHOWNORMAL#$q#$s#$q-SW:#$pProgramFiles#$p\HDTune#$q#$s#$q-SF:#$pProgramFiles#$p\HDTune\HDTune.exe#$q#$s#$q-SI:0"
If,%CBox_AU%,Equal,True,Run,%BuildModelScript%,Add-Shortcut,"AU","#$pSystemDrive#$p\%WorkDir%\HDTune\HDTune.exe","%TBox_Name%","-SS:SW_SHOWNORMAL#$q#$s#$q-SW:#$pProgramFiles#$p\HDTune#$q#$s#$q-SF:#$pProgramFiles#$p\HDTune\HDTune.exe#$q#$s#$q-SI:0"
Run,%ScriptLog%,Process-log

[xpe shortcut]
RegWrite,HKLM,0x2,"Sherpya\XPEinit\Programs", "Disk Tools\HDTune", "%SystemDrive%\Programs\HDTune\HDTune.exe||%SystemDrive%\Programs\HDTune\HDTune.exe"


[StartFolder_SHC]
If,%CBox_StartFolder%,Equal,True,TXTAddLine,"%TargetDir%\i386\system32\shortcut.inf","2#$c!SM%ProgramMenu%","Append"

#2 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 16 September 2007 - 05:24 AM

maybe you should doit that way

[xpe shortcut]

RegHiveLoad,"WB-SOFTWARE","%TargetDir%\I386\system32\config\software"

RegWrite,HKLM,0x2,"Sherpya\XPEinit\Programs", "Disk Tools\HDTune", "%SystemDrive%\Programs\HDTune\HDTune.exe||%SystemDrive%\Programs\HDTune\HDTune.exe"

RegHiveUnload,"WB-SOFTWARE"

regarding ramdrive you can edit ramdrv script and change the size

#3 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 16 September 2007 - 01:37 PM

maybe you should doit that way

[xpe shortcut]

RegHiveLoad,"WB-SOFTWARE","%TargetDir%\I386\system32\config\software"

RegWrite,HKLM,0x2,"Sherpya\XPEinit\Programs", "Disk Tools\HDTune", "%SystemDrive%\Programs\HDTune\HDTune.exe||%SystemDrive%\Programs\HDTune\HDTune.exe"

RegHiveUnload,"WB-SOFTWARE"

regarding ramdrive you can edit ramdrv script and change the size


also,

what would be the best way to add drivers?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users