[Req] Can Microsoft Update be provided as add-on

Questions about Update Pack making? Ask here.
Post Reply
zhengzhi82
Posts: 13
Joined: Sat Oct 14, 2006 6:18 am

[Req] Can Microsoft Update be provided as add-on

Post by zhengzhi82 » Fri Oct 20, 2006 11:22 pm

I have problems with MU (High CPU 100% usage of svchost.exe process) after a fresh install of Sept./Oct. pack and after searching with google I found out that it was an issue with MU and the fix was converting MU back to Windows Update via microsoft update site. After doing this the problem was fixed and everything went perfect. Therefore is it possible to make MU as a standalone add-on instead of part of main Update Packs. I've searched the forum and found some topics discussing this but unfortunately there is no perfect solutions. Thanks a lot!

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Fri Oct 20, 2006 11:55 pm

The solution isn't too hard if you're up to replacing a couple of files after integrating the Update Pack.
  • DataStor.ed_ - Create a new text file named DataStor.txt, type anything you want into it and save it, rename it DataStor.edb, then compress it with CABARC. Replace the existing file in I386 with your new one. I had thought a zero-length file would work, but it will produce errors during the Textmode file copy phase. You can't simply delete this file from I386; you'll break the install.
  • RVMUpPck.in_ - Edit the original file RVMUpPck.inf contained within the Update Pack you're using and replace the existing file in I386 with your new file after compressing it with CABARC.
    • Replace this:

      Code: Select all

      [MU.AddReg]
      HKCU,"Software\Policies\Microsoft\Internet Explorer","Windows Update Menu Text",0,"Microsoft Update"
      HKLM,"%RUNONCE%","MU-1",,"REG ADD ""HKLM\%RUNONCE%"" /v ""MU"" /t REG_SZ /d ""CMD /Q /C DEL \"""%16406%\Windows Update.lnk\""" /Q/F"""
      with this:

      Code: Select all

      [MU.AddReg]
      HKLM,"%RUNONCE%","MU-1",,"REG ADD ""HKLM\%RUNONCE%"" /v ""MU"" /t REG_SZ /d ""CMD /Q /C DEL \"""%16406%\Microsoft Update.lnk\""" /Q/F"""
      
    Just copy/paste what I've posted here. Change absolutely nothing else and it should work perfectly. You'll also be able to go back to using Microsoft Update without downloading the preinstalled ActiveX control.
The problems you saw while reading other discussions were entirely caused by people wanting to change and remove far more than is necessary or justified. Windows Update uses all of the same files that Microsoft Update uses with the exception of MUWEB.DLL. There is no comparatively simple way of removing this file from the Update Pack or from your source once it's been integrated. It's best to leave it alone

EDIT:

After testing this I discovered that the original shortcut and the new one were deleted by a RunOnce entry that I missed. I've simplified the procedure to have the RunOnce entry remove the new Microsoft Update link, leaving the original Windows Update link intact.
Last edited by 5eraph on Sat Oct 21, 2006 6:34 pm, edited 7 times in total.

armond
Posts: 263
Joined: Tue Sep 13, 2005 11:43 am
Location: Glendale, CA USA

Post by armond » Sat Oct 21, 2006 5:49 am

Hi,
5eraph, That was not a bad solution, but I still hope that Ryan remove MU from his update pack and make it as a separte addin. Like DirectX.

User avatar
RyanVM
Site Admin
Posts: 5190
Joined: Tue Nov 23, 2004 6:03 pm
Location: Pennsylvania
Contact:

Post by RyanVM » Sat Oct 21, 2006 10:16 am

Not going to happen.
Get up to $200 off on hosting from the same people who host this website!
http://www.ryanvm.net/forum/viewtopic.php?t=2357

zhengzhi82
Posts: 13
Joined: Sat Oct 14, 2006 6:18 am

Post by zhengzhi82 » Sat Oct 21, 2006 10:29 am

Appreciate your clear description of the solution, 5eraph! I suspect I have to manually do that each time when completing the update pack integration in the future... :?

User avatar
RyanVM
Site Admin
Posts: 5190
Joined: Tue Nov 23, 2004 6:03 pm
Location: Pennsylvania
Contact:

Post by RyanVM » Sat Oct 21, 2006 11:18 am

Maybe you can talk someone into making a removal addon for you.
Get up to $200 off on hosting from the same people who host this website!
http://www.ryanvm.net/forum/viewtopic.php?t=2357

marzsyndrome
Posts: 239
Joined: Sun May 28, 2006 6:01 am

Post by marzsyndrome » Sat Oct 21, 2006 12:03 pm

