473,394 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 870

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

Similar topics

7
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...
1
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...
5
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...
0
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....
0
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...
1
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...
3
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...
1
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.