MSFN Forum: SFXCAB.EXE - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

SFXCAB.EXE Rate Topic: -----

#21 User is offline   tomasz86 

  • http://windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,252
  • Joined: 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 25 June 2011 - 03:11 AM

I want to add one thing about update.ver. As I said before it doesn't seem to play any role but still the file itself MUST be present in the update folder. I also said it could be empty but in reality in MUST have at least the line:

[SourceFilesInfo]


I hope everything is clear now :P

This post has been edited by tomasz86: 25 June 2011 - 03:12 AM



#22 User is offline   maheep 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 31-July 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 25 June 2011 - 11:03 PM

Thanx a lot for quick reply. I shall post some other versions of sfxcab modules soon.

I was also able to apply Wildbill's patch to the latest release of Update.exe (the one with IE8 update package) and it works awesome. I was able to do a full slipstream.
Checkup MSFN for updates !!

#23 User is offline   tomasz86 

  • http://windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,252
  • Joined: 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 02 July 2011 - 05:01 AM

Instead of using WildBill's update.exe or BlackWingCat's patch you can just edit the file yourself.

Open update.exe in hex editor and replace the string 0f 86 -> 90 e9

Posted Image

You can do it for any language version while WildBill's update.exe is in English only (althought can be used for other languages too but the installer will be in English).

And below you can see how to make "multilanguage" update.exe (thanks to BlackWingCat).

Posted Image

74 -> eb and the modified update.exe doesn't check the language settings from update.inf which can actually be very useful when making multilanguage unofficial updates (some system files are language neutral)

and the last, I found Chinese / Taiwanese boards where there seem to be a lot of useful information about modifying M$ udpates. Have a look at this thread

http://bbs.wmzhe.com...age=1#pid147152


where you can see how to make MSCF.sfx.

Is here anyone able to download the files available at this forum?

http://www.pczone.co...hread/3/152921/

I even managed to register there but I'm still unable to download :/ They say that b.exe is sfxcab.exe.

This post has been edited by tomasz86: 02 July 2011 - 07:46 AM


#24 User is offline   maheep 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 31-July 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 07 August 2011 - 02:04 AM

:whistle: To make an SFX Module for yourself, I suggest that you use PE Explorer to hack the Resources of this module (the one posted by on the previous page). I was unable to get it working with Resource Hacker, probably, because the module has been extracted from an update, which is digitally signed by Microsoft. If it is reshacked, it will produce an error.

Cheers and Regards

This post has been edited by maheep: 25 August 2011 - 07:37 PM


#25 User is offline   tomasz86 

  • http://windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,252
  • Joined: 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 21 April 2012 - 05:12 AM

Edit: Updated information available in #31.

This post has been edited by tomasz86: 16 April 2013 - 12:50 PM


#26 User is offline   erpdude8 

  • MSFN Master
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,139
  • Joined: 24-November 04

Posted 03 August 2012 - 08:39 AM

View Posteryen, on 12 November 2007 - 01:21 PM, said:

How to creat SFXCAB file.

1. Hex edit one update file. Delete after MSCF part. So u have sfx module. lets name it cab.sfx
2. Compress all folder or files with make cab. lets name it files.cab
3. copy /b cab.sfx+files.cab files.exe
4. Hex edit to run files after extract. For example. u want to run setup.exe
Search setup.exe in files.exe.
There is 20 00 in front of setup.exe
Chance it to 60 00.

Done.
Run your sfx cab file.


