File association on Windows for Java application?

Sorry for the Windows-related question, but I thought maybe some fellow Java hackers had run into the same problem...
We have a Java application targeted for multiple platforms, including Windows. We also have a certain file extension for our data files, call it .abc. Our customers would like the following functionality in Windows Explorer when the app is installed on Windows:
1 - custom description for .abc files
2 - custom icon for .abc files
3 - double-click an .abc file to open it in our application
It's easy enough to get this functionality by setting appropriate registry keys:
HKEY_LOCAL_MACHINE\Software\Classes\.abc: @ = OurApplication.abc
1 - HKEY_LOCAL_MACHINE\Software\Classes\OurApplication.abc: @ = An abc file for OurApplication
2 - HKEY_LOCAL_MACHINE\Software\Classes\OurApplication.abc\DefaultIcon: @ = <path>\OurApplication.ico
3 - HKEY_LOCAL_MACHINE\Software\Classes\OurApplication.abc\shell\open\command: @ = "<path>\OurApplication.exe" "%1"
This works great, except you have to restart Windows to get the changes to take effect. Does anyone know how to get the Windows shell to update itself to reflect these new Registry keys without restarting Windows? I've seen the SHChangeNotify function, but I can't call Windows API functions easily from the installer.

rundll32.exe may be of use...
Here are some samples of how to use it: http://dev.remotenetworktechnology.com/cmd/rundll32.htm
Google for more.
- K

