How can i install any program using java code

 
Hi friends,
i want to know how can i install any software using c# code.

Hi,
You may change your title, Since this is C# forum.
 >>i want to know how can i install any software
usingc# code
So what kind of your software?
In C#,we can install and uninstall "*.msi" files (setup).
The code to install software without user interface is:
private void installSoftware()
Process p = new Process();
p.StartInfo.FileName = "msiexec.exe";
p.StartInfo.Arguments = "/i \"C:\\Application.msi\"/qn";
p.Start();
For more detailed information, please refer to article
C# - Installing and uninstalling software in codeproject.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How can i generate BARCODE Images using JAVA Code

    Hello ,
    My requirement is to generate BarCode Images to Print using JAVA Code.
    User will give only
    1) String.as Input Parameter and
    2) Type of Encoding you want to apply on to the String.
    outPut : code should generate Bar Code Images as per the requirements.
    can any one help me out with jars ????? or any link which can provide me start.

    1) I have requriement like generate doc file with
    more than one barcode image on that document.???
    So?
    If your chosen "doc file" format supports inclusion of multiple images there's no problem.
    If it doesn't, choose another format.
    2) I am able to generate .doc file but in which
    format i should open that doc file.????
    The same format you used to create it.
    3) Main thing is how can i put more than one barcode
    image on that doc file????
    That would depend on the file format and the API used to create it.
    is any one faced the same problem or gone through
    same requirement.
    Almost certainly. And they solved it too, given the document I'm looking at right now which is an e-ticket for an airline that has many barcodes and other generated images on it.
    So keep on trying, grasshopper, and you may find enlightenment.

  • How can I run other programs using java program

    hi experts,
    I am trying to execute a set of commands from java program
    eg: from command prompt
    java CommandExecutor c:\winnt\notepad.exe c:\some.exe c:\onemorecommand.exe
    and inside the CommandExecutor main method..
    public static void main(String []arg)
    for(i = 0; i < arg.length; i++)
    Runtime.getRuntime().exec(arg(i));
    the above code is executing all the command one after the other, but I want to execute the above commands squentially, i.e I want to execute the second command only after finishing the first command and the third after finishing the second and so on depending upon the arguments passed, how can I acheive this...
    I have tried to use the Process which is returned by the exec(arg) method but the exitValue() returns same value before execution and after execution.
    thanks,
    krishna

    Did you try to get the process returned and then try
    process.waitFor() method. This waits for the process to finish.
    After that try the next execution

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

  • How can we open any file using JAVA...

    Hi all
    i trying to make code in that code i choose a file using a filechooser then put that file name in FILE object like (File file = fileChooser.getSelectedFile();)
    but the thing is how can i open that file for example if that file is HTML file then opens in IE or if that file is MS Word document that open in Word, like that
    is there any suggestions
    Thanx
    Regards
    Satinderjit

    start is a windows command-line utility.
    start foo.doc will start Word (or Star Office or Word Perfect or whatever is registered for the .doc extension),
    start bar.htmnl will start your registered browser etc.

  • How can i get system variable using java

    Hi,
    I just want to know how can i get system variables using java code.
    for example i want to get the the date for today or i want to get the number of processes that's running.
    Thanks alot

    Hi,
    I just want to know how can i get system variables
    using java code.
    for example i want to get the the date for today or i
    want to get the number of processes that's running.
    Thanks alotSome generic "system variables" are available though Java, usually through the System class.
    Date today = new Date();
    is instantiated with the current date and time.
    Other system values, like environment values, should be passed to java through the command line (-D option) by setting system properties.
    Finally, platform specific values like the number of processes running will have to be written in platform specific code and executed by JNI (java native interface).
    Java is platform or system agnostic. Common system values, like time, are implemented. Hopefully you won't need platform specific values.

  • Can not install any program

    I can't install any program in my mac OS X(10.6.3)
    I didn't install any harmful program before or change any things in system.
    I am new in mac and just use it for browsing internet.
    I can not copy any thing in Application folder.
    when I install program in installation step it's show me "The installation failed"
    and under this, for example for Virtual Box write: "The installer can't create the folder "/var/folder/1G/1GlwO6PrF+u3......""
    what can I do?

    this message is for all app that i try to install.
    What specific apps have you tried?
    can you tell me how can i repaired permissions by using Disk Utility?
    Open Disk Utility, select your hard drive in the list in Disk Utility's window, then click Repair Disk Permissions. And be aware that there are [permissions messages you can safely ignore|http://support.apple.com/kb/TS1448]. You also may want to [repair the hard drive with Disk Utility|http://support.apple.com/kb/TS1417] if you haven't done that recently. If it still doesn't work, try [starting up in Safe Mode|http://support.apple.com/kb/HT1455] and see if that makes any difference.
    If none of this helps, you may want to try a local Apple Store, if there are any in Malaysia. I think there's going to be a serious language barrier if the problem needs any complicated troubleshooting, and it's always helpful for the person helping to be able to see the machine in question.

  • How can I install a program that comes in a CD when the iMac does not come with a CD entrance?

    How can I install a program that comes in a CD when the iMac does not come with a CD entrance?

    Another option if you have access to a second Mac with a drive is to connect the two together with the iMac in Target Disk Mode,  Transferring files between two computers using FireWire, and installing from the Mac with the optical drive.
    OT

  • I bought Photoshop CS6 Extended(education edition) for Mac. Now ik want to install it on my (new) macbook. I have the product code and serial number. I receive an error code: may be a false copy. How can I install this program?

    In 2012, I bought Photoshop CS6 Extended (education edition) for Mac. Now I want to install it on my new Macbook. I have the correct serial number and product code, but I receive an error message: the software may be a false copy etc....What to do?

    Here is a copy of the error
    This means : Installation failed.
    Verification of the Adobe Software failed
    The product you want to install is no valid Adobe product and seems to be falsified.
    HUgo
    Op 29-aug.-2014, om 23:42 heeft Jeff A Wright <[email protected]> het volgende geschreven:
    I bought Photoshop CS6 Extended(education edition) for Mac. Now ik want to install it on my (new) macbook. I have the product code and serial number. I receive an error code: may be a false copy. How can I install this program?
    created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Hugo please turn off your e-mail signature.
    If your serial number is listed as being valid at http://www.adobe.com/ then I would recommend obtaining a fresh copy of the installation files.  You can find details on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
    To download a fresh copy of the installation files please see Download CS6 products.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6685617#6685617
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can we prevent back button  using java script

    how can we prevent back button using java script

    Would be quicker for you to google for javaScript
    javascript:window.history.forward(-1);

  • How can I install free program

    How can I install free program to my I pad

    You can only install Apps / programs from the App Store App.
    You cannot download from the web and install through safari or anything else.
    Also only Apps designed to run on iOS (The operating system on iPads and iPhones) can be installed.
    Where is this program located??? 

  • How to know what CBO programs uses transaction codes

    Hello Everyone,
    How to know what CBO programs uses transaction codes?
    Thanks for the help!

    Hi,
    Please clarify your question ....
    for e.g. give program name

  • How Can I execute a java program using java code?

    {color:#000000}Hello,
    i am in great trouble someone please help me. i want to execute java program through java code i have compiled the java class using Compiler API now i want to execute this Class file through java code please help me, thanks in advance
    {color}

    Thanks Manko.
    i think my question was not clear enough.. actually i want to run this class using some java code . like any IDE would do i am making a text editor for java, as my term project i have been able to complie the code usign compiler api and it genertaes the class file but now i want to run this class file "THROUGH JAVA CODE" instead of using Java command. I want to achive it programatically. do you have any idea about it.. thanks in advance

  • I can't install any program with CC

    This all started with trying to install Lightroom 5.  I keep receiving the Error Listed below.  After read other forums I now have no Adobe CC programs installed and can't install any of them.  I really need help on this.
    I am running Windows 7 Pro 64bit.  Here is the error.
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example,  ERROR:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s)
    ----------- Payload: AdobeLightroom5CCMSetup-mul 5.0.0.0 {3f480018-d40f-429a-b939-d1a53276944f} -----------
    ERROR: Third party payload installer Install Lightroom 5 CCM.exe failed with exit code: 1157

    delfire32  we can download the adobe cleaner tool from the below link
    http://www.adobe.com/support/contact/cscleanertool.html
    1 : choose language as english
    2 : press "Y" when prompts .
    3 : choose option 3 and then option 1. We might also see adobe lightroom 5 in that list. Remove that as well.
    Post please rename "OOBE" folder to "OOBE.old" from the below location.
    C:\Program Files(x86)\Common Files\Adobe\OOBE .
    C:\Users\<user name>\AppData\Local\Adobe\OOBE .
    we can also try some of the troubleshooting steps mentioned in the documents. Though it is for previous e version products
    http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    Hope that helps.

  • I purchased a new computer without a disc drive. How can I install my program without having to repurchase it ?

    i bought Photo Elements 12 ( disc version ). I have recently had to get a new computer . How can I install this product without having to repurchase it ?

    If you have the disc and your new machine has a disc drive then use those.  If you need to download then you can download thru the following page and use your serial number from the disc to activate...
    PSE 10, 11, 12,13 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 12: http://prodesigntools.com/photoshop-elements-12-direct-download-links-premiere.html

Maybe you are looking for