MSFN Forum: Install problem with Net framework 4 - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Install problem with Net framework 4

#1 User is offline   zorro1 

  • Junior
  • Pip
  • Group: Members
  • Posts: 81
  • Joined: 02-November 03

Posted 10 January 2012 - 04:18 AM

Hello, sorry for my poor english


Net 4 and the update installation is going well, without any error. at the restart when I run ngen, t have this error '0xc000007b' and I am obliged to revive the net 4 installation and repair.


do you have an idea for this problem


Thank you


My setupcomplete.cmd

Quote


@echo off

for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i:

REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
SET D=%CDROM%\updates

REG ADD %KEY% /V TITLE /D "Installation des Applications" /f

REG ADD %KEY%\001 /VE /D "Mise … jour de Windows 7..." /f
REG ADD %KEY%\001 /V 1 /D "%D%\windows-kb890830-x64-v4.3.exe /q" /f
REG ADD %KEY%\001 /V 2 /D "%D%\windows6.1-kb2533552-x64.msu /quiet /norestart" /f

REG ADD %KEY%\005 /VE /D "Runtime VC++..." /f
REG ADD %KEY%\005 /V 1 /D "%D%\runtime\vcredist_x64_2005.exe /q" /f
REG ADD %KEY%\005 /V 2 /D "%D%\runtime\vcredist_x64_2008.exe /q" /f
REG ADD %KEY%\005 /V 3 /D "%D%\runtime\vcredist_x64_2010.exe /q" /f
REG ADD %KEY%\005 /V 4 /D "%D%\runtime\vcredist_x86_2008.exe /q" /f
REG ADD %KEY%\005 /V 5 /D "%D%\runtime\vcredist_x86_2005.exe /q" /f
REG ADD %KEY%\005 /V 6 /D "%D%\runtime\vcredist_x86_2010.exe /q" /f

REG ADD %KEY%\010 /VE /D "Runtime Java" /f
REG ADD %KEY%\010 /V 1 /D "%D%\java\Jre16x_x86.exe /s /v\"/qb! ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0 SYSTRAY=0 JU=0 AUTOUPDATECHECK=0 MODIFYREMOVE=modify\"" /f

REG ADD %KEY%\015 /VE /D "Flash Player" /f
REG ADD %KEY%\015 /V 1 /D "%D%\flash\flash_32.exe -install" /f

REG ADD %KEY%\207 /VE /D "Net Framework 4..." /f
REG ADD %KEY%\207 /V 2 /D "%D%\net4\dotNetFx40_client_x86_x64.exe /q /norestart" /f
REG ADD %KEY%\207 /V 3 /D "%D%\net4\dotNetFx40LP_Client_x86_x64fr.exe /q /norestart" /f
REG ADD %KEY%\207 /V 4 /D "%D%\net4\x64\NDP40-KB2468871-v2-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 5 /D "%D%\net4\x64\NDP40-KB2518870-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 6 /D "%D%\net4\x64\NDP40-KB2533523-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 7 /D "%D%\net4\x64\NDP40-KB2539636-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 8 /D "%D%\net4\x64\ndp40-kb2572078-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 9 /D "%D%\net4\x64\ndp40-kb2656351-x64.exe /passive /norestart" /f

REG ADD %KEY%\820 /VE /D "Nettoyage et Red‚marrage" /f
REG ADD %KEY%\820 /V 1 /D "%J%\fin.cmd" /f

EXIT




#2 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,976
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 10 January 2012 - 05:45 AM

You get this:

//
// MessageId: STATUS_INVALID_IMAGE_FORMAT
//
// MessageText:
//
// {Bad Image}
// %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.
//
#define STATUS_INVALID_IMAGE_FORMAT      ((NTSTATUS)0xC000007BL)



so it looks like a 32Bit DLL was installed were a 64Bit file is expected. When do you see this message?

