Home
%3CLINGO-SUB%20id%3D%22lingo-sub-724089%22%20slang%3D%22en-US%22%3EThe%20Case%20of%20the%20Hung%20Game%20Launcher%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-724089%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TechNet%20on%20Jul%2018%2C%202011%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EI%20love%20the%20cases%20people%20send%20me%20where%20the%20%3CA%20href%3D%22http%3A%2F%2Fwww.sysinternals.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Sysinternals%20%3C%2FA%3E%20tools%20have%20helped%20them%20successfully%20troubleshoot%2C%20but%20nothing%20is%20more%20satisfying%20than%20using%20them%20to%20solve%20my%20own%20cases.%20This%20case%20in%20particular%20was%20fun%20because%2C%20well%2C%20solving%20it%20helped%20me%20get%20back%20to%20having%20fun.%3C%2FP%3E%0A%20%20%3CP%3EWhen%20I%20have%20time%2C%20I%20occasionally%20play%20PC%20games%20to%20let%20off%20steam%20(pun%20intended%2C%20as%20you%E2%80%99ll%20see).%20One%20of%20my%20favorites%20over%20the%20last%20few%20years%20was%20the%20puzzle%20game%2C%20%3CA%20href%3D%22http%3A%2F%2Forange.half-life2.com%2Fportal.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Portal%20%3C%2FA%3E%20.%20I%20enjoyed%20the%20first%20Portal%20so%20much%20that%20I%20pre-ordered%20%3CA%20href%3D%22http%3A%2F%2Fwww.valvesoftware.com%2Fgames%2Fportal2.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Portal%202%20%3C%2FA%3E%20on%20Valve%E2%80%99s%20%3CA%20href%3D%22http%3A%2F%2Fstore.steampowered.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Steam%20%3C%2FA%3E%20network%20when%20it%20became%20available%20and%20played%20through%20it%20within%20a%20few%20hours%20of%20its%20release.%20Since%20then%2C%20I%E2%80%99ve%20been%20playing%20community-developed%20maps.%20Last%20Saturday%20I%20started%20a%20particularly%20fun%20map%2C%20a%20winner%20from%20a%20%3CA%20href%3D%22http%3A%2F%2Fforums.thinkingwithportals.com%2Fnewspost-t3751.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20community%20map%20contest%20%3C%2FA%3E%20%2C%20but%20didn%E2%80%99t%20have%20time%20to%20finish%20it%20in%20one%20sitting.%20The%20next%20morning%20I%20returned%20to%20my%20PC%2C%20double-clicked%20on%20the%20Portal%202%20desktop%20icon%2C%20and%20got%20the%20standard%20Steam%20launch%20dialog.%20The%20game%20normally%20launches%20in%20a%20couple%20of%20seconds%2C%20but%20this%20time%20the%20dialog%20just%20sat%20there%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22148%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F2287.image_5F00_thumb.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121351i1E417358CE2C1559%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22324%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EI%20killed%20Steam%20and%20double-clicked%20again%2C%20but%20again%20the%20dialog%20hung.%20I%20captured%20a%20Process%20Monitor%20trace%20and%20looked%20at%20the%20stacks%20of%20Steam%E2%80%99s%20threads%20in%20Process%20Explorer%2C%20but%20didn%E2%80%99t%20see%20any%20clues.%20Figuring%20that%20perhaps%20Portal%202%E2%80%99s%20configuration%20or%20installation%20had%20somehow%20been%20corrupted%2C%20I%20deleted%20Portal%202%2C%20re-downloaded%20it%2C%20and%20reinstalled%20it.%20That%20didn%E2%80%99t%20fix%20the%20problem%2C%20though.%20With%20Portal%202%20reset%20to%20a%20clean%20state%2C%20that%20left%20either%20Steam%20or%20some%20general%20Windows%20issue%20to%20blame.%20The%20next%20step%20was%20therefore%20to%20reinstall%20Steam.%3C%2FP%3E%0A%20%20%3CP%3EI%20first%20went%20to%20the%20Uninstall%20or%20Change%20a%20Program%20page%20in%20the%20Control%20Panel%2C%20but%20double-clicking%20on%20the%20Steam%20entry%20brought%20up%20a%20dialog%20asking%20me%20to%20confirm%20uninstalling%20it%20and%20warning%20that%20doing%20so%20would%20delete%20all%20local%20content.%26nbsp%3B%20I%20didn%E2%80%99t%20want%20to%20risk%20losing%20my%20game%20settings%20or%20have%20to%20reinstall%20all%20my%20games%2C%20so%20I%20aborted%20the%20uninstall.%20Most%20Microsoft%20Installer%20Service%20(MSI)-based%20installers%20have%20a%20repair%20option%20that%20reinstalls%20the%20application%20without%20deleting%20user%20data%20or%20configuration%2C%20so%20I%20went%20to%20the%20Steam%20home%20page%2C%20downloaded%20and%20executed%20the%20Steam%20installer.%20Sure%20enough%2C%20the%20install%20wizard%20offered%20the%20repair%20option%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22274%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F6404.image_5F00_thumb_5F00_1.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121352i311429C7D080DA47%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22354%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EWhen%20I%20pressed%20the%20Next%20button%2C%20though%2C%20I%20was%20greeted%20with%20an%20obviously%20misleading%20error%20message%20that%20reported%20a%20network%20error%20while%20trying%20to%20read%20from%20a%20local%20file%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22269%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F3364.image_5F00_thumb_5F00_2.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121353i4ECB6595BD7A67D6%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22354%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EI%20turned%20to%20%3CA%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb896645%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Process%20Monitor%20%3C%2FA%3E%20again%20and%20captured%20a%20trace%20of%20the%20failed%20repair%20operation.%20The%20error%20message%20referred%20to%20a%20file%20named%20SteamInstall%5B1%5D.msi%2C%20so%20I%20searched%20the%20log%20file%20for%20that%20string.%20The%20first%20hit%20was%20the%20data%20value%20read%20in%20a%20query%20of%20a%20registry%20value%20under%20HKCR%5CInstaller%5CProducts%20named%20PackageName%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%2252%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F4857.image_5F00_thumb_5F00_3.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121354i4D1D10E6662C94A4%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EThe%20next%20hits%2C%20a%20few%20operations%20later%2C%20were%20attempts%20by%20the%20installer%20to%20read%20from%20the%20file%20location%20printed%20in%20the%20error%20dialog%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%2243%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F7870.image_5F00_thumb_5F00_4.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121355iD05A4FC471B27D3B%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EThat%20the%20installer%20was%20reading%20the%20file%20name%20from%20an%20existing%20registry%20key%20and%20the%20file%E2%80%99s%20location%20was%20in%20Internet%20Explorer%E2%80%99s%20(IE%E2%80%99s)%20download%20cache%20suggested%20that%20it%20was%20trying%20to%20launch%20the%20copy%20of%20itself%20that%20had%20performed%20the%20initial%20install.%20Because%20I%20had%20originally%20launched%20the%20installer%20via%20IE%20directly%20from%20the%20Valve%20web%20site%2C%20just%20like%20I%20was%20doing%20now%2C%20the%20download%20location%20was%20in%20IE%E2%80%99s%20download%20cache%2C%20but%20the%20file%20must%20have%20aged%20out%20and%20been%20deleted%20since%20then.%3C%2FP%3E%0A%20%20%3CP%3EThe%20Process%20Monitor%20trace%20revealed%20that%20the%20installer%20was%20reading%20the%20original%20location%20from%20the%20registry%2C%20so%20if%20I%20pointed%20the%20registry%20at%20the%20installer%E2%80%99s%20new%20download%20location%2C%20I%20could%20trick%20it%20into%20launching%20itself%2C%20rather%20than%20looking%20for%20the%20previous%20copy%20that%20was%20now%20missing.%20I%20scanned%20the%20log%20for%20the%20new%20download%20location%20by%20searching%20for%20Steaminstall.msi%20and%20found%20its%20path%2C%20another%20download%20cache%20location%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%2250%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F8463.image_5F00_thumb_5F00_6.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121356i9D67FB1034B775E1%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EI%20then%20went%20back%20to%20the%20registry%20query%E2%80%99s%20entry%2C%20right-clicked%20on%20it%2C%20and%20selected%20%E2%80%9CJump%20To%E2%80%9D%20from%20the%20context%20menu.%20That%20caused%20Process%20Monitor%20to%20launch%20Regedit%20and%20navigate%20directly%20to%20the%20registry%20key%2C%20where%20I%20updated%20the%20LastUsedSource%20and%20PackageName%20values%20to%20reflect%20the%20new%20download%20location%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%2261%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F1614.image_5F00_thumb_5F00_5.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121357i0FB0FEFE15E12487%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22404%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3ENext%2C%20I%20dismissed%20the%20installer%E2%80%99s%20error%20dialog%2C%20which%20I%20had%20left%20open%2C%20and%20pressed%20the%20wizard%E2%80%99s%20Next%20button%20to%20try%20the%20repair%20again.%20This%20time%2C%20Steam%20proceeded%20to%20reinstall%20and%20the%20wizard%20concluded%20with%20a%20message%20of%20success%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22140%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2Fcommunityserver-blogs-components-weblogfiles%2F00-00-00-52-36-metablogapi%2F0131.image_5F00_thumb_5F00_7.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121358iE66DC0E43A8564D2%22%20style%3D%22border-right-width%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%22%20title%3D%22image%22%20width%3D%22354%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3ECrossing%20my%20fingers%2C%20I%20launched%20Portal%202.%20Steams%E2%80%99s%20%E2%80%98Preparing%20to%20Launch%E2%80%99%20dialog%20flashed%20for%20a%20second%20and%20then%20Portal%202%E2%80%99s%20splash%20screen%20took%20over%20the%20screen%3A%20case%20closed.%26nbsp%3B%20Uninstalling%20and%20then%20reinstalling%20Steam%20and%20all%20the%20games%20would%20have%20likely%20lead%20to%20the%20same%20conclusion%2C%20but%20Process%20Monitor%20had%20surely%20saved%20me%20a%20lot%20of%20time%20and%20possibly%20even%20my%20saved%20game%20state%20and%20configurations.%20In%20just%20a%20few%20minutes%20I%20was%20back%20to%20solving%20puzzles%20of%20a%20different%20kind.%3C%2FP%3E%0A%20%20%3CP%3ECheck%20out%20the%20new%20%3CA%20href%3D%22http%3A%2F%2Foreilly.com%2Fcatalog%2F0790145316974%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Windows%20Sysinternals%20Administrator%E2%80%99s%20Reference%20%3C%2FA%3E%20by%20me%20and%20Aaron%20Margosis%20for%20more%20tips%20on%20using%20all%2070%2B%20Sysinternals%20tools%20to%20troubleshoot%20and%20manage%20your%20Windows%20systems!%20Buy%20a%20copy%20by%20August%2015%2C%20email%20the%20receipt%20to%20me%20at%20%3CA%20href%3D%22mailto%3Amarkruss%40ntdev.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20markruss%40ntdev.microsoft.com%20%3C%2FA%3E%20and%20I%E2%80%99ll%20enter%20you%20for%20a%20drawing%20of%20one%20of%2010%20signed%20copies%20of%20%3CA%20href%3D%22http%3A%2F%2Fwww.zerodaythebook.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Zero%20Day%20%3C%2FA%3E%20I%E2%80%99m%20giving%20away.%3C%2FP%3E%0A%20%20%3CP%3E%3CEM%3E%20Mark%20Russinovich%20is%20a%20Technical%20Fellow%20on%20the%20Windows%20Azure%20team%20at%20Microsoft%20and%20is%20author%20of%20%3CA%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb963901%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Windows%20Internals%20%3C%2FA%3E%20%2C%20%3CA%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fhh290819%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20The%20Windows%20Sysinternals%20Administrator%E2%80%99s%20Reference%20%3C%2FA%3E%20%2C%20and%20the%20cyberthriller%20%3CA%20href%3D%22http%3A%2F%2Fwww.zerodaythebook.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Zero%20Day%3A%20A%20Novel%20%3C%2FA%3E%20.%20You%20can%20contact%20him%20at%20%3C%2FEM%3E%20%3CA%20href%3D%22mailto%3Amarkruss%40ntdev.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20%3CEM%3E%20markruss%40ntdev.microsoft.com%20%3C%2FEM%3E%20%3C%2FA%3E%20%3CEM%3E%20.%20%3C%2FEM%3E%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-724089%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TechNet%20on%20Jul%2018%2C%202011%20I%20love%20the%20cases%20people%20send%20me%20where%20the%20Sysinternals%20tools%20have%20helped%20them%20successfully%20troubleshoot%2C%20but%20nothing%20is%20more%20satisfying%20than%20using%20them%20to%20solve%20my%20own%20cases.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-724089%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMark%20Russinovich%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TechNet on Jul 18, 2011

