BTDF / CodePlexDiscussions

0 stars 0 forks source link

Discussion: Delete the existing app before trying to Add application #104

Open tfabraham opened 6 years ago

tfabraham commented 6 years ago

kumarbpavan[4/2/2013 10:33:35 PM] Hi,

I created MSI using Build Server Deploy MSI. Incremented ProjectVersion , ProductVersion and generated new ProductId. But, when I try to install it using MSI it is erroring out with error "Application already exists. Specify a unique application name." Do we need to delete the application manually everytime before running the MSI? Please advice.

tfabraham commented 6 years ago

tfabraham Can you please explain the steps you are taking to install and deploy the application using the MSI? You should install the MSI on your server and either check the "deploy at Finish" checkbox at the end of the wizard, or go to the Start menu and launch the Deploy shortcut for your app. Are you trying to use BizTalk Admin to deploy or install your app?

Thanks, Tom

tfabraham commented 6 years ago

kumarbpavan I updated my proj to use Deployment framework. Following are the property settings in dtdfproj file.

I am selecting the option "deploy at Finish" option in the wizard. First time installation is going through fine. For the upgrade, I did increment ProjectVersion , ProductVersion and generated new ProductId. It is erroring out when installing the upgrade using the same steps ( "deploy at Finish" checkbox ).

Also, could you please direct me to a Post where complete automation is explained.

``` Debug x86 1.0 PDSBTS 1.0 True True True True True True True ``` ``` 1.0.0 2b4acf5a-624e-40a3-afe1-2e9f630334fb PDSBTS for BizTalk Deployment Framework User PDSBTS PDSBTS 4892983e-485f-42c7-89ee-5b37efbf1883 ```
tfabraham commented 6 years ago

tfabraham Hi,

In an upgrade scenario, before you upgrade (or uninstall old/install new) the MSI you must undeploy the existing application. These steps are covered

here.

Regarding complete automation of deployments, I recommend that you start here (and reference this post too).

Thanks, Tom

tfabraham commented 6 years ago

kumarbpavan Hi Tom,

I am not able to access both the URLs you provided for Automated Deployment. Could you please provide the latest.

Thanks, Pavan

tfabraham commented 6 years ago

tfabraham Hi Pavan, I just clicked both of the links within my sentence "Regarding complete automation..." and they opened fine.

http://randypaulo.wordpress.com/2012/01/31/automating-silent-install-biztalk-deployment-framework-btdf-using-powershell/

http://randypaulo.wordpress.com/2012/07/17/btdf-system-outofmemoryexception-while-deploying-using-powershell-remoting/

Tom

tfabraham commented 6 years ago

kumarbpavan Hi Tom,

Can you please tell me the syntax to undeploy the application completely?

I am trying to do the following.

1) We have separated a Schema into a separate project as it is huge and deploys are becoming slow because of this. As there will not be any frequent changes to this schema, to avoid Deployment Delays , We created this as a Separate application.

2) Second application has the remaining artifacts. This will have a reference to the Schemas project I mentioned above.

As Second application is dependent on the First ( Schemas), I cannot deploy first application until Second application is completely undeployed. I created a batch file to Uninstall/UnDeploy Second application and then follow up with Deploying First Application and Second Application in order.

Issue: I am able to UnInstall the application using msiexec, but it will not undeploy the application completely ( remove dlls from GAC). Can you please let me know if there is any way to accomplish.

Thanks, Pavan

tfabraham commented 6 years ago

tfabraham Hi Pavan,

Have you run through the Deployment Framework tutorial and gotten a good understanding of the manual process before using scripting? You can find it

here. There is also information on the upgrade process here.

In the scenario you describe, the process to deploy for the first time is:

Install First application Deploy First application Install Second application (this can be swapped with #2 if desired) Deploy Second application

To upgrade Second application:

Undeploy Second application Uninstall Second application Install Second application (can be combined w/ #2 if you change the ProductID and increment ProductVersion in the .btdfproj for the new MSI)

To upgrade First application:

Undeploy Second application Uninstall Second application Undeploy First application Uninstall First application Install First application Deploy First application Install Second application Deploy Second application

When you change ProductID and ProductVersion for the new MSI's you can slightly shorten it to:

Undeploy Second application Undeploy First application Install First application Install Second application Deploy First application Deploy Second application

Tom

tfabraham commented 6 years ago

kumarbpavan Thanks Tom.

I went through the tutorials. As developers donot have access to Production environments, we are providing .bat file along with MSI to do the deployment. In the .bat file we are calling it in the following sequence.

1) Undeploy Application 1 ( if exists) 2) UnInstall Application 1 ( If exists) 3) Uninstall Application 2 ( If exists) 4) Install First Application 5) Install Second Application 6) Deploy First Application 7) Deploy Second application

Initially, I was not able to find syntax for UnDeploy. After some research, Found the following syntax

%BTDFMSBuildPath% Deployment.btdfproj /p:%PARMS% /target:Undeploy /l:FileLogger,Microsoft.Build.Engine;logfile=%ApplicationInstallPath%\DeployResults\DeployResults.txt

It worked fine. .bat file is now all ready for complete automation.

Thanks a lot for your help! Biztalk Deployment Framefork is such a great product. It made life lot easier.

Thanks, Pavan

tfabraham commented 6 years ago

tfabraham Thanks Pavan, it's great to hear the positive comments!

Tom