User Tag List

Results 1 to 6 of 6

Thread: Writing INI file in Windows 10

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export Module
    Enrico's Avatar
    Join Date
    Dec 2011
    Location
    Italy
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Writing INI file in Windows 10

    Recently I changed my pc with Windows 10 Pro. My application worked with Windows XP SP3 but it works in W10 only if I run the exe file and it does not work if I install the application with Install Creator Pro (Build 44).
    Using Install Creator Pro, I have included the creation command of the INI files in the "C:\ProgramData\Game".
    Despite this, the file is not updated. If I try to change it manually, W10 asks me where I want to save the new file: will not let me change it!
    I also tried to keep the INI in the application folder but nothing changes.
    This also happens to other files that need to be changed by the User (txt, csv).
    You know how to make editing files (editing permission) with the software?
    Thanks

    Enrico

  2. #2
    No Products Registered

    Join Date
    Aug 2016
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By default Program files folder is locked for write by users in Windows 7 up environment. I believe for data there's a hidden folder called ProgramData on C: drive or use App Data in Users folder to save it. For all use Public or only current user if each user will have their own...

  3. #3
    No Products Registered

    Join Date
    May 2009
    Location
    Stockholm, Sweden
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got same result as you when including an INI file. Not writeable.
    If the INI-file is created by the installed EXE-file, its ok to do read/write !

    I hope this workaround is some help

    C:\programdata\ is hidden, but its open up if write %appdata% in file explorer. And this is the folder for your dynamic data for all users.

  4. #4
    No Products Registered

    Join Date
    Jan 2017
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My permissions look exactly like that. The key is that "Administrators" have full control. If it is a one-time thing, you can log in as the actual administrator account, I believe it can read/write to the folder without any UAC restrictions. Go to ComputerManagement (right-click in lower left corner) and select the local user account Administrator and enable it. Then you should be able to log in as it if you need to

  5. #5
    No Products Registered

    Join Date
    May 2009
    Location
    Stockholm, Sweden
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found out its only possible to write new file, or add new values in INI file.
    Impossible to change or erase INI-file or values in INIfiles
    The odd thing its possible to add a new value in file by system calls, but not edit the file.
    It depend how you do it.

  6. #6
    Clicker Install Creator ProPatch Maker

    Join Date
    Jan 2008
    Location
    Amsterdam
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because the installation is run under administrator credentials, you can include a tool application (which you have to create by yourself) driving with commandline params that can set privilages for the common user to give read/write access in a directory.

Similar Threads

  1. Writing and reading decimal numbers to an INI file?
    By Paul_Boland in forum Fusion 2.5
    Replies: 4
    Last Post: 11th April 2014, 09:55 PM
  2. Writing to a log file.
    By turtle in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th July 2010, 03:49 AM
  3. An error has occured while writing the file
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th April 2010, 04:59 PM
  4. How do I let one file writing event wait for other
    By bertus in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st February 2010, 09:54 PM
  5. Cannot open include file: 'windows.h': Nosuch file
    By JasonDarby in forum Extension Development
    Replies: 12
    Last Post: 11th February 2007, 11:12 PM

Posting Permissions

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