I deploy Infopath forms using powershell script. After deployment, dlls of my deployed application appears in 14 hives/feature/guidfeaturefolder After some modifications when i deploy again the same form, sometimes it creates a folder inside that guidfeaturefolder and then copies the dll to that folder and sometimes it will replace the existing dlls. Any one know how it happens?
Powershell script is as below
# Initializing variables
Write-Output "Initializing Varialbes"
$SiteCollection = "http://<Computer Name>/"
$FormName = "xsn name"
$FormPath = "xsn location"
# Desabling Form Template
Write-Output "Desabling Form Template"
Disable-SPInfoPathFormTemplate -Identity $FormName -Site $SiteCollection
# Unistalling Form template
Write-Output "Uninstalling form Template"
Uninstall-SPInfoPathFormTemplate -Identity $FormName
net stop SPAdminV4
Start-SPAdminJob
# Verifying Form Template
Write-Output "Verifying form template"
Test-SPInfoPathFormTemplate -Path $FormPath
# Installing form template
Write-Output "Installing Form Template"
Install-SPInfoPathFormTemplate -Path $FormPath -NoWait
net stop SPAdminV4
Start-SPAdminJob
# Activating form template
Write-Output "Activating Form Template"
Enable-SPInfoPathFormTemplate -Identity $FormName -Site $SiteCollection
net start SPAdminV4