How to install windows and web application using a single setup file  
Author Message
prasannakumar63529





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

Hi,

I have two applications. One is a windows application and the other is a web application. I created two msi's for these projects individually. I want to create a setup file, that will combine the installation of these two files together. Also, i want to know, how to modify the config file to change the connection strings for these applications, after getting the user input for these.

Also, provide us with some help on how to create a setup file same like that of the SQL Server 2005. (with same installation steps and the screens).

Thanks

Prasanna



Windows Forms14  
 
 
Samsagaz





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

Hi pal, you must work with Custom actions. Right button on setup project and select view "Custom actions".

Search on internet and you will find everything about it.

Bye.


 
 
PhilDWilson





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

On the first question, you'd need to do a Visual Studio setup that's not a web deployment and use custom actions to create virtual directories etc.

With Visual Studio you cannot create custom steps and screens. The screens you can add are the ones in the User Interface view, right-click on start and add a dialog.

The overall point here is that Visual Studio doesn't offer a whole bunch of features for setup projects. That's why there are about 20 tools that let you build more custom items into your installs from companies like Wise, InstallShield, and products like Wix.

http://www.installsite.org/pages/en/msi/authoring.htm



 
 
David Guyer MS





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

You could use a Web Setup project. It includes the basic folders and built-in custom action support to create Virtual Directories and such.

You can then add a "Custom Folder" and configure the default installation location to be the same as the Application Folder in the normal setup project, and put the Client files in this folder.

As for how to update the app.config file... checkout this walkthrough: http://search.msdn.microsoft.com/search/Redirect.aspx title=Passing+Data+to+a+Custom+Action&url=http://msdn.microsoft.com/library/en-us/vsintro7/html/vxwlkWalkthroughPassingDataToCustomAction.asp

As for the custom UI, Phil is right, we don't have any good support for this... you could wrap your MSI with your own UI EXE, which could call the .MSI and pass values in, if you really need to do this.

Hope this helps...



 
 
prasannakumar





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

Hi,

Thank you all for your valuable guidance. But, about the Custom UI, does it mean that the SQL Server Setup Project is build based on CUSTOM UI and not using the setup project is it

Thanks


 
 
PhilDWilson





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

There are about 20 tools that build MSI files, and some of them let you customize the UI sequence and add your own dialogs, fire custom actions off their buttons and so on. InstallShield is probably the best known of the companies that build MSI setups. You're probably assuming that the SQL Server Setup project is built with a Visual Studio setup project, but they are somewhat limited in feature content and probably weren't used.

You can do your project both ways, as was mentioned. Start with a web setup project and then make a custom folder corresponding to TARGETDIR for the other files, or start with a setup project and install the web site with custom actions. It's hard to predict which works best for you because it depends what the rest of your setup is doing, but the web project and adding a custom folder lets you take advantage of the web setup installing the virtual directory and the web site.

Or you can use one of the other tools from InstallShield, Wise, Advanced Installer, or Wix or something to build a setup file, but just keep in mind that Visual Studio setup projects are not the only way to build MSI files.



 
 
wizkid1





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

How do you create .msi's. What do you use

 
 
prasannakumar





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

Hi Wizkid,

can you elaborate your question. Currently i m using VS2005.

Thanks

Prasanna


 
 
K Praveen Kumar Reddy





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

hello

can u please explain the procedure for web deployment using WIX tool or else provide some links which guide build and deployment

please dont give tutorials , send some samples.....

thanks in advance......



 
 
PhilDWilson





PostPosted: ClickOnce and Setup & Deployment Projects, How to install windows and web application using a single setup file Top

This is part of a larger Wix tutorial - this is the section dealing with virtual directories and there's a download sample.

http://www.tramontana.co.hu/wix/lesson6.php#6.3