markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Ignoring failures when editing INI files

Hello,

I'm using the enterprise edition of Advanced Installer (v10.1).

Currently, I'm using an Edit INI File command to create a simple INI file in the SETUPEXEDIR of the host computer during installation. This normally works fine, but occasionally a permissions issue will prevent the file from being generated. In such instances, I would like to continue with the installation process (rather than rolling it back) since the creation of the file is non-critical.

Is there any way to do this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Ignoring failures when editing INI files

Hello,

I'm afraid this is the default Windows Installer behavior and it cannot be changed. As a workaround, you can try to create your own custom action which will search for the related target folder permissions and will set an installer property (CREATE_INI_PROP) if the INI file can be successfully created. Then, in our "Organization" page you can use the above CREATE_INI_PROP property to condition your INI file component installation.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”