473,738 Members | 7,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

run extra script during deployment of an app

Hi all,

I'm currently finishing my app and I'm busy with the creation of a MSI
package (via Visual Studio) so users can install the app. My app uses an own
event log entry in the event viewer. During the installation of my app, this
entry needs to be created so possible errors can be logged. The code to
create such an entry I allready have. I now only need a way to run that code
during the setup.

While that code is being run, I also need to attach my database file to the
SQL Server engine (sp_attach_db <db-name> <.mdf-file> <.log-file>. Normally
this is done via SQLCMD or any other tools. Is it possible to run this SQL
command with C# code during the setup?

Does anybody have an idea how i can do these things?

The complete app and setup project is made with VS 2005 RC1 and SQL Server
2005 (Express).
Nov 9 '05 #1
0 880

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1677
by: Dave L | last post by:
I have a VB.NET 2003 solution with several Windows forms projects and a deployment project. All of that works ok. I need to run an external script or program during the build process. It could be done as part of each project or as a separate project that is built immediately before the deployment project. I can code everything that I need into the script/program, so the calling interface isn't very important. How can I do that? The...
1
1235
by: dwaine | last post by:
I HAVE done this before, but can't figure this out. It's not critical, just an annoyance. Added RTF files to a standard deployment project, then "Read Me" and "License Agreement" dialogs and set their file properties.... but I get blank dialogs during install!!! Any ideas?
5
1906
by: Praveen | last post by:
I have script files embedded as resources in my dll. During runtime, I would like to write it out into the app dir (or a app sub-dir) and send the appropriate virtual path to the client. This makes deploying my dll much easier - just a single dll, not having to worry about deploying script files. However, the runtime doesn't seem have enough permissions to write out to the app dir (or any of it's subdir), by default. The folder where I...
0
796
by: Yves Royer | last post by:
Hi all, I'm currently finishing my app and I'm busy with the creation of a MSI package (via Visual Studio) so users can install the app. My app uses an own event log entry in the event viewer. During the installation of my app, this entry needs to be created so possible errors can be logged. The code to create such an entry I allready have. I now only need a way to run that code during the setup. While that code is being run, I also...
0
1593
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an installation are: 1.Add an install class to the deployed project and imperment the custom action 2.Add a "Data Entry Dialog Boxes" in the User Interface Editor of the deployment project(my examply has two textbox,thier property are DBUSER and...
1
2254
by: vijay | last post by:
HI All, I am using C#.net 2005 and my problem is, i want to automatically run sql script to Restore database as a part of .net Setup and Deployment. I have done setup for my project by using setup wizard but not able to add sql script to resore database while i deploy my setup to client machine i should run script during installation to restore database. Can anyone have solution pls help me out.
3
5169
by: Mohit | last post by:
Hi All, I have some batch files which needs to be executed when installer is running. How can I achieve this functionality using .Net MSI installers. I didn't found any option where I can include all my executables(here it is .bat) so that they can be run at the time of installation. Thanks in advance!!!
1
2363
by: broken472000 | last post by:
Hi, i developed one web application using visual studio 2005. before deployment it runs perfectly. when i deployed and try to access pages, i get the following errors. i am using sql server 2005 management studio.what i have to do for avoiding this problem. plz help me. Server Error in '/' Application. -------------------------------------------------------------------------------- ExecuteReader requires an open and available...
0
1148
by: DocVu | last post by:
Dear everybody, I'm very sad now. I have problem with making the Setup package. Could you share with me a light.Our problem as followings: 1. I expect the deployment package contains the following features: - The user will get the deployment package with 2 files: setupname.msi and setupname.ini - The setupname.ini file tell us which modules the end user has permission to install (and which are not-allowed-modules).
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.