#3 User is offline   zorro1 

  • Junior
  • Pip
  • Group: Members
  • Posts: 81
  • Joined: 02-November 03

Posted 10 January 2012 - 07:50 AM

Hello MagicAndre1981

when i clic on ngen.exe after my pc reboot

#4 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,976
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 10 January 2012 - 09:54 AM

Use Dependency Walker to see which wrong DLL is loaded.

This guide is for searching for missing DLLs, but the same way can be used to see which DLL is bad:

http://blogs.technet...ncy-walker.aspx

#5 User is offline   dzed 

  • Group: Members
  • Posts: 5
  • Joined: 21-November 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 January 2012 - 05:52 AM

View Postzorro1, on 10 January 2012 - 04:18 AM, said:



REG ADD %KEY%\207 /VE /D "Net Framework 4..." /f
REG ADD %KEY%\207 /V 2 /D "%D%\net4\dotNetFx40_client_x86_x64.exe /q /norestart" /f
REG ADD %KEY%\207 /V 3 /D "%D%\net4\dotNetFx40LP_Client_x86_x64fr.exe /q /norestart" /f
REG ADD %KEY%\207 /V 4 /D "%D%\net4\x64\NDP40-KB2468871-v2-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 5 /D "%D%\net4\x64\NDP40-KB2518870-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 6 /D "%D%\net4\x64\NDP40-KB2533523-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 7 /D "%D%\net4\x64\NDP40-KB2539636-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 8 /D "%D%\net4\x64\ndp40-kb2572078-x64.exe /passive /norestart" /f
REG ADD %KEY%\207 /V 9 /D "%D%\net4\x64\ndp40-kb2656351-x64.exe /passive /norestart" /f




I have noticed the silent switcher for "Net framework 4+LP+net 4 Hotfix" is wrong, must be like this

dotNetFx40_Full_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT

tested with full and client ver NET Framwork 4
read this in MSDN
.NET Framework Deployment Guide for Administrators


REG ADD %KEY%\207 /VE /D "Net Framework 4..." /f
REG ADD %KEY%\207 /V 2 /D "%D%\net4\dotNetFx40_client_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\207 /V 3 /D "%D%\net4\dotNetFx40LP_Client_x86_x64fr.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\207 /V 4 /D "%D%\net4\x64\NDP40-KB2468871-v2-x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\207 /V 5 /D "%D%\net4\x64\NDP40-KB2518870-x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\207 /V 6 /D "%D%\net4\x64\NDP40-KB2533523-x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\207 /V 7 /D "%D%\net4\x64\NDP40-KB2539636-x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\207 /V 8 /D "%D%\net4\x64\ndp40-kb2572078-x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\207 /V 9 /D "%D%\net4\x64\ndp40-kb2656351-x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f


This post has been edited by dzed: 25 January 2012 - 05:53 AM


#6 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,976
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 12 August 2012 - 12:45 PM

btw, always install C++ 2005 Runtime first. If there are pending update, the setup fails. So install C++ first and next the Win7 updates.

Maybe this information helps somebody.

#7 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,750
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 August 2012 - 09:37 PM

My NET4 and it works for client
REG ADD %KEY%\1001 /VE /D ".NET Framework 4 Client" /f
REG ADD %KEY%\1001 /V 101 /D "CMD /C Start /Wait D:\APPS\_NET4\dotNetFx40_Client_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT" /f
REG ADD %KEY%\1001 /V 102 /D "CMD /C Start /Wait D:\APPS\_NET4\_NET4updates.cmd" /f

where _NET4updates.cmd is
title .NET Framework NDP40-KB*.exe
cd %~dp0
for %%A in (NDP40*.exe) do %%A /q /norestart /ChainingPackage ADMINDEPLOYMENT
Timeout 5
exit


edit I changed to /q /norestart /ChainingPackage ADMINDEPLOYMENT cause that do work better

This post has been edited by maxXPsoft: 23 August 2012 - 09:09 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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



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