rwatson
Posts: 17
Joined: Fri Nov 10, 2006 11:34 pm
Location: Oregon

INI file

We have an older program that is still using .INI files. How can we make the .INI file not readonly when it is installed?

If I right-click on a file and select properties, I can make a file not readonly, but if I right click on an INI file, there is no option for this.

Thank you in advance.
rwatson
Posts: 17
Joined: Fri Nov 10, 2006 11:34 pm
Location: Oregon

It appears that this is actually only a problem on Windows Vista. The INI file created on Windows XP Pro is not readonly, but when I run the same install on Vista the INI is readonly!

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
How can we make the .INI file not readonly when it is installed?
Windows Installer does not support to set attributes for a INI file.
It appears that this is actually only a problem on Windows Vista. The INI file created on Windows XP Pro is not readonly, but when I run the same install on Vista the INI is readonly!
I cannot reproduce this behavior. I test this on XP and Vista and the INI file is not created as read only. How exactly you create that INI file?

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rwatson
Posts: 17
Joined: Fri Nov 10, 2006 11:34 pm
Location: Oregon

Figured it out. It's not that the file is actually marked as read-only, it's that the rights for the group "Users" is set to only "Read" and "Read & Execute". It appears this is the default for any new files in the Program Files folder.

However, I still can't set the security for it from within AI!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can set permission for folders or for regular files, not for a INI file. Please see this for more details:
http://www.advancedinstaller.com/user-g ... sions.html

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rwatson
Posts: 17
Joined: Fri Nov 10, 2006 11:34 pm
Location: Oregon

Thank you.

Is there any chance that it'll be added to the next version? I mean .INI files are really seriously old school and it only appears to affect the new security policies in Vista, but ... ???
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If you add the INI file as regular file (choose no when AI ask to import it) then you can set permissions for it. If you add the file as INI file (import it from your drive or choose "New INI File") you cannot set permissions because Windows Installer does not offer support for this.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”