473,385 Members | 1,400 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,385 software developers and data experts.

Running bat files during installation through MSI

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!!!
Dec 13 '07 #1
3 5158
On Dec 13, 9:44 am, Mohit <mohitscj...@gmail.comwrote:
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!!!
Did you check out the PreBuildEvent and PostBuildEvent Setup Project
properties?
Dec 13 '07 #2
Thanks a lot for your reply.
Did you check out the PreBuildEvent and PostBuildEvent Setup Project
properties?
Well I have checked them and done some googling on them. But I found
(I may be wrong..correct me if so) that these will run the batch files
when the deployment project is built on the development machine. (Here
is a brief excerpt taken from msdn docs regarding PreBuildEvent
property - "Specifies a command line to be executed before the
deployment project is built.")

I wanted to run the batch files on the target machine on which
installation is done and those batch files should be run during the
time when installation is going on the target machine.
Dec 14 '07 #3


"Mohit" wrote:
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!!!
You will need to create a custom action to do this. You can include the
files/executables as part of your installer package. Though not exactly what
you are trying, I just bundled some zip files loosly in the installer and the
custom action uses ICSharpZipLib to extract them. I bundled ICSharpLib as
part of the installer and it worked well. I believe you will bundle your bat
file, then call it from your custom action.

Dec 14 '07 #4

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

Similar topics

7
by: MAK | last post by:
Hello everyone, I know how to add images and icons etc to dll file. What I would like to know is there is a way to add those icons on the forms during the run time from the dll or to reference it ...
2
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. ...
0
by: MichaƂ Januszczyk | last post by:
Hello. I've got the following problem: I created a windows installer project that installs my application. The application works with some files. I want to include some example files with the...
2
by: faktujaa | last post by:
Hi, I have created an application that uses IIS to host remote components. All the remote components are listed in app.config in client and web.config in server. Now the app.config can contain...
24
by: Thom Little | last post by:
During an uninstall, how can I check to see if the application I an uninstalling is currently running? -- -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd. --
6
by: Juggler | last post by:
Hi all I've written a program in VB.NET that allows the user to build quotes for installing shower enclosures. As part of the program, I've included a blank Access database. I've provided them...
4
by: Shiraz | last post by:
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm...
1
by: Dica | last post by:
i'm primarily a web developer, so this is probably a pretty stupid question to ask, but i'm trying to figure out how to run an installation package i'm writing in a VS setup project. as far as i've...
1
by: bogdan.taru | last post by:
Hello, I have had a lot of problems installing a DB2 v8.1 Personal Edition on a RHEL4. Solved most of them by using a JDK-1.4.1 instead of the default 1.3.1, which comes with DB2. But I still...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.