5eraph wrote:
  • DataStor.ed_ - Create a zero-length file named DataStor.edb and compress it with CABARC. Replace the existing file in I386 with your new one. Yes, the compressed file will be larger than zero bytes. No, you cannot skip CABARC without breaking your install. Nor can you simply delete this file from I386; you'll break the install.
Is it not possible to simply remove all references to it in txtsetup.sif and dosnet.inf then?

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Sat Oct 21, 2006 2:20 pm

Of course it's possible, marzsyndrome. I'm just saying that it's not nearly as easy as what I've posted above. ;)

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Sat Oct 21, 2006 4:16 pm

I found a mistake in my method that completely removed the Windows Update link. I've corrected it to simply remove the new Microsoft Update link.

zhengzhi82
Posts: 13
Joined: Sat Oct 14, 2006 6:18 am

Post by zhengzhi82 » Sun Oct 22, 2006 12:51 am

5eraph wrote:I found a mistake in my method that completely removed the Windows Update link. I've corrected it to simply remove the new Microsoft Update link.
I made a new integrated ISO with Oct. pack and then did exactly as the updated solution you had pointed out in this thread and installed it on my laptop -- Everything works excellent now! Windows Update is the default one and no need to install the ActiveX control. Thank you very much! :)

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Sun Oct 22, 2006 8:12 pm

I'm glad I could help. :)

I've been trying to make an addon that works around Ryan's RunOnce entry without making changes to his INF or adding unnecessary bloat, but it's a bit convoluted.

I'll post what I have so far. This works when I click to install after Windows, but I can't seem to get it to work when integrated. A custom DataStor.edb would be included as described in my method above.

entries_Dflt2WU.ini

Code: Select all

;Default to Windows Update Addon by 5eraph

[general]
builddate=2006/10/22
description=5eraph's Default to Windows Update Addon for any RVM Update Pack
title=Windows Update Addon
language=English

[filenames]
maininf=Dflt2WU.inf

[sysoc]
Dflt2WU=ocgen.dll,OcEntry,%maininf%,HIDE,7

[dosnet_files]
d1,%maininf%

[txtsetup_files]
%maininf%    = 100,,,,,,,20,0,0

[i386_compress]
rvmtemp\extracted\DataStor.edb
rvmtemp\extracted\Dflt2WU.inf
Dflt2WU.inf

Code: Select all

;Default to Windows Update Addon by 5eraph

[Version]
Signature=$Windows NT$

[DefaultInstall]
OptionDesc	="Default to Windows Update Addon"
Tip		="Default to Windows Update Addon"
Modes		=0,1,2,3
AddReg		=WU.AddReg
DelReg		=WU.DelReg

[WU.AddReg]
HKLM,"%RUNONCE%","WU-1",,"REG ADD ""HKLM\%RUNONCE%"" /v ""WU-a"" /t REG_SZ /d ""CMD /Q /C DEL \"""%16406%\Microsoft Update.lnk\""" /Q/F"""
HKLM,"%RUNONCE%","WU-2",0,"REG ADD ""HKLM\%RUNONCE%"" /v ""WU-b"" /t REG_SZ /d ""rundll32.exe advpack.dll,LaunchINFSection %17%\Dflt2WU.inf,WUShortcut.Install"" /F""

[WU.DelReg]
HKCU,"Software\Policies\Microsoft\Internet Explorer","Windows Update Menu Text"

[WUShortcut.Install]
ProfileItems	=WU.Shortcut

[WU.Shortcut]
Name		=Windows Update
CmdLine		=11,,wupdmgr.exe
SubDir		=..
WorkingDir	=-1
IconPath	=11,,wupdmgr.exe
Infotip		=Offers the latest critical and security updates for Windows.

[Strings]
RUNONCE="Software\Microsoft\Windows\CurrentVersion\RunOnce"
The main problem I'm having is getting either RunOnce entry to actually work when integrated, not just WU-2. Should I make one INF per RunOnce? Any suggestions or comments would be welcome.

User avatar
MrNxDmX
Moderator
Posts: 3112
Joined: Mon Jan 03, 2005 7:33 am

[Release] Remove Microsoft Update from RyanVM Update Pack

Post by MrNxDmX » Sun Oct 22, 2006 8:29 pm

@ 5eraph, I followed your direction, including an empty DataStor.edb file. Added lines to edit Rvmuppck.inf, dosnet.inf and txtsetup.sf files.
Here: [Release] Disable Microsoft Update in RyanVM Update Pack
I made a new install folder and tested this with RVM Update Pack 2.1.3. Everything was fine. But havent done an install yet, install should go fine though.
Last edited by MrNxDmX on Fri Oct 27, 2006 12:43 am, edited 1 time in total.

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Sun Oct 22, 2006 8:38 pm

