exception occurred while initializing the installation system.badimageformatexception


hi ,

while installing bellow commands getting 

"exception occurred while initializing installation system.badimageformatexception" exception. saw solution google not understand.

i seems using 64-bit version of tool install 32-bit application. 32-bit version of tool here:

c:\windows\microsoft.net\framework\v4.0.30319

and should install 32-bit application fine.

where can install 32-bit appication.

my code

function installservice()
{
   
        $cred = get-credential
    write-host "installing service $servicename on $targetserver path $servicepath"
    invoke-command -computername  comptername   -credential $cred   -scriptblock { c:\windows\microsoft.net\framework\v4.0.30319\installutil.exe   /install  "c:\murali\debug\setup.exe" }
         
   
   
}

there c:\windows\microsoft.net\framework , c:\windows\microsoft.net\framework64

try using c:\windows\microsoft.net\framework64\installutil.exe


although backwards google said


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL