How to Deploy Window Application

Automated deployment for web applications and databases

How to Deploy Window Application

Postby Sandeep Gupta » Thu Nov 21, 2013 7:55 am

Can i deploy the Window Application with .msi extension on the agent server on the common folder and folder is in zip format?

:(
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby chirayu » Thu Nov 21, 2013 2:25 pm

Yes you can deploy an msi with Deployment Manager. Deployment Manager by default will not run the msi on the Agent for you. If by deploying you just want to copy the msi to the Agent, then Deployment Manager will do that for you.

If however, you want the msi to be run on the Agent, as part of the deployment, you will need to write some Powershell. Deployment Manager runs powershell scripts before, during and after the deployment. You will need to generate a NuGet package containing the msi and a script called 'Deploy.ps1'. This powershell command will run the installer silently, during deployment, on the Deployment Agent:

Code: Select all
msiexec -i <nameOfTheMsi> /qn


I would recommend reading information here about powershell scripts: http://documentation.red-gate.com/displ ... eployment#
If you would like more help about how to create a NuGet package, please have a look at this page: http://documentation.red-gate.com/displ ... lications#

Hope this helps!

Thanks!
Chirayu Shishodiya
Software Engineer - Deployment Manager
Red Gate
chirayu
 
Posts: 73
Joined: Mon Sep 17, 2012 5:48 pm

Postby Sandeep Gupta » Thu Nov 21, 2013 2:44 pm

Can i use the Transformation in window Application?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby DavidSimner » Mon Nov 25, 2013 10:51 am

Yes, you can use the PowerShell to run anything that you like with any command line arguments that you like. This means that you can use all of the Transforms stuff documented here: http://msdn.microsoft.com/en-us/library ... 47(v=vs.85).aspx
DavidSimner
 
Posts: 54
Joined: Thu Feb 04, 2010 6:05 pm

Postby Sandeep Gupta » Mon Nov 25, 2013 11:31 am

i am not getting how to use transform configuration files like Web Application? and another one is that can i use the Custom Attributes in Power Shell Command?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby DavidSimner » Mon Nov 25, 2013 11:41 am

DavidSimner
 
Posts: 54
Joined: Thu Feb 04, 2010 6:05 pm

Postby Sandeep Gupta » Mon Nov 25, 2013 12:02 pm

In a window application transformation is allowed?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby DavidSimner » Mon Nov 25, 2013 12:04 pm

Can you be more clear and precise, so I know precisely what you mean? Thanks!
DavidSimner
 
Posts: 54
Joined: Thu Feb 04, 2010 6:05 pm

Postby Sandeep Gupta » Mon Nov 25, 2013 12:20 pm

i Mean i want to use Tranformation in Window Application but i am saying that in window application there is app.config instead of Web.config. So i m little bit confuse how to use... Because i am use the msi file of window application to run in the system..
So how to use transformation while i m creating msi of window application?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby DavidSimner » Mon Nov 25, 2013 12:22 pm

The best bet is probably to change your build logic to apply the app.config transforms before the MSI is generated on your build system.

Deployment Manager can apply transforms to app.config files, but not if they are inside an MSI. So another option would be to replace the MSI installation with e.g. a folder copy run from PowerShell and then Deployment Manager could do the app.config transforms.
DavidSimner
 
Posts: 54
Joined: Thu Feb 04, 2010 6:05 pm

Postby Sandeep Gupta » Mon Nov 25, 2013 12:53 pm

can i use the Custom variables values in Power Shell Command ?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby DavidSimner » Mon Nov 25, 2013 12:58 pm

Any variables in Deployment Manager are passed through to the PowerShell as PowerShell variables.
DavidSimner
 
Posts: 54
Joined: Thu Feb 04, 2010 6:05 pm

Postby Sandeep Gupta » Mon Nov 25, 2013 1:01 pm

ok , Can you please give me the example how to use?
For e.g. how to use RadGateWebsiteName using PowerShell Command?
Thanks
Sandeep Gupta
Sandeep Gupta
 
Posts: 54
Joined: Wed Nov 20, 2013 10:17 am
Location: Jaipur,India

Postby DavidSimner » Mon Nov 25, 2013 1:50 pm

Just put a dollar sign in front of it to access the variable, like you would for any other PowerShell variable:

$RedGateWebsiteName
DavidSimner
 
Posts: 54
Joined: Thu Feb 04, 2010 6:05 pm


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests

cron