B4J Question Creating & Using Installers?

Discussion in 'B4J Questions' started by aidymp, May 12, 2015.

  1. aidymp

    aidymp Active Member Licensed User

    Hi, I have created an app in B4J for Windows, And Wrapped it using Launch4J all is fine - I usually have it running in a folder on my desktop - an its fine) I'm just trying to create an installer (Using Install Forge) for the program, and it works well, EXCEPT! (My program downloads and creates some files in the (C:/program files/myapp/myprogram) AppDir directory) but these files will not write as it seems the directory will only allow writing if your running as an administrator! So if I run normally the program just fails, but if i run as an Adminstrator, I can write the files.

    My Question is! Should I be writing files to the program files/myapp/myprogram directory?
    Or should I be perhaps using the %USERDIR%Appdata/roaming directory?

    I'm looking to do it the correct way! ;)

    Thanks

    Aidy
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You cannot write in program files. Use %USERDIR%Appdata/roaming/<app name>
     
    aidymp likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice