- Add a setup project in your project solution
by
Right Click on Solution -> Add -> New project - Add New Project window opens. Select Setup
Project by
Other Project Types -> Setup and Deployment -> Visual Studio Installer - Give some name to your setup project and click OK
- Setup Project gets added into your project solution.
- Right click on your setup project
- Go to Add option and then Project Output
- Select Primary Output of in the list box and select your application in the top combo box. Now click OK.
- Again right click on your setup project and Go to View option and then Custom Actions
- Now Custom Actions window gets opened. Right click the Custom Actions and then Add Custom Action…
- A window opens, now you have to double click Application Folder option. Doing this, you get to see Primary output from “Your Project”. Select that option and click OK
- You would see that primary output of your project gets added in Install, Commit, Rollback and Uninstall option.
- Make sure that your setup project is got added into your project solution.
- Right click the project solution and open the
property, go to the Configuration and select the Build option
Build the whole project. - Now you can install your application by right click the Setup project and choose Install option.
- Your app gets installed successfully! You can reach its exe in the default path in your setup. (Generally default path is like…C:\Program Files\YourCompanyName\).
Friday, December 12, 2014
Creating a Setup Project in Visual Studio-2010
Tuesday, August 12, 2014
Java quiz 1 Answer
Java quiz 1 Answer
- B
-
B,D,E D-At line 3, we created a string object and its value is 'Java'. Because no new assignment was made, the new String object created with the 'concat()' method and the 'replace()' method was abandoned instantly. In the end, the value of 's' remains 'Java' False- The code segments B and D will compile without any error. A is not a valid way to construct a StringBuffer, you need to create a StringBuffer object using "new". B is a valid construction of a Boolean (any string other than "true" or "false" to the Boolean constructor will result in a Boolean with a value of "false"). C will fail to compile because the valid range for a byte is -128 to +127 (i.e., 8 bits, signed). D is correct, 0x1234 is the hexadecimal representation in java. E fails to compile because the compiler interprets 1.2 as a double being assigned to a float (down-casting), which is not valid. You either need an explicit cast, as in "(float)1.2" or "1.2f", to indicate a float.
Java Quiz 1
Q1-
1. class Ex1{
2. public static void main(String[] args) {
3. int a[][] = new int[3][];
4. a[1] = new int[]{1,2,3};
5. a[2] = new int[]{4,5};
6. System.out.print(a[1][1]);
7. }
8. }
Which is the output?
Ans
Q2.
Choose the three legal identifiers.
Ans:
Q3.
Given
1. class S{
2. public static void main(String [] args){
3. String s = "Java";
4. s.concat(" SE 6");
5. s.replace('6','7');
6. System.out.print(s);
7. }
8. }
What is the result?
AnsQ4.
In the following pieces of code, A and D will compile without any error. True or false?
A: StringBuffer sb1 = "abcd";
B: Boolean b = new Boolean("abcd");
C: byte b = 255;
D: int x = 0x1234;
E: float fl = 1.2;
Ans
Thursday, August 7, 2014
How to get back lost PhpMyAdmin password?
Ans: Your credentials should be the same as you used to login to your Hosting account.
Thursday, July 31, 2014
Subscribe to:
Comments (Atom)