Jump to content

[Closed] XPtsp General discusions


bober

Recommended Posts

OK, I've confirmed the following code works perfectly for me :)

:winntbbu
title XPtsp script Progress 87%%%...
set name=winntbbu
set ext=dll
set big=WINNTBBU
set com=DL_
if exist "i386\%big%.%com%" %xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%big%.%com%" Del "i386\%big%.%com%" >nul
if not exist "i386\%big%.%com%" set com=DLL
if exist "i386\%name%.%ext%" %cp% "i386\%name%.%ext%" "%tmp%\%name%.%ext%" >nul
if not exist "%tmp%\%name%.%ext%" goto winntbba
%rh% %del% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", stringtable,,
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
%cp% /v /y "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul
:winntbba
set name=winntbba
set ext=dll
set big=WINNTBBA
set com=DL_
if exist "i386\%big%.%com%" %xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%big%.%com%" Del "i386\%big%.%com%" >nul
if not exist "i386\%big%.%com%" set com=DLL
if exist "i386\%name%.%ext%" %cp% "i386\%name%.%ext%" "%tmp%\%name%.%ext%" >nul
if not exist "%tmp%\%name%.%ext%" goto winnt32a
%rh% %del% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", stringtable,,
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
%cp% /v /y "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul
:winnt32a
set name=winnt32a
set ext=dll
set big=WINNT32A
set com=DL_
if exist "i386\%big%.%com%" %xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%big%.%com%" Del "i386\%big%.%com%" >nul
if not exist "i386\%big%.%com%" set com=DLL
if exist "i386\%name%.%ext%" %cp% "i386\%name%.%ext%" "%tmp%\%name%.%ext%" >nul
if not exist "%tmp%\%name%.%ext%" goto winnt32u
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
%cp% /v /y "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul
:winnt32u
set name=winnt32u
set ext=dll
set big=WINNT32U
set com=DL_
if exist "i386\%big%.%com%" %xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%big%.%com%" Del "i386\%big%.%com%" >nul
if not exist "i386\%big%.%com%" set com=DLL
if exist "i386\%name%.%ext%" %cp% "i386\%name%.%ext%" "%tmp%\%name%.%ext%" >nul
if not exist "%tmp%\%name%.%ext%" goto winsrv
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
%cp% /v /y "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul

There's some redundant code in there (set com=DLL), but the end result is perfection.

Now I've got to figure out why my theme is changed to Royal Inspirat instead of Vista... :/

Link to comment
Share on other sites

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Now I've got to figure out why my theme is changed to Royal Inspirat instead of Vista... :/

Oh, now I get it. When the source is Pro, you get the Vista theme. When the source is Home, you get the Royal Inspirat theme with the "grass" wallpaper.

Nice :)

It would have been better with a screenie on the first post to distinguish that. ;)

post-3472-1224708626_thumb.png

Link to comment
Share on other sites

lolol yeah sorry about that,some times i forget to explain stuff.

and about the coding part ,the only change appart from returning the 2nd set com=DLL to uppercase,only this line was changed:

if exist "i386\%big%.%com%" %cp% "i386\%big%.%com%" "%tmp%\%big%.%com%" >nul

correct?

ill try and do one last update 2nite cause i realy dont have much time these days.also, ill chek the patching of the new ie7 addon as onepeice has updated his addon and ill make sure files are still getting patched correctly.

n e ways thx for looking into this.

i have a question.....does an xp source modded with viso exactly the same as viso installed using viso live after installation??

ull have to ask amnesia.but in theory yes it should.

Edited by bober
Link to comment
Share on other sites

do not rename README.HTM > READMESP.HTM.This file is missing when you try to read version notes (Setup.exe->Perform Additional Tasks->Read the Versions Notes) for Service Pack 3

line 48

MD AutoPlay >nul
XCOPY /S /Y "%xtra%\AutoPlay" "AutoPlay" >nul
if exist README.HTM ren README.HTM READMESP.HTM >nul

Thanks Btw

TC.

post-5698-1224711511_thumb.jpg

Link to comment
Share on other sites

What's Changed with GUI beta 16:

- Updated resources to match batch beta 16.

- Modified patching code so that language-specific resource files get patched even if English version doesn't exist.

- Rewrote add-on building code so that hopefully INF removals happen correctly.

- Added Drive Space Indicator v5.1.1.8 to GUI per request.

- Repackaged the OEM Info Generator into a 7zip SFX and modified the beginning of the OEMINFOGEN batch file. (Saved 80kb!)

- If a compressed and uncompressed version of a file exist, both are deleted before compression or copy of new file.

EDIT: Something to note about this copy of DSI is that it is English only with the VistaBlue theme. Other languages and themes can be downloaded for use through the program. The XPtsp theme is going to be built this weekend.

Edited by dougiefresh
Link to comment
Share on other sites

