Results 1 to 3 of 3
  1. #1
    danjpalmer is offline Member
    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    0

    Default Installing files to the c:\Users\**USERNAME**\ directory

    Hi,

    I have a Java based program that runs another executable that in turn clears up any directories that the uninstaller couldn't itself delete, the next time the system is rebooted. This second executable is located in the c:\Users\**USERNAME**\ directory. The issue is that MalwareBytes, and other anti virus software, flag this as a Trojan when it tries to run. MalwareBytes explained that it's against protocol to run an executable from within the root of the users directory.

    Can someone explain to me why this is?

    Obviously I'll change the code to move it but I was just interested in why this was the case.

    Thanks

  2. #2
    fxRichard is offline Member
    Join Date
    Dec 2008
    Posts
    64
    Rep Power
    0

    Default Re: Installing files to the c:\Users\**USERNAME**\ directory

    Quote Originally Posted by danjpalmer View Post
    Hi,

    I have a Java based program that runs another executable that in turn clears up any directories that the uninstaller couldn't itself delete, the next time the system is rebooted. This second executable is located in the c:\Users\**USERNAME**\ directory. The issue is that MalwareBytes, and other anti virus software, flag this as a Trojan when it tries to run. MalwareBytes explained that it's against protocol to run an executable from within the root of the users directory.

    Can someone explain to me why this is?

    Obviously I'll change the code to move it but I was just interested in why this was the case.

    Thanks
    Yes, if you are using Windows Vista or Windows 7 it is protocol to place your executable files under the :\Program Files\<App Name>\ or :\Program Files(x86)\<App Name>\ directory. If you don't do this most malware scanners will pick you up.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: Installing files to the c:\Users\**USERNAME**\ directory

    Not really a Java question. Moving form Advanced Java to Forum Lobby.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. how to find files in given directory
    By cecily in forum New To Java
    Replies: 7
    Last Post: 07-04-2014, 12:03 PM
  2. Rename files in a directory
    By rgeurts in forum New To Java
    Replies: 7
    Last Post: 05-12-2010, 12:36 PM
  3. How to. Files and Directory
    By ocean in forum New To Java
    Replies: 4
    Last Post: 12-06-2009, 06:23 PM
  4. Replies: 6
    Last Post: 08-06-2008, 01:41 PM
  5. load all files in a directory
    By moomoo in forum New To Java
    Replies: 1
    Last Post: 04-21-2008, 10:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •