Link to home
Start Free TrialLog in
Avatar of VirtueTech
VirtueTech

asked on

How to execute a .BAT file (batch script) during or automatically after a Visual Studio Created Install/Setup Program?

Hello everyone,

I have created an installation "Setup Wizard" using Visual Studio 2003 for my C++ application. I have created a .BAT batch script that basically runs some command prompt commands to create a new user and a password for that user.

Currently the Install program just places the .BAT file on the users desktop for them to run after installation. It doesn't automatically run it after or during the installation.

How can I make it so that it either executes the .BAT file during or after the installation of my C++ program?

Again please note I'm using the standard Visual Studio 2003 "Setup Wizard" to create an installation/setup program that installs my C++ program on the users PC.

Thanks in advance.
Avatar of AlexFM
AlexFM

I have VS 2005, hopefully in VS 2003 this is the same.
In Solution Explorer select project item, clock "Properties" tab. Properties contain PostBuildEvent - specifies any commands to execute after the build ends.
Avatar of VirtueTech

ASKER

I checked and I don't see it. Looks like it might be VS 2005 only. Too bad...that would have been perfect.

Thanks for the reply.

Anyone else have an idea?
ASKER CERTIFIED SOLUTION
Avatar of Eduard Ghergu
Eduard Ghergu
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks guys....going to give it a shot tonight