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
Post a Comment