I love the cases people send me where the Sysinternals tools have helped them successfully troubleshoot, but nothing is more satisfying than using them to solve my own cases. This case in particular was fun because, well, solving it helped me get back to having fun.

When I have time, I occasionally play PC games to let off steam (pun intended, as you’ll see). One of my favorites over the last few years was the puzzle game, Portal . I enjoyed the first Portal so much that I pre-ordered Portal 2 on Valve’s Steam network when it became available and played through it within a few hours of its release. Since then, I’ve been playing community-developed maps. Last Saturday I started a particularly fun map, a winner from a community map contest , but didn’t have time to finish it in one sitting. The next morning I returned to my PC, double-clicked on the Portal 2 desktop icon, and got the standard Steam launch dialog. The game normally launches in a couple of seconds, but this time the dialog just sat there:

image

I killed Steam and double-clicked again, but again the dialog hung. I captured a Process Monitor trace and looked at the stacks of Steam’s threads in Process Explorer, but didn’t see any clues. Figuring that perhaps Portal 2’s configuration or installation had somehow been corrupted, I deleted Portal 2, re-downloaded it, and reinstalled it. That didn’t fix the problem, though. With Portal 2 reset to a clean state, that left either Steam or some general Windows issue to blame. The next step was therefore to reinstall Steam.

