Hallo,
what is the way to chnage the 'Leopard' folder on the USB stick back to 'sources' like in winpe?
xplod
Hi xplod
Please open Standard-6-postconfig.script and change the code in this way.
Before:
[PackBoot]
Echo,"Preparing Leopard.wim..."
//
If,EXISTFILE,"%SourceDir%\boot\bcd",FileCopy,"%SourceDir%\boot\bcd","%TargetDir%\boot"
If,Not,ExistDir,"%TargetDir%\Leopard",DirMake,"%TargetDir%\Leopard"
//
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} device ramdisk=[boot]\Leopard\Leopard.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} osdevice ramdisk=[boot]\Leopard\Leopard.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
If,NOT,"%Project%",EQUAL,"Win7PE",ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} quietboot on","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} locale %DistLang%","%WindowsDir%\system32"
After:
[PackBoot]
Echo,"Preparing vistape.wim..."
//
If,EXISTFILE,"%SourceDir%\boot\bcd",FileCopy,"%SourceDir%\boot\bcd","%TargetDir%\boot"
If,Not,ExistDir,"%TargetDir%\sources",DirMake,"%TargetDir%\sources"
//
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} device ramdisk=[boot]\sources\vistape.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} osdevice ramdisk=[boot]\sources\vistape.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
If,NOT,"%Project%",EQUAL,"Win7PE",ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} quietboot on","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} locale %DistLang%","%WindowsDir%\system32"
Before:
DirMake,"%LeopardTMP%"
DirMake,"%TargetDir%\Leopard"
DirMove,"%TargetDir%\Program#$sFiles","%LeopardTMP%"
After:
DirMake,"%LeopardTMP%"
DirMake,"%TargetDir%\sources"
DirMove,"%TargetDir%\Program#$sFiles","%LeopardTMP%"
Before:
If,"%pScrollBox2%",EQUAL,"Imagex",If,"%pCheckBox2%",EQUAL,"True",ShellExecute,Open,#$q%imagex%#$q,"/capture #$q%LeopardTMP%#$q #$q%TargetDir%\Leopard\Leopard.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox1%"
If,"%pScrollBox2%",EQUAL,"Imagex",If,"%pCheckBox2%",EQUAL,"False",ShellExecute,Hide,#$q%imagex%#$q,"/capture #$q%LeopardTMP%#$q #$q%TargetDir%\Leopard\Leopard.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox1%"
//
If,"%pScrollBox2%",EQUAL,"Wim Compressor",ShellExecute,Hide,"%Tools%\wim_compress%SysType%.exe","#$q%LeopardTMP%#$q #$q%TargetDir%\Leopard\Leopard.wim#$q #$q%CL%#$q"
After:
If,"%pScrollBox2%",EQUAL,"Imagex",If,"%pCheckBox2%",EQUAL,"True",ShellExecute,Open,#$q%imagex%#$q,"/capture #$q%LeopardTMP%#$q #$q%TargetDir%\sources\vistape.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox1%"
If,"%pScrollBox2%",EQUAL,"Imagex",If,"%pCheckBox2%",EQUAL,"False",ShellExecute,Hide,#$q%imagex%#$q,"/capture #$q%LeopardTMP%#$q #$q%TargetDir%\sources\vistape.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox1%"
//
If,"%pScrollBox2%",EQUAL,"Wim Compressor",ShellExecute,Hide,"%Tools%\wim_compress%SysType%.exe","#$q%LeopardTMP%#$q #$q%TargetDir%\sources\vistape.wim#$q #$q%CL%#$q"
Before:
If,"%pScrollBox4%",EQUAL,"Imagex",If,"%pCheckBox4%",EQUAL,"True",ShellExecute,Open,#$q%imagex%#$q,"/capture #$q%ProgramsTMP%#$q #$q%TargetDir%\Leopard\Programs.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox3%"
If,"%pScrollBox4%",EQUAL,"Imagex",If,"%pCheckBox4%",EQUAL,"False",ShellExecute,Hide,#$q%imagex%#$q,"/capture #$q%ProgramsTMP%#$q #$q%TargetDir%\Leopard\Programs.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox3%"
//
If,"%pScrollBox4%",EQUAL,"Wim Compressor",Begin
If,"%SysType%",EQUAL,"x86",ShellExecute,Hide,"%Tools%\wim_compressx86.exe","#$q%ProgramsTMP%#$q #$q%TargetDir%\Leopard\Programs.wim#$q #$q%CLP%#$q"
If,"%SysType%",EQUAL,"amd64",ShellExecute,Hide,"%Tools%\wim_compressx64.exe","#$q%ProgramsTMP%#$q #$q%TargetDir%\Leopard\Programs.wim#$q #$q%CLP%#$q"
End
After:
If,"%pScrollBox4%",EQUAL,"Imagex",If,"%pCheckBox4%",EQUAL,"True",ShellExecute,Open,#$q%imagex%#$q,"/capture #$q%ProgramsTMP%#$q #$q%TargetDir%\sources\Programs.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox3%"
If,"%pScrollBox4%",EQUAL,"Imagex",If,"%pCheckBox4%",EQUAL,"False",ShellExecute,Hide,#$q%imagex%#$q,"/capture #$q%ProgramsTMP%#$q #$q%TargetDir%\sources\Programs.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox3%"
//
If,"%pScrollBox4%",EQUAL,"Wim Compressor",Begin
If,"%SysType%",EQUAL,"x86",ShellExecute,Hide,"%Tools%\wim_compressx86.exe","#$q%ProgramsTMP%#$q #$q%TargetDir%\sources\Programs.wim#$q #$q%CLP%#$q"
If,"%SysType%",EQUAL,"amd64",ShellExecute,Hide,"%Tools%\wim_compressx64.exe","#$q%ProgramsTMP%#$q #$q%TargetDir%\sources\Programs.wim#$q #$q%CLP%#$q"
End
Please open Standard-7-iso-usb-hdd.script and change the code in this way.
Before:
If,"%BuildModel%",Equal,"RAM",Begin
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} device ramdisk=[boot]\Leopard\Leopard.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} osdevice ramdisk=[boot]\Leopard\Leopard.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
If,NOT,"%Project%",EQUAL,"Win7PE",ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} quietboot on","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} locale %DistLang%","%WindowsDir%\system32"
End
After:
If,"%BuildModel%",Equal,"RAM",Begin
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} device ramdisk=[boot]\sources\vistape.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} osdevice ramdisk=[boot]\sources\vistape.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
If,NOT,"%Project%",EQUAL,"Win7PE",ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} quietboot on","%WindowsDir%\system32"
ShellExecute,Hide,"%Tools%\bcdedit.exe","/store #$q%TargetDir%\boot\bcd#$q /set {default} locale %DistLang%","%WindowsDir%\system32"
End
Best regards