Create ini file with property name - 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!

petern
Posts: 6
Joined: Wed Nov 23, 2011 10:37 pm

Create ini file with property name

Hi,
I'm creating an installer and need to call an ini file [APP_NAME]_installer.ini file.
I can create an ini file but haven't found a way to give it the right name.

If the solution requires VBScript I'm going to need an example.

Thanks in advance,

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

Re: Create ini file with property name

Hi Peter,

Indeed, in order to rename a file you should use a custom action. Here is a sample VBScript code.

This custom action can be scheduled after "InstallExecuteSequence" -> "Install" standard action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
petern
Posts: 6
Joined: Wed Nov 23, 2011 10:37 pm

Re: Create ini file with property name

I've got the vbscript running but there's a timing issue. The custom action that runs the vbscript seems to happen before the install.ini file is created.
I've tried moving the vbscript to the Commit section but the variables are nulled at that point.
So how can I make sure my script action follows the ini file creation.

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

Re: Create ini file with property name

Hello,

After "Install" should be fine. You can try to set its execution option to "Deferred with no impersonation" and see the outcome.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”