jklioe replied...
17-Nov-06 08:05 AM
i hv got a web application that uses my sql and i want to create tables
at the time of installing web setup.exe

wat is the procedure fr doing this ??????
Tables
(1)
Installing
(1)
Setup
(1)
Application
(1)
Procedure
(1)

.NET Framework - You have to create a custom action to do this.

Asked By WilliamSulliva
20-Nov-06 09:31 AM
You have to create a custom action to do this.  You essentially create a DLL
that has classes and methods in it that are marked with attributes to let the
installer know that they are custom actions.  You can then configure the
installer to run the methods at certain points in the install process.
http://msdn2.microsoft.com/en-us/d9k65z2d(VS.80).aspx is a sample that tells
you how to create a custom action to direct a user to a website after
installation.  You can change the sample to create the tables instead of
doing the webpage thing.
Create New Account
help
my vb.net program in the visual studio express 2008 IDE and it created a setup.exe. I ran setup.exe and it added my application to the menu. My application includes a database .mdf the application to add fields to the table. I published the application again, ran the setup.exe again, and ran the application again. The row of data was gone. How do 1) IsFirstRun (1) Application (1) Publish (1) Database (1) Update (1) I am guessing your setup also sets up the database somehow. If so, do a check to see if the database is already installed before installing it. As for a "normal" update scenario, you can create code that updates an app website. This, obviously, will not work with a shrink wrap application, which will have a setup.exe, so it may not be your option for first install, but you can steal fly. Regardless of the method chosen, a good application should check for persisted data before installing it. If it installs a database, it should, at minimum, warn the user and give SD, DBA Twitter: @gbworld Blog: http: / / gregorybeamer.spaces.live.com * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** | Think outside the box! | * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** The setup has to set up the database because I want to be able to modify the
Force-overwrite of older binaries on Setup project? .NET Framework Using the setup-and-deployment project in VS (2005), is there a way to force binaries to install where the 3rd-party newer binaries actually have an older file version. I have my Setup Project set to RemovePreviousInstallations, but it still does not work. The older installation is removed going on because a VS 2005 RemovePreviousVersions does an uninstall of the older product before installing the new one. If you do the install taking a log: msiexec / i <path to those files (for which you will need Orca to look at the Component and File tables in the MSI file). - - Phil Wilson The Definitive Guide to Windows Installer http: / / www.apress DLL. Its just not getting deployed during upgrades. keywords: Force-overwrite, of, older, binaries, on, Setup, project? description: Using the setup-and-deployment project in VS (2005), is there a way to force binaries to install
VS2005 setup project: execute tasks without installing files? .NET Framework I have a .NET setup project that uses a custom action two programmatically create a codegroup with full trust. The creation of the codegroup is the one and only task, the setup should not install any files nor should it create a TARGETDIR. Two questions: 1) The dll containing the installer class for the custom action must be part of the setup project and is automatically installed in the TARGETDIR. Is it possible that the dll is part of the setup project but not deployed to the TARGETDIR? 2) Is it possible at all that the setup just executes some code (like the generation of the codegroup) without installing anything on the target machineß Best regards dpomt Visual Studio .NET Setup Discussions Windows Installer
Help deploying Windows Service to 64bit Server using Visual Studio 2008 Setup Project? .NET Framework I have a Windows Service I created a while back for our Win2003 / 2008 32bit Servers, written in Visual Studio 2008, deployed via a VS2k8 Setup Project. Everything works great, installs fine, and runs as it should. There is no platform Windows \ System32" folder. This difference prevents the service from running, obviously. If I change the Setup Project settings, set the Target Platform to "x64" and change in the File System screen use the "System (64-bit) Folder" placing the files in there and re-run the setup.exe on the server. . . . now the files are correctly installed to the "C: \ Windows \ System32 Framework64 folder, which successfully installed the Service. When I set the Target Platform of the Setup Project for x64, should not it use the 64bit version of the framework to install the service? If not, what does? The Setup Project should handle this automatically, not require manual intervention. What's the deal? Help? - - Andrew do not think VS 2008 still does not use the 64-bit InstallUtilLib.dll when installing services in an x64 setup. The short story is that installer classes are just a Visual Studio way to install