Similar Messages

  • File associations in Windows 8.1 for applications on a network location

    Hi,
    From Windows 7 to Windows 8 it has been done alot of changes regarding file file assocations. It seem that the main reason was security and was "patched" by having Windows read the hash for the applications instead of where the application was
    located.
    but there seem to be some major hicups and there is limited info on the web covering these issues.
    First issue: when running:  Dism /Online /Export-DefaultAppAssociations:\\Server\Share\AppAssoc.xml and then creating a GPO configuration pointing to
    thi XML file.  With this feature only common file extensions is supported and when users are changing to another computer, these settings is not possible to syncronize using roaming profiles.
    Second issue: In the appassoc.xml file applications must be either appid(metro app) or common application on local harddrive to be registered and not a .EXE
    file on a network location.
    It seems a little strange if this is the case and if there is no other options for administratos to set file associations in more flexible ways. Does anyone have some more info on
    this topic other than these link:
    https://technet.microsoft.com/en-us/library/hh825038.aspx?f=255&MSPPError=-2147217396
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    https://keithga.wordpress.com/2013/11/13/file-associations-in-windows-8/

    Hi Primeid,
    You could use Group policy for file associations or you could deploy the xml file during image deployment. However as you mentioned that the file associations only applies to common application on local hard drive or metro app.
    http://blogs.technet.com/b/mniehaus/archive/2014/01/10/configuring-file-associations-in-windows-8-1.aspx
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    We understand your confusion about this, but we hope you understand that using network location for file association deployment is highly insecure and it is out of our recommendation since the content in that network location could be changed without any
    notification or permissions constraint.
    Thanks for your understanding.
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • How to create the exe files for java application

    How to create the exe file for java application?
    got any software to do that?
    Thanks

    In terms of converting java applications into exe files, there are 3 schools of thought:
    1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
    2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
    http://www.sureshotsoftware.com/exej/
    http://www.objects.com.au/products/jstart/index.jsp
    http://www.duckware.com/products/javatools.html
    http://www.ucware.com/jexec/
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/
    http://www.jelude.cjb.net/
    http://thor.prohosting.com/~dfolly/java/index.html
    3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
    http://www.excelsior-usa.com/jet.html (evaluation version available)
    4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
    Can't think of any free options right now.

  • How to convert .ear file of webdynpro for java application to webdynpro pro

    Hi All,
    I have a .ear file which belongs one web dynpro for java application.
    I do have other information about the same.
    I need to convert it into a web dynpro project and use it in NWDS to make changes.
    How can I do it? I could not find any solution on SDN.. I hope I get here...
    Thanks and Regards,
    Aditya Deshapnde
    Edited by: Aditya Deshpande on Nov 23, 2010 1:55 PM

    Hi Friend,
    This is almost not possible even if you have Java Decompiler -- WD has a lot compile(design)-time only artifacts that are not exist in generated EAR.
    Hope this is help full for u.
    Regards
    Vijay Kalluri

  • How to use BAPI in webdynpro for java application

    Hi all,
    Please help in getting started with calling a BAPI in a webdynpro for java application. I have got only the content needed to call a BAPI in a webdynpro for abap application but not in java. Kindly provide me some documents if possible.
    Thanks in advance

    Hi ,
    U have Created One Bapi u want to work with web Dyn pro for java Application Right .
    U need the Following
    1) NWDS (Netweaver Devloper Studio )
    2) jdk1.4 or Above installed in your system .
    After Installation of NWDS .
    1) Just Take J2EE Enginee Details
      a) Go to Window -> preferences  -> J2ee Enginee - > give ur port number , Host name Details . and click finsh .
    Go To Web Dyn Pro Perspective Click onj2EE engine .
    Click On Refresh U will see Green Colour button .
    Now ur Ready to import Ur BAPI .
    1) Go to File -> New -> Project - > Web Dyn pro Project -.
    Give Name , pkg Name Click On Finish .
    2) Expand ur project hirarchy -> go TO Application -> Right Click -> Create Application - > Give Application name and Pkg name -> Click on Finish .
    3) Now ur View And Controller Are Created by Default .
    4) Go to Model-> Right Click on it-> Create Model -> Give Model Name & Pkg name Should diff from Application pkg the Click On Next
    a) Here u have to Two JCo Destination Name Like Model Data And Meta data & R/3 System Details like System Number , Host name  Etc -> then Click on next .
    b) Here u will text filed where u want to search for ur Required BAPI . Type ur BAPI Name Click on Search . Ur bapi will be displyed In Down . click on Next .
    c) Now Ur model is Importedint into NWDS .Map ur model data To Controller and Controller Element to View Elements .
    After ur Model .
    Go to -> Project Name -> Right Click -> go to -> Deploy New Archive .
    after wards u have to go Apllication -> Right click -> deploy and Run .
    ur output will be displyed thru Browser .
    Thats it
    Regards ,
    venkat

  • How to access(connect) BI Data in webdynpro for java applications

    Hi ,
    is there any way to access and display the BI data in portal using webdynpro for java applications like we did in Visual composer.
    if not how to integrate the BI data in webdynpro applications ?
    Regards,
    Govindu

    Hi,
    Yes there are ways to do it. But may your scenario and the scenario for which I have done may differ.
    You can use openhub to get the data in a flat file and then read it into weddynpro through a java service OR
    You can use DBlink(which i have done).
    Please refer the link below:
    [Link|Data from BW to Oracle.;
    This I have done in NW04s. Not sure whether a better solution is available in the newer release.
    Hope it helps.
    Regards,
    Manoj

  • How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA

    Hi All,
    Please let me know "How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA"
    Regards,
    Ganga.

    Hi ,
    pl go through this note "Integrating a virus scan into SAP applications 817623 "
    SAP Virus Scan Interface
    http://help.sap.com/saphelp_nw2004s/helpdata/en/30/42c13a38b44d5e8d1b140794e8e850/frameset.htm
    Sample Application
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6e1c4221-0901-0010-63ba-b1f9459d6e74
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f2681486-0a01-0010-8497-c778eac80da5
    Regards
    Ayyappparaj

  • Manage Windows Using Java Application

    Hi,
    I am now developing a project, where we need to track the total time working.
    Eg. If i am working with outlook in my machine in various times, at the end, it should give me the total time of working with outlook.
    For this, i need to get the Windows ID (this case outlook). How can i access OS windows using java applications.
    Any idea how to do this???

    Hello,
    Syntax for Running report as JSP is as follow. The parameters can be passed by using "+" or "&".
    http://server.com/Employee.jsp?server=sac&destype=cache&desformat=html&userid=scott/tiger@database
    Use can pass reference parameters(user parameters)while ruuning the report.
    User can use User Parameters in his reports:
    "select * from emp where hiredate = :P_1"
    User can pass this parameter to Reports(while running it as JSP)as a parameter.
    http://server.com/Employee.jsp?server=sac&destype=cache&desformat=html&userid=scott/tiger@database&P_1=17-09-2000
    With Regards
    Sachin

  • Helpviewer displays empty window for some applications

    I just went to check Help in Mail for something and got a blank window. I've seen this before so i walked through the X-Labs excellent "Troubleshooting HelpViewer" article, which has helped me in the past. But the basic dumping of cache files and mail related plist files did not help.
    As suggested in the X-Labs article I enabled tracing for HelpViewer, lots of data information when invoking Helpviewer works, but not much when it doesn't, the following is typical:
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Mail Help
    2006-01-22 09:15:18.687 Help Viewer[1513] www.info.apple.com reachability: -------
    2006-01-22 09:15:18.757 Help Viewer[1513] www.info.apple.com reachability: -r-----
    2006-01-22 09:15:18.758 Help Viewer[1513] [HelpViewController handleURL:] processing url: help:openbook=%22Mail%20Help%22
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Facts:
    * Helpviewer works for some applications:
    Finder (mac help), Terminal, Calculator, Backup, Console, HelpViewer
    * Helpviewer displays a blank windows for some applications:
    Mail, Safari, iCal, TextEdit, AddressBook, iTunes, Preview, iPhoto, QuickTime
    * Mail, and other apps are otherwise working correctly
    * Mail Version 2.0.5 (746/746.2)
    * Tiger Version 10.4.4
    * I don't know when this problem may have arisen - first noticed today.
    Any Suggestions? Only major recent change was the 10.4.4 upgrade a few days ago, but i don't know if this problem existed prior to that.
    Thanks for any help out there!
    20Gig pod and a mini   Mac OS X (10.4.4)  

    Search Macupdate.com or Apple main page for Onyx, and in the "Automation" section there is a option to reset Mac OS X help.
    The system optimization and cache cleaning should be done about once a month to optimize the system a little bit.
    [ Edited by Apple Discussions Moderator ]

  • What are the reporting tools available for Java applications??

    hi..
    please tell me some reporting tools available for java applications.... if there are some, please mention how to find their documentation????

    http://jasperreports.sourceforge.net is a nice one, there is also a link to a graphical design tool.

  • Invoke Workflow from Web Dynpro for Java Application

    I am working on a custom web dynpro for java application and when the user clicks the submit button the SAP standard workflow (WS50000041) should be invoked. Does anyone have experience they can share with me on how to achieve this functionality? It should also be able to attach an adobe form or read data from the form and submit the data as xml.
    Thanks,
    Ashley

    Hi Ashley,
    Use following code in RFC to invoke your workflow -
    DATA : w_subrc TYPE sy-subrc,
                w_wi_id LIKE swwwihead-wi_id.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
            EXPORTING
              task                      = ' WORKFLOW - WSxxxxxx '
              language                  = sy-langu
              do_commit                 = 'X'
            IMPORTING
              return_code               = w_subrc
              workitem_id               = w_wi_id
            TABLES
              input_container           = it_container
              message_lines             = lv_swr_messag
          COMMIT WORK.
    With this code your workflow will get start. But u have to use workflow id in next application also in which your request is getting navigated. In that application you have to take this workflow ID and have to pass again in workflow using - PortalNavigation statements.
    After that this workflow will get start to publish in your TaskList (My Task) in Portal. Remeber that your all task should be maintained in workflow table by using SWFVISU  transaction.
    After that go to Portal and Re-Register your UWL so that your new Workflow ID will get usable in portal.
    With this way you would be able to use workflow with Web Dynpro Java using UWL and Workflow.
    Regards,
    Roshan Gupta

  • How to create setup for Java Application?

    Hello,
    I have created one Java Application. Now I want to create setup for that. I want to know if there is any tool is available for Java Application. If yes, then please help me to get that.
    My emal id is "[email protected]"
    Thanks in advance.
    Sam

    Go to www.zerog.com
    Download InstallAnyWhere4now (free)
    it is Awsome youll love it
    M
    bakbjo

  • Restart  MS windows by java application ?

    hi
    i need to help you.......
    how can i restart windows by java application?
    thanks

    execute the command "shutdown -r" with runtime.exec

Maybe you are looking for

  • ATP issue in Sales Order

    Hi I am facing problem in Sales Order I have created a Sales Order for four different material. Line item 10 XYZ with 6 quantity , but for this material ATP is not working. When i am clicking on ATP icon, in schedule lines tab, Order qty is coming 6,

  • I have files that will open in Quicktime, but not itunes. Anyone that can help me, please

    I have files that will open in Quicktime, but not itunes. Anyone that can help, please?

  • Tcode s_p00_07000134 give message "Message no. 7Q702"

    Dear Expert, I got this message "Message no. 7Q702" when i execute s_p00_07000134. Below is the value i keyed in. Process type = STD Output group = CER Country key = TH Reporting period = 01.01.2012 to 31.01.2012 Please help to advise. The posting pe

  • Auth settlement program

    can anyone explain how Credit card settlement happens from a technical point of view, I know it happens during invoice save , and how tables are copied from sales order to invoice, what is the user exit (program?) where the FPLTC table vales is copie

  • How do you invite or challenge someone in Game Center?

    It might sound stupid but I have Real Racing and Flight Control and there compatible with Game Center but I can't figure out how to challenge someone or invite someone to the game. I looked all over the app and that's there is play but it just opens