Web Setup Project - How To Get Selected Hostname For Installer Class
Aug 2, 2010
I have an installer class which I use to do some processing on the application after it is initially installed.
In the installer I have a custom dialog which requests a username and password. This is accessed in my installer class with Me.Context.Parameters("username")
After setting it as CustomActionData /username="[TXTUSERNAME]"
This is all fine. The first dialog of a Web Setup Project gets the user to select an IIS website from a dropdownlist and set a VirtualDirectory if required. I need to get the seleted Hostname but so far I have failed to find a reference to it in any documentation. I have tried things like:
Me.Context.Parameters("targetURL")
Me.Context.Parameters("TARGETSITE")
View 3 Replies
Similar Messages:
Jan 21, 2011
The last phase of the installer fails with this message:Installation IncompleteThe installer was interrupted before [project] could be installed. You need to restart the installer to try again.
Running msiexec /i installer.msi /l*vx setup.log shows the following entries in the setup log:
INFO : [...] [ApplyWebFolderProperties]: Getting web folder property token...
INFO : [...] [ApplyWebFolderProperties]: Token is '/LM/W3SVC/1/ROOT/ProjectDir/DynamicData/Filters'.
INFO : [...] [ApplyWebFolderProperties]: Getting METADATA_HANDLE for the directory '/LM/W3SVC/1/ROOT/ProjectDir/DynamicData/Filters'.
[code]...
View 1 Replies
Mar 25, 2010
How to set up the Windows installer to launch some DLL into GAC when it is needed?
View 1 Replies
Jun 15, 2010
I have a large Web Application ( ErPwith 11 subsystem) and I want tocreate a setup for itwith Microsoft WebPI. Currently We send our application for customers once a week (for weekly updates). We usefollowing tools in this application, So How to create a setup for out project toconfigure it in client IIS automatically
List item
.netFramework 3.5
SQL server 2008
Asp.net
C#
NHibernate
Log4net
castleProxy
SQL Server Reporting Services (RDL)
Visual Studio Client Reports (RDLC)
Javascript
JQuery
View 1 Replies
Feb 3, 2010
I tried to install Amplifeeder today with the Web Platform Installer. When I arrived at the database setup I had to fill out some informations like "db admin user/password" and user username/password. Using SQL Express I do not have any username/password (neither admin or user). How should I be able to install applications with the WPI and SQL Express 2008 ?
Basically I had this error while trying to install in the logs: DownloadManager Error: 0 : MS Deploy exception: Microsoft.Web.Deployment.DeploymentClientServerException: The database 'AmpliFeederDB' could not be created. ---> System.Data.SqlClient.SqlException: Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.
View 3 Replies
Jun 3, 2010
Is it possible to put other installers infront of an installer in the same project ?for example im installing a media streamer(exe) it uses VLC i need to install VLC with it VLC is its own exe.can this be done in a setup project and how ?
View 1 Replies
Dec 16, 2010
In my MVC project, I am trying to setup a base product class that will be inherited by a more specific class later. Here is my scenario. I have a table called ProductBase, it contains three fields, BaseProductId(PK), CatalogNum, and ListPrice. Every product in the system will share these attributes. Next, I have a table called Shirt, with three fields BaseProductId(PK, FK), Color, and Size.
I then setup an Entity Data Model that pulled in both of these tables and created classes BaseProduct and Shirt. So, in my model, I want to do something like this:
[Code]....
The main problem I have with this, is that if I do any kind of condition on CatalogNum or ListPrice, then my performance goes to crap. One of the main things we will want to do is something like this:
[Code]....
This takes an enormous performance hit, and I suspect it is because the partial class above returns to the database for each shirt.
The other problem I have with this approach, is that I cannot force the properties for the Shirt. What if I make a change to the BaseProduct? What happens when I have multiple product types, will I have to repeat this code? I assume I will need to make a change with the entity data model, but I am unsure where to begin.
View 5 Replies
Jul 26, 2010
I need to create the web setup project
1. the hide the code from the user(dll)
2.need to add some launh condition if the user machine doesn't has Crystal Report for 2008 and Chat controls for .Net 3.5 SP1 i make the project to instal the things first then install the project how to do this
View 5 Replies
Apr 3, 2010
I'd like to implement a ADO.NET/WCF DataService and I am wondering what's the best way to setup a project in VS2008 SP1 for this purpose.
Currently I have an ASP.NET web application project (not of "WebSite" project type). The data access layer is an Entity model (EF version 1) with SQL Server database. I have the Entity Model in a separate DLL project and the web application project references to this assembly for all data accesses.
The ADO.NET/WCF DataService needs to communicate with the Entity model/database as well. It has to be hosted on the same web server (IIS 7.5) together with the web application.
Since the DataService is not directly related to that specific web application (though it will provide and modify data from/in the same database the web application uses as well) my basic idea was to separate the DataService in its own new project (which also references the Entity Model DLL).
Now I have seen that there is no project type "ADO.NET/WCF DataService" in VS2008 SP1. It seems only possible to add a DataService as an element to other existing projects, for instance Web Application projects.
Why isn't there a separate DataService project type? Does this mean now that I have to add the DataService as an element to my Web Application project? Or shall I create a new Web Application project and add a DataService to it? (I could delete the pregenerated default.aspx since I do not need any web pages in this project.)
View 2 Replies
Mar 16, 2010
In one asp.net project, I created a setup project. It is working fine. Is it possible to add SQL scripts(to create database and store procedures) into setup project and run scripts automatically once client user installs the application?
View 1 Replies
Jan 5, 2010
edit I do not want to redirect pages, specific files etc. I would like to change the path where images, videos and other media are stored from the root source directory to the directory of my choosing. In this case c:/dev/prjfiles/prjname/public (c:/dev/prjfiles/prjname/ is my working directory) and i except when my html does img src="/pic.png" it will find the image in c:/dev/prjfiles/prjname/publi/pic.png. I need a working solution, i tried looking at how to set virtual directories and etc. I cant figure it out.
View 7 Replies
Jan 17, 2011
I'm trying to figure out the best approach to architecting this project. Basically, it's a "band" profile site. I'm using ASP.NET 4, EF, and Automapper (structuremap too, but that's not important). I'm running into performance issues I have a EntityFramework repository class that interacts directly onto the EF objects using LINQ:
[Pluggable("Repository")]
public class EntityDataRepository : IRepository
static EntityDataRepository()
// other mappings removed
// Data. objects are EF objects, mapping to my DTO classes
[code]...
View 1 Replies
Dec 21, 2011
I want to create a set up for a web project in asp.net 3.5. How can i do it? What are the steps involved? How to include database?
View 1 Replies
Apr 27, 2010
i created a web setup project for my asp.net application. am trying to create an upgrade MSI that will only replace some few files in my initial installation (very minor upgrade). right now, am not getting it right because the whole initial set of files is been replaced. i guess i only need to change the package code, but i cant do this in VS.NET 2008.
View 6 Replies
Oct 29, 2010
When I open up a web application project, VS attemps to configure IIS to open the project. This is fine, but typically there is already an application in that place. For example, we have apps that run at the root, and various feature branches would map to the same virtual application. Even though VS can *create* the application, it won't modify an existing one.
For example, lets say IIS has:
/MyApp
During my day I mightwant to work on MyApp from:
c:ranchesfeature1MyApp
c:ranchesfeature2MyApp
c:archive
elease102MyApp
c:production
elease204MyApp
If I delete /MyApp, then VS will create it when I open any of these projects, but it will never modify /MyApp to point to my current project. So first thing is: Is there any way to change this behavior?
Second question is, is there no way to open a web application project w/o having a properly backed IIS application setup? I know you can have the projects run off the casini webserver, but all of our applications target IIS and rely on inherited web.config settings. /MyApp is expecting to find config values that exist at /Web.Config and a login page for the entire system at /Login.aspx. Trying to run /MyApp in casini fails immediately because of these dependencies.
But what if I am just doing a code review. I don't care to browse the site, I just want to open the project. Is there no way to tell VS to just open the project and ignore the fact that IIS isn't setup right?
View 4 Replies
Jan 17, 2011
I want to ask about how to create a setup project for asp.net web application
In a way that the .cs files didn't appear when executing the setup
Like when you publish a web site only the aspx files appear and the dlls no cs files
View 2 Replies
Feb 15, 2011
I am not new to ASP.Net application development but I haven't used some of the new frameworks or features that are used in applications these days.
For cross-cutting concerns, things like: Logging, Caching and DAAB are used in projects these days to implement proven and efficient source code from either Microsoft or other third party vendors such as Log4Net for logging purposes.
View 1 Replies
Dec 8, 2010
I want to make a set up project which would install, .net framework, sql server 2008, configure my website in IIS.
View 2 Replies
Sep 28, 2010
is it possible to create a Setup project within Visual Studio that will allow the generated installer to allow for the user to install the application multiple times? I would imagine there would be changes needed for checking if the destination folder already has an installation there but what about removing the "already exist" detection or how to change the Add/Remove Programs to show nothing at all or each individual instance of the installation.
View 2 Replies
Feb 28, 2011
I have a web app and a web setup project in VS2010. By default, when I install my web app using my web setup project, in the Installation Address folder dialog window, the default Application Pool is DefaultAppPool. It has been stated in the MSDN documentation that we can change this default TARGETAPPPOOL, say to "ASP.NET V2.0". Here is the excerpt from MSDN... "The Application Pool list shows the available application pools on the target computer, and the default setting is named DefaultAppPool. To change the default application pool in your Web setup projects, you can use a post-build action to update the name of the application pool in the MSI." Is there anybody in the group knows the syntax on setting the TargetAppPool to another pool that exists in IIS, e.g., ASP.NET V4.0 CLASSIC?
View 1 Replies
Aug 4, 2010
I try to create a web setup project. Following this example ttp://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx everything was perfect. Now I need to find how going trought the wizard exclude some files from Content files Output.
View 3 Replies
Jun 18, 2010
Is it possible to debug a Web Setup Project, specifically its custom action code, by setting breakpoints and walking through the code? How does one do this?
View 2 Replies
Jun 10, 2010
I've got an ASP.NET application that I installed by creating a web setup. I ran into a problem where ASP.NET wasn't registered with IIS so it gave me a "installation was interrupted" message that told me exactly nothing. Anyhow, I finally got it installed, and I can access the main page, but it's telling me that my class isn't defined. The dll is in the same directory as the Default.aspx page
Here's the main error information
Compiler Error Message: BC30002: Type 'SIValidator.SIValidator' is not defined.
Source Error:
Line 4:
Line 5: <script runat="server">
Line 6: Dim validator As New SIValidator.SIValidator()
Line 7: Protected table As New arrayList()
Line 8: Protected countyByDistrict As New Hashtable()
Version Information: Microsoft .NET Framework Version:2.0.50727.1873; ASP.NET Version:2.0.50727.1433
Am I doing it wrong? Is there some obscure setting that may not be set? I'm completely new to this VS deployment deal.
edit: As an aside, when I searched google 5 minutes later, this entry came up as the first result.
View 1 Replies
Mar 24, 2010
In the Setup Project I have 2 web.config files: web.config - used during the development and web_dist.config - the one that should be included into Setup Project. I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config.
In the File System -> Web Application Folder I have added the Content Files from the project.
Also included the web_dist.config and mapped it to the web.config.
But this gives the warning:
WARNING: Two or more objects have the same target location ('[targetdir]web.config') And the actual config file included is web.config and not web_dist.config. What would be the best option to include the web_dist.config (and named as web.config in the setup)?
View 2 Replies
Oct 14, 2010
I made Web Setp Project for a web application, I need to change virtual directory property for the web application.
This virtual directory is linked to TARGETVDIR property which is disabled in the property grid.But I need to control it, I searched for this and I found that the only way is to use orca.exe and change msi using it.
Can I amke another solution to avoid making modification on nsi after build???
View 1 Replies