Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6969639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:36:25+00:00 2026-05-27T16:36:25+00:00

I wrote a Java app and I packaged it with NSIS (or NSYS…) installer.

  • 0

I wrote a Java app and I packaged it with NSIS (or NSYS…) installer. I works cleanly but sometimes I found that for some users running on Windows 7, the app won’t be able to write on disk at all (it can’t even write the log). The app is installed on c:\Programs (or d or e…). People from support say that they solve it by installing in c:\ . Why does this happen? Is it related to Java security? Maybe on my Windows installation and others I don’t notice it because I have UAV turned off.

Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:36:26+00:00Added an answer on May 27, 2026 at 4:36 pm

    You have hit the nail on the head when you wonder if it is because you have UAC switched off.

    You should not be writing the log file to the location that the application is installed to, instead you will need to pick a location that is writable by the app, e.g. A directory below the user.home system property.

    The reason that java applications can’t do this and other applications can is related to Data Redirection, which causes writes to certain folders to be transparently redirected to a per-user store of data. I think this redirection is disabled for the JRE (checked using process explorer, which does not have a marking of ‘Virtualized’) which means that on java programs the transparent redirection will not happen.

    If you want your application to be able to write into the install directory of the application, then the easiest way to accomplish this is to change the permissions of the folder on installation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i wrote a java app that communicates and stores data in oracle; my question
I wrote a stand alone Java program (THAT WORKS) it calls a native library
I've never done a Java Web start application before. I wrote my app's JNLP
My question pertains to multi-threading in Java. I'm translating an app I wrote in
Anyone know if it is possible to write an app that uses the Java
I have a c# winapp that calls a java app by tcp and sends
I have a java console app that I'm writing, and I want people to
I wrote java application and i need to make it standalone for macos(.app). Earlier
I am a bit confused. I wrote a Java stand alone app and now
I have a Java rich client desktop app. that I want to distribute on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.