Keep in mind that DataStor.edb can't be entirely empty. I ran into file copy errors like that.

User avatar
MrNxDmX
Moderator
Posts: 3112
Joined: Mon Jan 03, 2005 7:33 am

Post by MrNxDmX » Mon Oct 23, 2006 7:06 am

5eraph wrote:Keep in mind that DataStor.edb can't be entirely empty. I ran into file copy errors like that.
Thanx for the info. It will not be needed if integrator runs a second time to integrate my addon, cos dosnet.inf and txtsetup.sif entries will be deleted.

I made a test install, and you are right about it. Will update addon asap. :wink:

User avatar
RyanVM
Site Admin
Posts: 5190
Joined: Tue Nov 23, 2004 6:03 pm
Location: Pennsylvania
Contact:

Post by RyanVM » Mon Oct 23, 2006 10:23 am

If you're going to make a removal addon, you might as well do it the right way and remove datastor.edb and muweb.dll (and all references to them) outright.
Get up to $200 off on hosting from the same people who host this website!
http://www.ryanvm.net/forum/viewtopic.php?t=2357

User avatar
MrNxDmX
Moderator
Posts: 3112
Joined: Mon Jan 03, 2005 7:33 am

Post by MrNxDmX » Mon Oct 23, 2006 11:37 am

Ryan, I was confused in that situation. I wanted to rename it as "MU Disabler", cos I didnt remove any dll files, just datastore.edb. You can re-enable MU without downloading files, just a few clicks. Maybe I should rename it to RVM_MU_DisableAddon or RVM_MU_DisablerAddon. What do you guys think?
Maybe users like zhengzhi82 wants a complete removal as Ryan stated on above post.

zhengzhi82
Posts: 13
Joined: Sat Oct 14, 2006 6:18 am

Post by zhengzhi82 » Tue Oct 24, 2006 12:59 am

MrNxDmX wrote:Ryan, I was confused in that situation. I wanted to rename it as "MU Disabler", cos I didnt remove any dll files, just datastore.edb. You can re-enable MU without downloading files, just a few clicks. Maybe I should rename it to RVM_MU_DisableAddon or RVM_MU_DisablerAddon. What do you guys think?
Maybe users like zhengzhi82 wants a complete removal as Ryan stated on above post.
See my 1st post: Since either removal or disabling of MU can solve the "svchost.exe 100% CPU usage" issue, I love the "disabling" solution (originated by 5eraph) more than "removal" solution, as the former can persist the MU/WU activeX without causing any problem. Furthermore I don't care a lot on whether it can be made into an add-on: 5eraph's "manual" solution is good and simple enough for me. Thanks. :)

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Thu Feb 15, 2007 11:32 am

Has anyone tried installing KB916089 and KB927891 to fix the underlying problem?

DeaDruiD
Posts: 22
Joined: Wed Nov 09, 2005 6:08 pm
Location: Brno, Czech Republic

Post by DeaDruiD » Thu Feb 15, 2007 10:28 pm

I did, it's still very slow with Office 2003 installed, although it might prevent automatic updates from slowing down the system completely.

TechnoHunter
Posts: 506
Joined: Sun Feb 26, 2006 4:13 am

Post by TechnoHunter » Fri Feb 16, 2007 6:20 am

5eraph wrote:Has anyone tried installing KB916089 and KB927891 to fix the underlying problem?
would those happen to be on Xables share?

figures i would happen to have both xp pro AND office XP pro (listed in the applies to on the pages from microsoft)

would be interesting to see if they help my machine be faster at updating..

thanks in advance

TechnoHunter

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Fri Feb 16, 2007 9:11 am

TechnoHunter wrote:
5eraph wrote:Has anyone tried installing KB916089 and KB927891 to fix the underlying problem?
would those happen to be on Xables share?
That's where I got them. ;)

Francesco
Posts: 2
Joined: Sat Feb 17, 2007 12:31 am

Post by Francesco » Sat Feb 17, 2007 4:59 pm

Does somebody here happens to know why KB916089 and KB927891 aren't integrated in the RyanVM pack? Is it because they rely on the WU2 update package?

I've had the MU 100% cpu usage problem on almost all of the computers where I installed XP, it would be great if the RyanVM pack shipped with those 2 hotfixes.

User avatar
RyanVM
Site Admin
Posts: 5190
Joined: Tue Nov 23, 2004 6:03 pm
Location: Pennsylvania
Contact:

