User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Where to place the data files for a MMF2 program.

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Where to place the data files for a MMF2 program.

    I have created a MMF2 program and currently I use Install Creator to install the program .exe file into C:\Program Files\<name of program>. Then I have a subdirectory C:\Program Files\<name of program>\Data where the data files are stored. This is how I have the program installed on both Windows XP and Windows Vista computers.

    However, Is this really the best way to do it since I understand Microsoft is trying to change the C:\Program Files so that no changes can take place to files in this directory. So it appears the data files may need to be stored somewhere else.

    What is the recommended way Clickteam would suggest for both Windows XP and Vista. Am I fine to leaving my setup as is or do I need to change it?


  2. #2
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    Write access to "Program Files" folder is only available with administrative rights. Just make a folder in the Users Documents folder with your gamename and save all data there.

    Use the file object and AppDataDirectory$( "File" )

    Then create a folder there. You should be safe for Vista and XP.

  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    What if there are multiple user accounts on the same computer?

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    Then your files end up in different folders for each username.

    Each time a new user who starts your program it will behave like freshly installed.

    You can get All Users folder by AllUsersAppDataDirectory$( "File" )

    During Installation make a folder there and save your file if you want to share settings among users, like fullscreen, sounds music etc.

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    Hmmm wait a sec. Are you saying that there may be issues on other peoples computers if you use the Apppath$="/data" approach and the application has been installed in a certain directory nothing can be saved in this folder?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    Quote Originally Posted by bigredron
    Hmmm wait a sec. Are you saying that there may be issues on other peoples computers if you use the Apppath$="/data" approach and the application has been installed in a certain directory nothing can be saved in this folder?
    Some computers do not allow you to edit/add or mess around with files in the C:/Programs folders is what I got from this. Otherwise you should be fine.

  7. #7
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    Quote Originally Posted by bigredron
    Hmmm wait a sec. Are you saying that there may be issues on other peoples computers if you use the Apppath$="/data" approach and the application has been installed in a certain directory nothing can be saved in this folder?
    If you install it into the program files folder on Vista your program will not be able to write data to the apppath$ directory!

    http://msdn.microsoft.com/de-de/library/bb757005(en-us).aspx


  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Tallmadge, Ohio USA
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    This thread should be stickied or placed in a best practices location for future reference. Valuable information.

  9. #9
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    OK so I need to get this defined better. If I am writing a MMF2 application I normally create a folder called "Program Name" in the My Documents Folder. In this folder I create subfolders for data or chart dlls etc.

    So I have <Program Name> - <Data>
    - <Chart>
    etc..

    This works fine in MMF2 since I use the expression editor and I will say to go to ".\data\name of a file"

    So in MMF2 when I run the application or frame it has no problem fining the data directory.

    I then use Install Creator and it finds the Program and subfolders also. But now this has to be changed depending on if I am creating the install program for XP, Vista, or Windows 7 both in MMF2 and Install Creator? Or does Install Creator take care of this issue?

  10. #10
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where to place the data files for a MMF2 program.

    Vista and Windows 7 both have write access to Program files disabled by default. You can with administrative access. When you install you most likely have administrative access. If you then start the program on Vista or Windows 7 you cannot write to the Program Files sub folder. Windows will write to the virtual storage, however this is not a regular folder to find and browser so if you have any forms like the open dialog form, this will not work. Instead write to application data directory of the user. This works since Windows NT when Roaming Profiles where introduced.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Using ini from Program Files Folder
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 24th August 2010, 11:08 PM
  2. Program files (x86)
    By pl in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 5th August 2010, 02:04 PM
  3. Recieve data from another Program
    By Dagge in forum Multimedia Fusion 2 - Technical Support
    Replies: 20
    Last Post: 22nd September 2009, 04:09 AM
  4. mmf2 pictures snap into place
    By dray in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th December 2008, 04:52 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
  •