Problem with installing biztalk MSI via BTSTASK ImportApp -GAC_MSIL is not updating correctly using powershell

Program: Biztalk Server 2013
Server: 2012 Standard
issue: Installing via the BizTalk Server Administration Console using import MSI works fine, installing via powershell does not. Only a few of the items that should be updated in GAC_MSIL are being updated. The powershell script finishes with
Command succeeded with 0 errors, 0 warnings.
Looking through the powershell script's log file I see some warnings:
Warning: Schema "APPNAME.DataSetSchema1, [application name], Version=2.0.0.0, Culture=neutral, PublicKeyToken=4fbxxx03d" and a previously deployed schema "" have the same target namespace "http://schemas.datacontract.org/2004/07/System.Data". Target namespaces should be unique.
Warning: Assembly "[first assembly], Version=2.0.0.0, Culture=neutral, PublicKeyToken=9xxxxxx" depends on the following assemblies that must be installed in the Global Assembly Cache for runtime to succeed:
Assembly "[different assembly], Version=2.0.0.0, Culture=neutral, PublicKeyToken=8909xxxx"
Information: Deploy operation succeeded.
Information: Updating binding information.
The powershell snippets I'm using to turn on/ off and install the application are : 
#needed functions
[System.Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\Microsoft BizTalk Server 2013\Developer Tools\Microsoft.BizTalk.ExplorerOM.dll")
function StopBTSApplication
param([string]$appName)
$exp = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer
$exp.ConnectionString = Get-BTSConnectionString
$app = $exp.Applications[$appName]
if($app -eq $null)
Write-Host "Application " $appName " not found" -fore Red
else
if($app.Status -ne 2)
#full stop of application
$null = $app.Stop(63)
$null = $exp.SaveChanges()
Write-Host "Stopped application: " $appName
function StartBTSApplication
param([string]$appName)
$exp = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer
$exp.ConnectionString = Get-BTSConnectionString
$app = $exp.Applications[$appName]
if($app -eq $null)
Write-Host "Application " $appName " not found" -fore Red
else
if($app.Status -eq "Stopped")
#full start of application
$null = $app.Start("StartAll")
$null = $exp.SaveChanges()
Write-Host "Started application: " $appName
}else{
write-host "App status is " $app.Status
function Get-BTSConnectionString
$group = Get-WmiObject MSBTS_GroupSetting -n root\MicrosoftBizTalkServer
$dbName = $group.MgmtDBName
$server = $group.MgmtDBServerName
[System.String]::Concat("server=", $server, ";database=", $dbName, ";Integrated Security=SSPI")
#end needed functions
$AppImInstalling = "name_of_app"
$MSIFolder = "folder where msi resides"
BTSTask ExportBindings /Destination:$localbindings /ApplicationName:$AppImInstalling
#stop biztalk to install resources correctly
StopBTSApplication($AppImInstalling)
Stop-service 'BTSSvc$BizTalkServerApplication'
Stop-service 'BTSSvc$BizTalkServerApplication32'
#Define msi file $localpackage = ($MSIFolder + "\"+$AppImInstalling +'.msi')
#install msi Write-Host "BTSTask ImportApp /Package:$localpackage /ApplicationName:$AppImInstalling /Overwrite "
BTSTask ImportApp /Package:$localpackage /ApplicationName:$AppImInstalling /Overwrite
### restore bindings from backup folder BTSTask ImportBindings /Source:$localbindings /ApplicationName:$AppImInstalling
# start biztalk
#Start-service 'BTSSvc$BizTalkServerApplication'
StartBTSApplication($AppImInstalling)
Start-service 'BTSSvc$BizTalkServerApplication'
Start-service 'BTSSvc$BizTalkServerApplication32'
Visible differences in the Admin console is that when I stop the application via the Gui only the main application I want is stopped.  When I stop the main application via powershell using the above functions a referenced application also shuts down
and that doesn't happen using the gui.   When starting the main application via the Gui it also fires up the host instances. When starting the main application up via powershell it doesn't start the host instances and I have to make separate calls to
start them again.

Update to this:
In the above script running a MSIEXEC install after importing the app updates the GAC_MSIL just fine!
# Do msi install$runMSI = "msiexec /i: $localpackage /qn "
Write-Host "MSI command to run :" $runMSI
&($runMSI )
I'm still very curious why the import app on the gui has a slightly different behavior. I wonder if the gui also just runs a msiexec in the background after the app imports. 

Similar Messages

  • I am having problems with my Canon S100 camera. The shutter is not working correctly.

    I hope this is the right place to post a complaint about my Canon S100 camera's shutter not working correctly.  My daughter purchased two of these cameras, one for me, and one for herself.  Both cameras are having the same problem.  I hope Canon can help us with this serious problem.  What good is a camera if it does not take pictures?

    Stephen (Canon),
    I find it quite surprising that you do not respond to 28 pages of comments regarding this issue on the other thread and yet you directly comment here.
    Seems to me that the problem arises after significant use as the contacts in the shutter switch corrode and do not get the contact that they once did.  With many users this occurs just outside the 1yr warranty. However, it is clear that this is a design fault as opposed to natural 'wear and tear' and therefore I would expect that a company with Canon's reputation for excellent service would offer free repairs.
    Can you please confirm if Canon are preparing a response on this issue?
    Regards,
    Neil Walker

  • I am having problems with installing Itunes 10.5 .With the windows installer

    I am having problems with installing Itunes 10.5.It's the first time i dowload it,but every time het gives me an error message that a programm that was needed for installing didn't run.
    What can i do???

    When I attempt the download for Itunes 10.6, I get an immediate response of ""Files shared by these updates" has an invalid signature. The download has been removed."
    That's suggesting that the AppleApplicationSupport.msi is getting damaged during the download via Apple Software Update for Windows.
    Are you able to get the 10.6  update to go through if you use an iTunesSetup.exe (or iTunes64Setup.exe) installer file from the Apple Website?
    http://www.apple.com/itunes/download/

  • Problem with installing CUCM on MCS-7816-I5

    Hi to all.
    I have a problem with installing CUCM 8.6.1 on new MCS-7816-I5  (IBM) hardware. The problem is that installation loops in restart after upgrading MCS firmware. Actualy, installation does not sucessfully upgrade firmware, so every time it detects old firmware and trying to upgrade it.
    I also tried update MCS firmware with downloaded Firmware Update Utility 3.6.5 CD from Cisco downloads, but it also fails.
    Does anyone have idea what's going on? Is this a Cisco failure or IBM server failure?
    Here is some details from log file generated with this Firmware Update Utility 3.6.5:
    ==============
    Initial Selection
    Machine Type: 4251 OS: SLES 10 Arch: 64 bit
    IsPartition: 0
    Update:   IBM System x uEFI update for x3200 M3 /3250 M3
    Severity: Critical
    Reboot:   Reboot Required to take effect
    UpdateID: ibm_fw_uefi_gye142a_linux_32-64 Requisite:None
    Version:  1.08 (GYE142A)
    Install:  1.06 (GYE135A)
    Select:    Yes
    Update:   IBM Dynamic System Analysis
    Severity: Recommended
    Reboot:   Reboot Required to take effect
    UpdateID: ibm_fw_dsa_3.20_dsyt75x_linux_32_64
    Requisite:None
    Version:  3.20 (DSYT75X)
    Install:  3.01 (DSYT60K)
    Select:    Yes
    Update:   IBM Online SAS/SATA Hard Disk Drive Update Program
    Severity: Critical
    Reboot:   Not Required
    UpdateID: ibm_fw_hdd_sas-1.08.01_linux_32-64
    Requisite:None
    Name:     WD2502ABYS-23B7A0 (/dev/sg0)
    Version:  02.03B07
    Install:  02.0
    Select:    Yes
    Update:   Integrated Management Module Update
    Severity: Critical
    Reboot:   Not Required
    UpdateID: ibm_fw_imm_yuoo84c_linux_32-64 Requisite:None
    Version:  1.22 (YUOO84C)
    Install:  1.10 (YUOO57H)
    Select:    Yes
    IBM Command Line IMM Flash Update Utility v1.05.03 Licensed Materials - Property of IBM
    (C) Copyright IBM Corp. 2009,2010  All Rights Reserved.
    LAN-over-USB device not configured.
    Error connecting to IMM using IP address 169.254.95.118.
    Please verify the LAN over USB interface is configured properly and active.
    Error flashing firmware: 3
    IBM Command Line IMM Flash Update Utility v1.10.11 Licensed Materials - Property of IBM
    (C) Copyright IBM Corp. 2009,2010  All Rights Reserved.
    Refreshing LAN-over-USB IP address.  This may take several minutes.
    Attempting to discover the IMM(s) via SLP.
    Error connecting to IMM using IP address 169.254.95.118.
    Please verify the LAN over USB interface is configured properly and active.
    Error flashing firmware: 10
    (C) Copyright IBM Corp.2010. All Rights Reserved.
    FdrvWL -- Flash Drive(s)                                     3.10.08.19
       1 Ada:0 SID:0   PN:44E9172:42C0463 SN:1J242783 FW:02.03B07              T:13 FW:Ok
    AdaNbr(Type)      DevFnd Flashed(SAS SATA) NbrFailed
      0(onBoard)           1       0   0    0          0
                           1       0   0    0          0 Error(s)
    Update completed successfully.  <-- THIS SUCCESS, BUT EVERY TIME IT UPGRADEING AGAIN FROM OLD VERSION, LIKE NEVER REALY UPGRADED TO NEWER VERSION
    IBM Command Line IMM Flash Update Utility v1.10.11 Licensed Materials - Property of IBM
    (C) Copyright IBM Corp. 2009,2010  All Rights Reserved.
    Refreshing LAN-over-USB IP address.  This may take several minutes.
    Attempting to discover the IMM(s) via SLP.
    Error connecting to IMM using IP address 169.254.95.118.
    Please verify the LAN over USB interface is configured properly and active.
    Error flashing firmware: 10
    ===========================
    Thanks,
    Sinisa.

    Hi Sinisa,
    It almost sounds like this bug;
    CSCtn81201
    Incorrect "Hardware Configuration Error" due to hardware setup errors
    Symptom:
    Refresh upgrade stops with IMM device detection, and then server being reported as unsupported
    Conditions:
    in-band USB interface was disabled, which is configurable via IBM system X or IMM (browser) interfaces.
    Workaround:
    change the in-band usb interface settings to enabled.
    Related Bug
    Status
    Fixed
    Severity
    4 - minor
    Last Modified
    Aug 17,2011
    Product
    Cisco Unified Communications Manager (CallManager)
    Platform
    Dependent
    Technology
    nav
    1st Found-in
    8.6(0.99081.3)
    Fixed-in
    8.6(1.96000.1), 9.0(0.95070.38), 9.0(0.95070.39), 8.6(1.99989.1), 8.6(1.95050.1), 9.0(0.96000.1), 8.6(1.97011.2), 8.6(1.95190.40), 8.6(1.97011.1), 8.6(0.95180.9), 9.0(0.95010.1), 8.6(1.95020.1), 8.6(1.95040.1), 8.6(0.98000.50), 8.6(0.98000.17), 8.6(0.99981.2), 8.6(1.10000.1), 8.6(1.99986.1), 8.6(1.95020.58), 8.6(1.96000.51), 8.6(1.10000.43)
    Cheers!
    Rob

  • Equium P200-1ED - have problem with installing VGA driver

    Hello
    I have problem with installing vga video driver, each time in installion it stops on
    Version: 6,14.10,4833 and there is error poping up.........
    Please help!

    Hello
    What error message is it exactly?
    Make sure that the chipset driver and SP2 is installed at least.
    I had a similar issue that I cant install the display driver. The error message was something like the hardware is not supported
    But it was very easy to solve this problem. I installed the driver via device manager. I have selected the graphic card and choose update driver. Then I did choose the advanced installation to choose the directory by myself.
    Anyway, after restart the driver was installed and it worked. :)
    Greets

  • MOVED: I have problems with grafick motherboards MSI 845G max when i play games

    This topic has been moved to Intel P4 & Celeron P4 based board.
    I have problems with grafick  motherboards MSI 845G max when i play games

    There diff x4 agp and x8 agp.......... nothing!!!!!!!
    Check you have INTEL application accelerator installed!!!!!!!
    845GE-Max is very fast mainboard, only the single channel mem make's it slower than 865/875 chipset........ fact
    Check ALL drivers are COMPAT with system NOT the latest............. Try older drivers
    Del

  • !!!! BE CAREFUL WITH INSTALLING THE MSI UTILITY PROGRAM LOCKFILE

    !!!! BE CAREFUL WITH INSTALLING THE MSI UTILITY PROGRAM      LOCKFILE     !!!!!!
    I have a KT3 Ultra URA mobo + AMD XP 1800 + W2k dutch version + SP2. With the mobo I received a MSI CD with utilities.  I became a major problem installing the MSI Lockfile program: after restarting the PC it started with initialising W2k, but on a certain moment initialisation stopped and I received the message: Error in User interface; Cannot load DLL-file ginamsi.dll (aanmeldgebruikersinterface = dutch, english:  ?? log in user interface ??). Repair the original file.
    I tried to repair with booting from the W2k CD, repair section. That had no result.
    With starting in safe mode (as member Hardwareman suggested) I also had big problems (didn't start up W2k).  After leaving the computer 2 day rest I succeded starting in safe mode. File search learned, that the ginamsi.dll is part of the MSI Lockfile program.  After uninstalling the program the computer started as usual.
    Summary:  The program  MSI Lockfile can be dangerous.  You'll find it on the MSI Utilities CD, that came with de motherboard (in my case: KT3 Ultra ARU), chapter MSI Utilities.  So be very careful and aware of troubles to install that program!!!
    Jan_Ko

    hey Jan_Ko I think what the dutch phrase is saying is it failed to intialize a required interface (I don't speak dutch but I speak German and it's pretty similar (not trying to imply anything or be insulting, I actually think nederlands is a cool langauge) but of course I could be wrong about the translation, hopfully Bas will get back to us on this.

  • Problem with installing and uninstalling applicati...

    hi all,
    I have a problem with installing or uninstalling apps on 808. When i try to install an application through Nokia suite or when trying to run the application file from the phone's memory the screen freezes and becomes unresponsive but the 3 phone buttons work just fine. I have to shut down the phone and the screen becomes responsive again. Anything available to help me wiith this situations as I cannot use any of the apps I have. Any help much appreciated.
    Regards
    Alex

    You are not alone. Im also having the same issue because we do alot of install and uninstall apps. This is the bad point of symbian. But I tired to install the latest FP2 it will be slightly abit smoother now. So you have the latest version now but did you tired to restore any backup yet? It might be the setting on when you restore that affect it. The feezing should be shorten on FP2 but it will still remain there depending on the type of apps from what I experience.
    I hope they will provide multiple function to uninstall apps since it will go through a long process to uninstall apps 1 by 1.
    Reason is because some apps will go through process like preparing install, process install, finalising install which take away your control for that few seconds or a minute instead runnning in background mode. Its not convenient to uninstall more apps.

  • Problem with installing Elements - from noob

    I have problems with installing Elements, it gives my an unknown mistake - I already have CS4 up and running, could this be the case?

    Chances are not very good that pse 4 will run on os x 10 6.8 unless you were upgrading from an earlier mac version that already had pse 4 installed.
    as per this:
    http://forums.adobe.com/message/4474236#4474236

  • Problem with installing iTunes

    So these are my problems with installing iTunes.
    At first it was :
    A required iTunes component is not installed.Please repair or reinstall iTunes (-45019)
    Then it got worse as it would not even open and these would appear:
    The program can't start because AVFoundationCF.dll is missing from your computer. Try reinstalling the program to fix this problem.
    and this would appear:
    iTunes was not installed correctly. Please reinstall iTunes.
    Error 7 (Windows error 126)
    I reinstalled maybe about 5 times or more...
    If I thought I solved the above problem, this would appear:
    iTunesHelper.exe is not installed on my computer.
    I seen other people comment that you should unistall and restart the computer and install the setup again, but it does not work..
    And others would say to repair the AAS or iTunes etc..
    And after trying all these it does not work???
    What else works?

    I also tried repairing the Microsoft NET.

  • Problem with Installing Nokia Ovi Store in E51

    I am having problem with installing nokia Ovi store in my E51. Whenever I try to download Ovi store from my E51, it shows a error message that the component is built in and cannot be installed. I dont know wat to do now. Can anyone please give me some advice. Thanks in advance.

    Hi there! 
    This means that the Ovi Store is currently installed in your E52 phone, what I can suggest is try checking under Application Manager > Installed Application, check if the Ovi Store is there. If you can't see it, try to perform the soft reset (press *#7780# on the main screen of the phone and it will prompt you restore all original phone settings? phone will restart. Press YES and it will ask you for the lock code 12345.) If anything else please reply to this message.
    Hope tis' Help! 
    "If you think this post is helpful, please click on the green button"

  • Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?

    Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?
    I have been trying to install Photoshop CS6 & CC and Acrobat Pro XI on my Mac Pro (late 2013). I keep getting a 'configuration' error message and wondered if the problem was wide spread.
    TIA,
    Jerry

    Thanks, Martin.
    Good to hear someone has had success. The lack of it here is frustrating and depressing.
    Thanks again,
    Jerry

  • Severe problem with installing and starting Audio-DVD Pla

    Hi,
    after installing the new drivers (SBAX_PCDRV_LB_2_8_000.exe) for my Audigy2ZS in XP SP3 i had np mic boost and the mixer did not show the mic as an selectable source. So i rolled back to my old drivers and after that i have problems with installing and starting the Audio DVD Player. I tried so far: uninstalling everything like its said solution ID 72, checking HD for corrupted files and i did a repair installation of XP. Nothing helped. When i only install the drivers and the DVD Audio Player from the original CD everything is fine until the reboot adter installation. When the OS tries to start the "chkcolor.exe" the PC instantly reboots. When preventing XP from doing so, there is no reboot, but as soon i want to start the DVD Audio Player a reboot occurs again. When i try to uninstall the DVD Audio Player before unstillaing the drivers, the is also a reboot. First uninstalling the drivers and then the DVD Audio Player, there is no reboot.
    Any ideas?
    Best regards and thank in advance,
    PicknatariMessage Edited by Picknatari on 07-20-2008 07:3 PM

    Hi,
    after installing the new drivers (SBAX_PCDRV_LB_2_8_000.exe) for my Audigy2ZS in XP SP3 i had np mic boost and the mixer did not show the mic as an selectable source. So i rolled back to my old drivers and after that i have problems with installing and starting the Audio DVD Player. I tried so far: uninstalling everything like its said solution ID 72, checking HD for corrupted files and i did a repair installation of XP. Nothing helped. When i only install the drivers and the DVD Audio Player from the original CD everything is fine until the reboot adter installation. When the OS tries to start the "chkcolor.exe" the PC instantly reboots. When preventing XP from doing so, there is no reboot, but as soon i want to start the DVD Audio Player a reboot occurs again. When i try to uninstall the DVD Audio Player before unstillaing the drivers, the is also a reboot. First uninstalling the drivers and then the DVD Audio Player, there is no reboot.
    Any ideas?
    Best regards and thank in advance,
    PicknatariMessage Edited by Picknatari on 07-20-2008 07:3 PM

  • Problems with installing HP OfficeJet Pro L7590 driver All-in-One

    Hello HP team.
    Having problem with installing driver for HP Officejet pro L7590.
    Starting the process the process bar goes to the end 100% and then disappear.
    After that nothing happens.
    Rebooting doesn't help.
    Windows 7-64

    Thanks for getting back to me!
    Lets try some more steps:
    Uninstall, level 3 for HP PC or level 4 for non-HP PC.
    1. Click Start and type %temp% in the run field and click OK.
    2. Look for, and open the folder starting with 7z (Example: 7zS2356) (if there is more than one 7z folder, try the most recent one)
    3. Open folder Util
    4. Open folder CCC
    5. Run the uninstall_ L4.bat for a non-HP PC or run the Uninstall_L3.bat for a HP PC
    6. When the uninstall has completed restart the computer
    Try to install again using the HP Printer Install Wizard for Windows
    Let me know how this goes please
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • I have a problem with installing PS13 as I get an error message "This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements." how do i do this?

    i have a problem with installing PS13 as I get an error message "This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements." how do i do this

    Try downloading the trial. It ought to detect that you have a 64-bit system.
    You aren't using Vista, are you? PSE 13 requires at least win 7 and I think a few folks with vista have gotten a similar error message on trying to install it.

Maybe you are looking for

  • In forms 4.5 when query record assigning value is possible?How?

    Hi all, when query record ,depending on condition i can assign value. I done but it give error first delete or create record error? How can i overcome this problem. Thanks venkata.

  • Re : batch input programming..

    hi friends is it possible to use the call transaction and session the scenario described. 1. like i am having two record sets corresponding to two transactions and i want them to be uploaded using 'call transaction' for one transaction and 'session'

  • Activating wireless channels 12 and 13 with iwl3945

    Hello everyone, I follow the descriptions in the Wiki to activate wireless channels 12 and 13 with iwl3945 which I'm running. It says: "To make iwl3945 scan for all channels, add "options cfg80211 ieee80211_regdom=EU" to /etc/modprobe.d/options. With

  • Airport Extreme with Westell 6100

    The setup: Westell 6100 through Centurytel Apple Airport Extreme Base Station The goal: To use 6100 as a bridge only and manage all port forwarding and routing through Airport. The problem: I've set it to bridge and DHCP disable. I then try to do PPO

  • Copy music from nano to PC

    Which piece of software for the PC does anyone recommend for copying nano music files to the PC? Preferably one that is free. Steve