Post by RyanVM » Sat Feb 17, 2007 11:16 pm

1.) Both of those fixes update the same file, so only 927891 is necessary
2.) I haven't included it because I hadn't heard anything definitive about how well it works and without side effects. In that past, we've run into problems with newer versions of msi.dll causing problems, so I'm obviously hesitant.
Get up to $200 off on hosting from the same people who host this website!
http://www.ryanvm.net/forum/viewtopic.php?t=2357

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Tue Feb 20, 2007 10:07 pm

KB927891v2 Addon

Description:
  • This addon directly integrates the latest known version of MSI.DLL (build 4003) to correct some 100% CPU utilization issues when using the Microsoft Update site.
Details:
  • KB Article Link: KB927891
  • Intended for use with any Windows XP SP2 Update Pack that includes KB893803.
  • Tested in MS Virtual PC 2007 with RyanVM Update Pack 2.1.7.
  • Integrates with RyanVM Integrator v1.4.3 and nLite 1.3RC2 (or later versions of either).
Download:Notes:
  • I've never experienced the CPU utilization problem so I can't report on this update's effectiveness in fixing the problem, but since Microsoft has just officially released the update I believe we can assume that it works and is reasonably error-free.

    My own testing consisted of using the following MSI-based installers:
    • SVCPACK (all passed)
      • RogueSpear's dotNET 1.1 and 2.0
      • My own Firefox 2.0.0.1 installer based on an MSI by FrontMotion
      • RogueSpear's JRE 6.0
      RunOnceEx (all passed)
      • RogueSpear's dotNET 3.0
      • Shark007's Adobe Reader 8
      • Shark007's Shockwave 10.1.4.20
      • My own MessPatched Windows Live Messenger 8.1.178
      Post-Windows Install (passed)
      • Virtual Machine Additions for MS Virtual PC 2007
    Virtual Machine Additions has been known to have problems with some newer versions of MSI.DLL. Hopefully, whatever differences exist between the 2004 and 2007 editions are minor enough to justify calling this specific test successful.

    This may not be the final update to correct the problem. Microsoft has an additional KB Article (KB932494) describing further issues with the SVCHOST process.
Changelog:
  • [2007/02/22 04:25 GMT] - (MS Update status: Public) - Null Update: No changes to binary. Post updated to reflect the change in update release status.
  • [2007/02/21 03:05 GMT] - (MS Update status: Private) - Initial release.
Last edited by 5eraph on Fri Feb 23, 2007 8:29 pm, edited 19 times in total.

User avatar
RyanVM
Site Admin
Posts: 5190
Joined: Tue Nov 23, 2004 6:03 pm
Location: Pennsylvania
Contact:

Post by RyanVM » Wed Feb 21, 2007 1:00 pm

Thanks for taking the initiative to make the addon, 5eraph :)
Get up to $200 off on hosting from the same people who host this website!
http://www.ryanvm.net/forum/viewtopic.php?t=2357

Fragbert
Posts: 338
Joined: Tue Jan 24, 2006 10:59 am

Post by Fragbert » Wed Feb 21, 2007 1:24 pm

Francesco wrote:Does somebody here happens to know why KB916089 and KB927891 aren't integrated in the RyanVM pack? Is it because they rely on the WU2 update package?

I've had the MU 100% cpu usage problem on almost all of the computers where I installed XP, it would be great if the RyanVM pack shipped with those 2 hotfixes.
WU2? What is this?

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Wed Feb 21, 2007 4:05 pm

No problem, Ryan. :)

Fragbert, I'm sure Francesco meant Windows Installer 3.1 v2 (KB893803), noted as a prerequisite in KB916089.

User avatar
RyanVM
Site Admin
Posts: 5190
Joined: Tue Nov 23, 2004 6:03 pm
Location: Pennsylvania
Contact:

Post by RyanVM » Wed Feb 21, 2007 10:14 pm

BTW, they've released KB927891 publicly now :)
Get up to $200 off on hosting from the same people who host this website!
http://www.ryanvm.net/forum/viewtopic.php?t=2357

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Wed Feb 21, 2007 10:55 pm

The MD5 hash of the DLL in the publicly released update matches the one in the addon. I'm guessing that we can reasonably call it "error-free."

Addon post updated.

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Fri Feb 23, 2007 8:38 pm

Microsoft seems to be planning another update to fix related issues. Please read KB932494 for more information.

User avatar
just_laze
Posts: 179
Joined: Tue Mar 21, 2006 12:01 pm
Location: United Kingdom

Post by just_laze » Fri Mar 16, 2007 7:52 pm


Post Reply