Creating configuration file during install - 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!

watersco
Posts: 7
Joined: Mon Dec 11, 2006 6:45 am

Creating configuration file during install

During my installation I need to create a configuration file which is used by the service I am installing.

I created a custom action and put it under the InstallExecuteSequence->Install folder. It works fine if the application directory already exists, but if the application directory doesn't exist then the configuration file is not created.

I need the file to be created early in the process so that it is available when the service starts. If I use the deferred option it seems that the service is started first, but because the configuration file doesn't exist yet it fails to start and the installation files.

How do I get a custom action to run after the the app directory is created?

Thanks,

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

Hi,

If your configuration file is a .ini file then you can create that .ini file in the "Files and Folders" page, choose "New INI File" from context menu. For more details about INI files please see:
http://www.advancedinstaller.com/user-g ... files.html

If not then you need to schedule the custom action that creates the configuration file under "InstallExecuteSequence->InstallFiles" standard action. Use "Deffered" as execution option for this custom action.

If you encounter any problems please let me know.

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

Return to “Common Problems”