User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25

Thread: INI settings will not save / installing on comp..

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Apr 2008
    Posts
    488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    INI settings will not save / installing on comp..

    Hey All,

    I am building my application and installing it in several other computers to test if it works correctly. When I save my INI settings, they will not save the data or load the data. It works fine when I run it on my computer. Is this a path issue? I included the INI as an external file when building the application, should I have just left them out?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on comp..

    This could be a security issue. Microsoft don't want apps to use their savefiles in its own folder. This restriction counts for the #Program files# folder. And no, i don't understand that neither. It's Microsoft ^^

    Try to install at C:\ and have a look if it works then. When yes you have to either install your app at C or store the ini at the place Microsoft thinks that's the secure one.

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: INI settings will not save / installing on comp..

    That won't work on C:\ either.

    Probably the other machines use Vista?

    You should save the INI file to a sub-directory of the user's Application Data directory. To do that :

    1. Insert a File object in your application

    2. At start of frame create the directory AppDataDirectory$( "File" ) + "\YourSubDirectory" (with the Create Directory function of the File object) (note: do not forget the '\' before the sub-directory name)

    3. Set the INI file (using the Set Current File action of the INI object) to AppDataDirectory$( "File" ) + "\YourSubDirectory\YourFile.ini"


  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on comp..

    Ah, did they finally change that? Seems that i have to redo some of my apps then ^^

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Derby, United Kingdom
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on comp..

    Agreed its good application devlopment practice to use application data. This works in vista and also allows different installs per user on a machine should there be multiple.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on com

    One question to that. The install shield doesn't know about this folder. It is created by the software. Which means the folder in the appdatadirectory stays when you uninstall your app. Not ideal i would say. What's the best way to handle the uninstall then?

  7. #7
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on com

    Ini++ can automatically put it in this folder, too. However, currently it is only the base folder. Future versions will allow you to specify a subdirectory to put it in.

  8. #8
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on com

    You can always install in your own folder on the root directory, this gets over the issue with using the Program Files folder in Vista. If you have many programs on offer, do what I do and create one hub folder which contains all your programs. I install to,

    c:\KnightTrek Productions\PROGRAM FOLDER

    Where PROGRAM FOLDER is the name of the software being installed. That way, on the root directory of the computer, there is one KnightTrek Productions folder into which all my programs install.
    KnightTrek Productions
    http://www.knighttrek.com

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on com

    Bad practice! Users don't want folders in the drive root cluttering up their PC.

  10. #10
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI settings will not save / installing on com

    It does get around the Program Files problem, but forcing a directory on to the user is never a good idea...

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Vitalize on MAC comp
    By haim in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 3rd August 2008, 07:10 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
  •