1. When you click “Add”, a dialog will be opened to allow you to choose the file you need to add. You can add picture files, sound files, text files, an icon for your project, a read me file …etc.
2. Click “Next”
Generate Your Project Cont…
Click “Finish”.
Generate Your Project Cont…
The setup project is added now to your solution and a “File System” tab is opened.
Create Application Shortcut
To create a shortcut to your program on the user’s desktop.
1. Click “User’s Desktop”.
2. Right click the empty area on the right.
3. Choose “Create New Shortcut”
Create Application Shortcut Cont…
Double click “Application Folder”.
Create Application Shortcut Cont…
Create Application Shortcut Cont…
A shortcut is added.
You can rename it.
Add Application Icon
You can change your project’s icon from the shortcut properties in “properties window”.
Choose “Browse”.
Add Application Icon Cont…
Click “Browse” button.
Add Application Icon Cont…
Double click “Application Folder”.
Add Application Icon Cont…
Select the icon you added before, then click “OK”
Click “OK”
Finish Your Project Deployment
From the main menu.
Wait until the build succeeds.
Testing
Go to your project folder. You can see the setup folder added to your project
Open it.
Testing Cont…
You will find a debug folder, Open it.
The debug folder contains two files: “your setup name.msi” and “setup.exe”.
These two files are the setup files.
Testing Cont…
To try to install your program click on “setup.exe”.
Complete the installation.
The project shortcut is on you desktop now.
Testing Cont…
Double click the icon.
Your program runs now.
Hint
Before anything, you have to make sure the you didn’t use current directory in your code. Instead, write the file/folder name directly.