I am sorry but ı found a bug :(

:wucltui
title XPtsp script Progress 92%%%...
set name=wucltui
set ext=dll
set big=WUCLTUI
set com=DL_
if not exist "i386\%big%.%com%" set com=dll
if not exist "i386\%big%.%com%" goto [b]wucltuimui[/b]
%xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%name%.%ext%" Del "i386\%name%.%ext%" >nul
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
set com=DL_
%cab% /D CompressionType=LZX /D CompressionMemory=21 "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul
:[b]wupdmgr[/b]
set name=wupdmgr
set ext=exe
set big=WUPDMGR
set com=EX_
if not exist "i386\%big%.%com%" set com=exe
if not exist "i386\%big%.%com%" goto wuweb
%xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%name%.%ext%" Del "i386\%name%.%ext%" >nul
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
set com=EX_
%cab% /D CompressionType=LZX /D CompressionMemory=21 "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul

There is no wucltui.mui.res in resources folder so,

It should be:

:wucltui
title XPtsp script Progress 92%%%...
set name=wucltui
set ext=dll
set big=WUCLTUI
set com=DL_
if not exist "i386\%big%.%com%" set com=dll
if not exist "i386\%big%.%com%" goto wupdmgr
%xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%name%.%ext%" Del "i386\%name%.%ext%" >nul
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
set com=DL_
%cab% /D CompressionType=LZX /D CompressionMemory=21 "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul
:wupdmgr
set name=wupdmgr
set ext=exe
set big=WUPDMGR
set com=EX_
if not exist "i386\%big%.%com%" set com=exe
if not exist "i386\%big%.%com%" goto wuweb
%xp% "i386\%big%.%com%" "%tmp%\%name%.%ext%" >nul
if exist "i386\%name%.%ext%" Del "i386\%name%.%ext%" >nul
%rh% %ao% "%tmp%\%name%.%ext%", "%tmp%\%name%.%ext%", "%res%\%name%.%ext%.res",,,&echo patching %name%.%ext%
%pe% -c %tmp%\%name%.%ext% >nul
set com=EX_
%cab% /D CompressionType=LZX /D CompressionMemory=21 "%tmp%\%name%.%ext%" "i386\%big%.%com%" >nul

Edited by ALtF4
Link to comment
Share on other sites

ok so i checked onepieces ie7 addon and evrything seemed to be patched, i was kinda hoping the nrie7 addon would be released so i could also check compability...n e ways a new build should be uploaded by the end of the day.

Edited by bober
Link to comment
Share on other sites

Bober, mate , finally ı solved inetcpl.cpl.mui, iexplore.exe.mui, ieframe.dll.mui, hmmapi.dll.mui on NRIE7en bug :)

I editted it in turkish NRIE7.

It works!!

Just you will edit it in your language.

This will be also good for you Rud ;) because you wont try to patch it manually ;)

Cheers...

@echo off
color 3A
mode con cols=40 lines=12
set rh=Programs\ResHacker
set pe=Programs\PEChecksum
set cab=Programs\makecab
set xp=Programs\expand
set res=Resources
set tmp=temp
set sptmp=spcabtmp
set spcab=DRIVER.CAB
set xtra=Extra
set ao=-addoverwrite
set del=-delete
set cp=copy
set NRIE7tmp=NRIE7cabtmp
set NRIE7cab=NR_IE7.cab
if not exist "%tmp%" md "%tmp%"
:expand_NRIE7cab
if not exist "i386\%NRIE7cab%" goto expand_NRUpdPck
echo.
echo cikartiliyor %NRIE7cab%
if not exist "%NRIE7tmp%" md "%NRIE7tmp%"
%xp% "i386\%NRIE7cab%" -F:* "%NRIE7tmp%" >nul
:iexplorem
set name=iexplore
set name1=exe
set ext=mui
if not exist "%NRIE7tmp%\%name%.%name1%.%ext%" goto ieframemui
%rh% %ao% "%NRIE7tmp%\%name%.%name1%.%ext%", "
%NRIE7tmp%\%name%.%name1%.%ext%",
"%res%\%name%.%name1%.%ext%.res",,,&echo duzenleniyor
%name%.%name1%.%ext%
%pe% -c %NRIE7tmp%\%name%.%name1%.%ext% >nul
:ieframemui
set name=ieframe
set name1=dll
set ext=mui
if not exist "%NRIE7tmp%\%name%.%name1%.%ext%" goto hmmapimui
%rh% %ao% "%NRIE7tmp%\%name%.%name1%.%ext%",
"%NRIE7tmp%\%name%.%name1%.%ext%",
"%res%\%name%.%name1%.%ext%.res",,,&echo duzenleniyor
%name%.%name1%.%ext%
%pe% -c %NRIE7tmp%\%name%.%name1%.%ext% >nul
:hmmapimui
set name=hmmapi
set name1=dll
set ext=mui
if not exist "%NRIE7tmp%\%name%.%name1%.%ext%" goto inetcplmui
%rh% %ao% "%NRIE7tmp%\%name%.%name1%.%ext%",
"%NRIE7tmp%\%name%.%name1%.%ext%",
"%res%\%name%.%name1%.%ext%.res",,,&echo duzenleniyor
%name%.%name1%.%ext%
%pe% -c %NRIE7tmp%\%name%.%name1%.%ext% >nul
:inetcplmui
set name=inetcpl
set name1=cpl
set ext=mui
if not exist "%NRIE7tmp%\%name%.%name1%.%ext%" goto nrie7_cab
%rh% %ao% "%NRIE7tmp%\%name%.%name1%.%ext%",
"%NRIE7tmp%\%name%.%name1%.%ext%",
"%res%\%name%.%name1%.%ext%.res",,,&echo duzenleniyor
%name%.%name1%.%ext%
%pe% -c %NRIE7tmp%\%name%.%name1%.%ext% >nul
:nrie7_cab
echo olusturuluyor %NRIE7cab%
echo>NR_IE7_cab.DDF .Set Cabinet=on&echo>>NR_IE7_cab.DDF .Set
Compress=on&echo>>NR_IE7_cab.DDF .Set
CompressionType=LZX&echo>>NR_IE7_cab.DDF .Set
CompressionMemory=21
echo>>NR_IE7_cab.DDF .Set
FolderSizeThreshold=5000000&echo>>NR_IE7_cab.DDF .Set
MaxDiskSize=CDROM&echo>>NR_IE7_cab.DDF .Set DiskDirectory1="%~dp0"
echo>>NR_IE7_cab.DDF .Set InfFileName=NUL&echo>>NR_IE7_cab.DDF .Set
RptFileName=NUL&echo>>NR_IE7_cab.DDF .Set CabinetNameTemplate="i386\%NRIE7cab%"
for /F %%i in ('dir/B/ON/A-D %NRIE7tmp%') do echo>>NR_IE7_cab.DDF %NRIE7tmp%\%%i
%cab% /F NR_IE7_cab.DDF >nul

