INI Search File - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

INI Search File

Hi,

My AI project uses a setup.ini file that I have placed in the Windows Folder allowing me to use the Search feature to set and obtain installation values from the file. However, after deploying the application as an administrator, when I run the auto-updater, the user does not have permission to read or write to the ini file. How do I set permissions for an ini file within the Windows folder? Normally, you'd use the properties of the file to set the permissions from the Edit File dialogue bo. But selecting the properties of an ini file shows the Edit INI dialogue box instead.

Thanks,

Glenn
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: INI Search File

Hello Glenn,

If you add the INI file as regular file (choose "No" when AI asks 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 from the properties context menu because Windows Installer does not offer support for this.
However, if you need the to import the INI for editing purposes, you can still set permissions to it by using the Xcacls as a custom action.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”