I first went to the Uninstall or Change a Program page in the Control Panel, but double-clicking on the Steam entry brought up a dialog asking me to confirm uninstalling it and warning that doing so would delete all local content.  I didn’t want to risk losing my game settings or have to reinstall all my games, so I aborted the uninstall. Most Microsoft Installer Service (MSI)-based installers have a repair option that reinstalls the application without deleting user data or configuration, so I went to the Steam home page, downloaded and executed the Steam installer. Sure enough, the install wizard offered the repair option:

image

When I pressed the Next button, though, I was greeted with an obviously misleading error message that reported a network error while trying to read from a local file:

image

I turned to Process Monitor again and captured a trace of the failed repair operation. The error message referred to a file named SteamInstall[1].msi, so I searched the log file for that string. The first hit was the data value read in a query of a registry value under HKCR\Installer\Products named PackageName:

image

The next hits, a few operations later, were attempts by the installer to read from the file location printed in the error dialog:

image

That the installer was reading the file name from an existing registry key and the file’s location was in Internet Explorer’s (IE’s) download cache suggested that it was trying to launch the copy of itself that had performed the initial install. Because I had originally launched the installer via IE directly from the Valve web site, just like I was doing now, the download location was in IE’s download cache, but the file must have aged out and been deleted since then.

The Process Monitor trace revealed that the installer was reading the original location from the registry, so if I pointed the registry at the installer’s new download location, I could trick it into launching itself, rather than looking for the previous copy that was now missing. I scanned the log for the new download location by searching for Steaminstall.msi and found its path, another download cache location:

