Hi All ,
while installing bellow commands i am getting
"exception occurred while initializing the installation system.badimageformatexception" exception. i saw solution from google but not understand.
I seems that you are using the 64-bit version of the tool to install a 32-bit application. Look for the 32-bit version of the tool here:
C:\Windows\Microsoft.NET\Framework\v4.0.30319
and it should install your 32-bit application just fine.
Where i can install 32-bit appication.
my code
function InstallService()
{
$cred = get-credential
Write-Host "installing service $serviceName on $targetServer from 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" }
}