Edited by ALtF4
Link to comment
Share on other sites

well apart from adding lines "if not exist go to next label" is there any other difference between what i have already implemented?

Well, lets check:

This is what you gave me:

:nrie7inetcplmui
set name=inetcpl
set name1=cpl
set ext=mui
%rh% %ao% "NRIE7en\%name%.%name1%.%ext%",
"NRIE7en\%name%.%name1%.%ext%",
"%res%\%name%.%ext%.res",,,&echo patching
%name%.%name1%.%ext%
%pe% -c NRIE7en\%name%.%name1%.%ext% >nul

I didint noticed lines, ı supposed that they were right.

But:

:inetcplmui
set name=inetcpl
set name1=cpl
set ext=mui
if not exist "%NRIE7tmp%\%name%.%name1%.%ext%" goto nrie7_cab
%rh% %ao% "%NRIE7tmp%\%name%.%name1%.%ext%",
"%NRIE7tmp%\%name%.%name1%.%ext%",
"%res%\%name%.[b]%name1%[/b].%ext%.res",,,&echo duzenleniyor
%name%.%name1%.%ext%
%pe% -c %NRIE7tmp%\%name%.%name1%.%ext% >nul

Yes, little part but ı think most important part.

And ı am trying to help.

If you dont want, tell me.

Edited by ALtF4
Link to comment
Share on other sites

this part is no good:

...

"%res%\%name%.%name1%.%ext%.res",,,&echo duzenleniyor %name%.%name1%.%ext%%pe% -c %NRIE7tmp%\%name%.%name1%.%ext% >nul

the res file in my pack is:

inetcpl.mui.res and not inetcpl.cpl.mui.res ( if both are present, the new update ill upload wont have it as it dosent make sense having 2 x the same file with different names when the script can patch both file witht he same res.)

Edited by bober
Link to comment
Share on other sites

this part is no good:

...

"%res%\%name%.%name1%.%ext%.res",,,&echo duzenleniyor %name%.%name1%.%ext%%pe% -c %NRIE7tmp%\%name%.%name1%.%ext% >nul

the res file in my pack is:

inetcpl.mui.res and not inetcpl.cpl.mui.res

In NRIE7 it is inetcpl.cpl.mui.res.

Hmm, i think we found one diffrence more like xpsp*res.dll.

Link to comment
Share on other sites

the nrie7 addon's original file is inetcpl.cpl.mui , in the resource folder the file is called inetcpl.mui.res.

onepieceie7 addons has: inetcpl.mui

nrie7 addon has : inetcpl.cpl.mui

so i made 1 res file: inetcpl.mui.res so only the code changes when applying the res file to either nr's file or onepeice's file.

edit:also, i jsut test ricks mce addon and i must say it seems to be working great,if you plan on using it ,as always use xptsp at the end so ure setup will be detected as mce and ull get the full mce patching(which looks great)

ok so evrything seems ok, im currently editign the ehres.res cause thers some oddness with some pngs/html settings...n e ways im tryign to fix it and ill upload after.

edit:ok well i managed to fix the res and things really look sleek.so ill uplaod

Edited by bober
Link to comment
Share on other sites

hi

first of all thx for the Xp theme source patcher

second now i was wondering that Microsoft video that appears before Logon and after oobe

which got some sounds

where i can find it`s file b/c i need it and thx for help

Link to comment
Share on other sites

yeah i know, seems you have to have drivers that are installed/registered at that time,cause depending on the hardware i have i do or dont see/hear any video/music.

but in virtual box i always can.

Edited by bober
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...