Red Gate forums :: View topic - How to Deploy Window Application
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

How to Deploy Window Application

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
Sandeep Gupta



Joined: 20 Nov 2013
Posts: 54
Location: Jaipur,India

PostPosted: Thu Nov 21, 2013 7:55 am    Post subject: How to Deploy Window Application Reply with quote

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

Sad
_________________
Thanks
Sandeep Gupta
Back to top
View user's profile Send private message Send e-mail AIM Address
chirayu



Joined: 17 Sep 2012
Posts: 51

PostPosted: Thu Nov 21, 2013 2:25 pm    Post subject: Reply with quote

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:
msiexec -i <nameOfTheMsi> /qn


I would recommend reading information here about powershell scripts: http://documentation.red-gate.com/display/DM2/Using+PowerShell+scripts+in+deployment#
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/display/DM2/Packaging+applications#

Hope this helps!

Thanks!
_________________
Chirayu Shishodiya
Software Engineer - Deployment Manager
Red Gate
Back to top
View user's profile Send private message
Sandeep Gupta



Joined: 20 Nov 2013
Posts: 54
Location: Jaipur,India

PostPosted: Thu Nov 21, 2013 2:44 pm    Post subject: Reply with quote

Can i use the Transformation in window Application?
_________________
Thanks
Sandeep Gupta
Back to top
View user's profile Send private message Send e-mail AIM Address
DavidSimner



Joined: 04 Feb 2010
Posts: 49

PostPosted: Mon Nov 25, 2013 10:51 am    Post subject: Reply with quote

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/aa367447(v=vs.85).aspx
Back to top
View user's profile Send private message
Sandeep Gupta



Joined: 20 Nov 2013
Posts: 54
Location: Jaipur,India

PostPosted: Mon Nov 25, 2013 11:31 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail AIM Address
DavidSimner



Joined: 04 Feb 2010
Posts: 49

PostPosted: Mon Nov 25, 2013 11:41 am    Post subject: Reply with quote

We've got some documentation here: http://documentation.red-gate.com/display/DM2/Deploying+XML+configuration+files#DeployingXMLconfigurationfiles-ConfigurationFileTransformations
Back to top
View user's profile Send private message
Sandeep Gupta



Joined: 20 Nov 2013
Posts: 54
Location: Jaipur,India

PostPosted: Mon Nov 25, 2013 12:02 pm    Post subject: Reply with quote

In a window application transformation is allowed?
_________________
Thanks
Sandeep Gupta
Back to top
View user's profile Send private message Send e-mail AIM Address
DavidSimner



Joined: 04 Feb 2010
Posts: 49

PostPosted: Mon Nov 25, 2013 12:04 pm    Post subject: Reply with quote

Can you be more clear and precise, so I know precisely what you mean? Thanks!
Back to top
View user's profile Send private message
Sandeep Gupta



Joined: 20 Nov 2013
Posts: 54
Location: Jaipur,India

PostPosted: Mon Nov 25, 2013 12:20 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail AIM Address
DavidSimner



Joined: 04 Feb 2010
Posts: 49

PostPosted: Mon Nov 25, 2013 12:22 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Sandeep Gupta



Joined: 20 Nov 2013
Posts: 54
Location: Jaipur,India

PostPosted: Mon Nov 25, 2013 12:53 pm    Post subject: Reply with quote

can i use the Custom variables values in Power Shell Command ?
_________________
Thanks
Sandeep Gupta
Back to top
View user's profile Send private message Send e-mail AIM Address
DavidSimner



Joined: 04 Feb 2010
Posts: 49

PostPosted: Mon Nov 25, 2013 12:58 pm    Post subject: Reply with quote

Any variables in Deployment Manager are passed through to the PowerShell as PowerShell variables.
Back to top
View user's profile Send private message
Sandeep Gupta



Joined: 20 Nov 2013
Posts: 54
Location: Jaipur,India

PostPosted: Mon Nov 25, 2013 1:01 pm    Post subject: Reply with quote

ok , Can you please give me the example how to use?
For e.g. how to use RadGateWebsiteName using PowerShell Command?
_________________
Thanks
Sandeep Gupta
Back to top
View user's profile Send private message Send e-mail AIM Address
DavidSimner



Joined: 04 Feb 2010
Posts: 49

PostPosted: Mon Nov 25, 2013 1:50 pm    Post subject: Reply with quote

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

$RedGateWebsiteName
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group