- Go to File > New Project > Project Types: Other Project Types > Set up and Deployment >
- Select Setup Wizard
- Give a name to setup file and location
- Click OK
In Setup Project Wizard,
- Select "Create a setup for a Windows application"
- Browse for additional files such as config file
- If there are any dependancies with the other projects in the same solution, specify that as well
- Click Finish
The setup file will be created in Release/ Debug folder in Setup folder of the project.
You can execute the setup file to start installation. Default installation location will be "C:\Program Files\{Solution name}\.."
To run the executable in Windows command prompt, go to the program files folder and give exe. name with the arguments (if any)
Ex: C:Program Files\Test > Test.exe arg1=1 arg2=2 arg3=3
No comments:
Post a Comment