Access Denied


  1. Posts : 2
    Window 7 Professional 64 bit
       #1

    Access Denied


    When any USER ( logged IN with any user Account) installed our setup file using option "Installed Only for Me", executable has been installed in C:\Program Files (x86), with one text file say "init.property".

    Installer sets USER_DIR and TEMP path in this text file and we usually read "init.property" file, when user used to run our application. We keep related user data over USER_DIR and we keep LOGS over TEMP path.

    The issue is when our program is going to read "init.property" it has "Access Denied" and our program would not get right path to download user related data i.e. over USER_DIR.

    How can we read "init.property" logged IN with any user Account because user has no privilege to access file in C:\Program Files (x86) ? Please suggest me what is the standard criteria in such cases ?
      My Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    Don't store anything in "Program Files" when the user does "Install only for me" The "AppData" folder exists for this reason.
      My Computer


  3. Posts : 2
    Window 7 Professional 64 bit
    Thread Starter
       #3

    Thanks for the reply. Can you suggest where else we can allow to install executable other then "Program Files" ? Setup files always used to installed software executable in "Program Files" this is standard follow by all setup files. If user has no privilege to access "Program Files" in windows 7 then where we allow to installed executable ? Do we need to restrict user that he/she has no privilege? What standard criteria that has been followed by all vendors ?
      My Computer


  4. Posts : 5,642
    Windows 10 Pro (x64)
       #4

    You can install and run software any where the user has permissions to do so.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:20.
Find Us