User Tag List

Page 1 of 5 1 2 3 ... LastLast
Results 1 to 10 of 47

Thread: Vista file permissions issue

  1. #1
    No Products Registered

    Join Date
    Mar 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vista file permissions issue

    I'm running into a problem with Vista were my permissions after I install are messed up. I can't create or copy any files in the new directory. I check my permissions and I'm not telling install creator to create it as read only. Any idea on what is happening here? My install package works fine on XP.

  2. #2
    Clickteam Clickteam

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

    Re: Vista file permissions issue

    On XP usually people have administrator rights, not with Vista. For limited user accounts the Program Files directory is protected, you cannot write to it. When you run an install program, Vista usually runs it in administrator mode, so the install program is allowed to install the program in the Program Files directory, but the program itself is not allowed to do that. You should write your data files to the user's Application Data folder.

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Vista file permissions issue

    Another work around is to right click on the icon and say run as administrator. Is it possible to get Install Creator to by default to set this attribute?

  4. #4
    Clickteam Clickteam

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

    Re: Vista file permissions issue

    There is no option for that in the current version, we'll try to add one in a next build.

  5. #5
    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: Vista file permissions issue

    Quote Originally Posted by Yves
    On XP usually people have administrator rights, not with Vista. For limited user accounts the Program Files directory is protected, you cannot write to it. When you run an install program, Vista usually runs it in administrator mode, so the install program is allowed to install the program in the Program Files directory, but the program itself is not allowed to do that. You should write your data files to the user's Application Data folder.
    Oh man, I've got a headache!
    LOL! No really, I don't fully understand this. Are the days of creating simple install programs gone now that Vista is here? What's the current situation in regard to creating installations with Install Creator?
    KnightTrek Productions
    http://www.knighttrek.com

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

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

    Re: Vista file permissions issue

    Hmm, it sounds a bit like the way Mac does it- an installer prompts you to type in the administrator password, and then goes on as normal.

  7. #7
    Clickteam Clickteam

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

    Re: Vista file permissions issue

    Paul, sorry for your headache. You should have no problems with your installers or applications. More info (hopefully not too confusing...) :

    - On Vista, the applications are executed by default with normal (limited) privileges, even on administrator accounts. In this mode, applications are not allowed to write to system folders like the Program Files folders or to system folders in the registry (HKEY_LOCAL_MACHINE, etc). (in fact they can, see below)

    - for applications (like installers) that need to write to system folders, there is a Run As Administrator command. If you use this command, Vista runs the application with elevated privileges (it asks for a confirmation and for an admin password if necessary).

    - Vista also has an option to automatically detect installers : if it detects an application is an installer, it will use the Run As Administrator command to run it, so that for example it's allowed to install files to the Program Files directory.

    - When you run your application, it has limited privileges, unlike your installer. I.e. your application is theoretically not allowed to write to system folders. However as lots of old applications write files to their install directory in the Program Files folder or to system registry keys, Microsoft has implemented a virtualisation system that allows them to do it : in fact files are not written to the system folder, they are written to a virtual folder in the user's application data folder, but appear in the system directory in the open/save file selectors. For example if your application saves "Paul.dat" to the C:\Program Files\PaulLtd\Caretaker folder, Vista will save it to C:\Users\YourUserName\AppData\Local\VirtualStore\P rogram Files\PaulLtd\Caretaker but will display it in file Open/Save selectors as if it was in C:\Program Files\PaulLtd\Caretaker.

    This virtualization system is a little confusing, so you should just follow the following rules if possible :

    - your application shouldn't save files to its install directory

    - if your application saves settings to a config file, it should save it to a sub-directory of the user's Application Data folder

    - if your application saves settings to the registry, it should save them in the HKEY_CURRENT_USER\Software\YourCompany\YourProduct folder

    Yves.

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Vista file permissions issue

    So lets say you have an app that is installed in

    c:\program files\foo

    and when you launch the app, it check for new data (art)

    It checks...and there IS!


    so now,

    you want the app to download the new art here:

    c:\program files\foo\art

    Will it?



  9. #9
    Clickteam Clickteam

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

    Re: Vista file permissions issue

    The files will be created in the VirtualStore folder, but will be loadable from the program files folder. You should test it anyway.

    Yves.

  10. #10
    Clicker Fusion 2.5 Developer
    00J's Avatar
    Join Date
    Jun 2006
    Location
    Virginia, USA
    Posts
    1,510
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Vista file permissions issue

    So any chance of MMF moving on to MAC? :whistle:

Page 1 of 5 1 2 3 ... LastLast

Similar Threads

  1. 32 or 64 detection and File Permissions
    By Chaim in forum Install Creator and Patch Maker
    Replies: 4
    Last Post: 23rd April 2012, 03:07 PM
  2. Windows 7/Vista permissions
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 2nd April 2011, 02:31 AM
  3. ICP file permissions
    By andic in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 27th March 2011, 07:00 PM
  4. Really annoying permissions issue
    By LaraSoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd January 2008, 08:15 AM
  5. File Permissions
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th October 2007, 11:54 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
  •