new steps to create SFXCAB packages, but this time it now requires using PE Explorer (just use a demo version of it or google search for PE Explorer portable - PE Explorer ain't free) as maheep suggested to modify the resources, which is necessary for your sfxcab package to actually work.

1. hex edit an sfxcab based update file and remove anything from the MSCF section onward. rename it to cab.sfx
2. compress whatever files with Cabarc.exe using LZX:21 compression option (don't bother using makecab.exe). name the created cabinet file as files.cab
3. run copy /b cab.sfx+files.cab files.exe
4. hex edit files.exe. if you want to run update.exe, look for update.exe in files.exe and search for hex values "20 00" in front of update.exe. change 20 to 60 and save changes.
5. open files.exe in PE Explorer, correct the "raw data values" by clicking Yes and use the Save As command from the File menu to save changes [if you don't use PE Explorer to fix the raw data values of your newly created sfxcab package and you try to run it, you will get a "not a valid win32 application" error message]
6. after correcting the raw data values of files.exe in PE explorer, run files.exe and test it.

This post has been edited by erpdude8: 03 August 2012 - 08:44 AM


#27 User is offline   tomasz86 

  • http://windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,252
  • Joined: 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 03 August 2012 - 10:02 AM

@erpdude8

I think you're making this overly complicated :w00t: No other tools than the ones listed before in this topic are required as long as your version of MSCF.sfx is correct. You get the error message because the MSCF.sfx used is actually incorrect. In case of MSCF.sfx its version number is completely irrelevant. The only thing which is important is whether it works or not.

The whole process is very simple:

1. Patch the update.exe
2. Pack to CAB using cabarc.exe.
3. Copy/b mscf.sfx and the CAB you've just created to an .EXE archive.
4. Hex edit the line before update\update.exe.

How to get a working MSCF.sfx (from the other topic):
Spoiler


#28 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,272
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 03 August 2012 - 10:30 AM

In addition, it's the THIRD "MSCF" - the offset (as shown) is different between older/newer versions. The Program to be executed is irrelevant. Also, there IS a difference between THIS SFX (actually says "SFXCAB.EXE" in the Properties) and another one that uses a DIFFERENT SFX (the one that WildBill refers to needing "patched", AFAICR).

This post has been edited by submix8c: 03 August 2012 - 10:30 AM


#29 User is offline   erpdude8 

  • MSFN Master
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,139
  • Joined: 24-November 04

Posted 02 October 2012 - 11:45 AM

View Posttomasz86, on 02 July 2011 - 05:01 AM, said:

Instead of using WildBill's update.exe or BlackWingCat's patch you can just edit the file yourself.

Open update.exe in hex editor and replace the string 0f 86 -> 90 e9

Posted Image



wow tomasz86, that info is very good but finding the hex string "0f 86" is too broad because there are many instances of "0f 86" as I've checked the update.exe file in a hex editor (and some users may get confused as to where to change that hex string to the required kind).

to greatly narrow it down, find the following hex string in a hex editor: D0 0B 01 0F 86
then change the last two bytes in that string to "90 E9" to read "D0 0B 01 90 E9"

#30 User is offline   tomasz86 

  • http://windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,252
  • Joined: 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 02 October 2012 - 10:47 PM

@erpdude8

Yes, that post of mine is quite old. Check #25 for the updated info.

#31 User is offline   tomasz86 

  • http://windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,252
  • Joined: 27-November 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 16 April 2013 - 12:49 PM

UPDATE

This is an update to the post #25. You need to patch the cabbed archive differently depending on whether it's an update or a service pack.

1) Patching update.exe using XVI32:

ECHO>sfxcab.xsc REPLACE 0B 01 04 89 1D BY 0B 01 10 89 1D
START/WAIT xvi32.exe update.exe /S=sfxcab.xsc
DEL sfxcab.xsc


2) Patching the archive (update.cab) before merging it with MSCF.sfx:

Update
ECHO>sfxcab.xsc REPLACE 20 00 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65 BY 60 00 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65
START/WAIT xvi32.exe update.cab /S=sfxcab.xsc
DEL sfxcab.xsc


Service Pack
ECHO>sfxcab.xsc REPLACE 20 00 69 33 38 36 5C 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65 BY 60 00 69 33 38 36 5C 75 70 64 61 74 65 5C 75 70 64 61 74 65 2E 65 78 65
START/WAIT xvi32.exe update.cab /S=sfxcab.xsc
DEL sfxcab.xsc


#32 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,988
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 16 April 2013 - 01:13 PM

So, (2) means:

<Update> "update\update.exe", as opposed to <Service Pack> "i386\update\update.exe", the difference being the prepended "i386\", since the 0x20 => 0x60 edit remains the same.

Enlightening, thanks! :thumbup

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy