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!

scorpio92
Posts: 8
Joined: Mon Jun 25, 2012 7:25 am

INI Filename

Hello everybody

It's possible to create one file with filename creat from variable ?
Exemple:
I have one dialog box who ask one name at user. this answer is store in variable (Myvarialbe)
Before finalize, I want that AI create INI file with this Myvariable (Myvarialbe.ini)
It's possible ?
If yes, how to ? ;)

Thanks
Scorpio92
scorpio92
Posts: 8
Joined: Mon Jun 25, 2012 7:25 am

Re: INI Filename

NOBODY ?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: INI Filename

Hello,

Unfortunately, we don't have a predefined support for this. However, you can do that using a custom action. You can add a "Launch attached file" with sequence custom action after "Install Execution Stage -> Add Resources" standard action which runs a .dll that will create the file. The custom action should run as "Deferred with no impersonation" and only on install. Also, you should pass the file path and the filename parameters of the related file using "CustomActionData" property.

You can take a look on our "Serial Number Validation DLL" article to see how to run a .dll using a custom action.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scorpio92
Posts: 8
Joined: Mon Jun 25, 2012 7:25 am

Re: INI Filename

Fill thanks
I will try this tomorow

Scorpio92

Return to “Building Installers”