image

I then went back to the registry query’s entry, right-clicked on it, and selected “Jump To” from the context menu. That caused Process Monitor to launch Regedit and navigate directly to the registry key, where I updated the LastUsedSource and PackageName values to reflect the new download location:

image

Next, I dismissed the installer’s error dialog, which I had left open, and pressed the wizard’s Next button to try the repair again. This time, Steam proceeded to reinstall and the wizard concluded with a message of success:

image

Crossing my fingers, I launched Portal 2. Steams’s ‘Preparing to Launch’ dialog flashed for a second and then Portal 2’s splash screen took over the screen: case closed.  Uninstalling and then reinstalling Steam and all the games would have likely lead to the same conclusion, but Process Monitor had surely saved me a lot of time and possibly even my saved game state and configurations. In just a few minutes I was back to solving puzzles of a different kind.

Check out the new Windows Sysinternals Administrator’s Reference by me and Aaron Margosis for more tips on using all 70+ Sysinternals tools to troubleshoot and manage your Windows systems! Buy a copy by August 15, email the receipt to me at markruss@ntdev.microsoft.com and I’ll enter you for a drawing of one of 10 signed copies of Zero Day I’m giving away.

Mark Russinovich is a Technical Fellow on the Windows Azure team at Microsoft and is author of Windows Internals , The Windows Sysinternals Administrator’s Reference , and the cyberthriller Zero Day: A Novel . You can contact him at markruss@ntdev.microsoft.com .