Page 1 of 1

Cannot create INI file with Dyanamic file name

Posted: Mon Mar 12, 2012 6:28 am
by chintanpatel7
Hi, I am using InstallAware 2012 - Studio version.
In my project there is one requirement of get INI file name from user as text input and create dynamically INI file with that name.
I have tried to pass the variable in which the INI file name is stored but file is created with variable name instead of variable value.
Also in the INI file name text box, the help window says that variables are not supported in this.
Is there any alternate way for this?
Please check the attachments in sequence for more info.

Thanks.

Note: I have removed some part of attachments for security purpose..

Re: Cannot create INI file with Dyanamic file name

Posted: Mon Mar 12, 2012 9:31 am
by FrancescoT
Dear User,

can you please add a message box that shows the variable value for, INI and INIID, just after the code,

> Set Variable INI to $INIID$.ini

and before the call EDIT INI File

I would like to see what the variable value is at that point.

Let me know.

Re: Cannot create INI file with Dyanamic file name

Posted: Mon Mar 12, 2012 10:51 pm
by chintanpatel7
Hi,

First of all, thanks for the quick reply.
But I have already checked the variable values of $INIID$ and $INI$. They are showing correct values. The problem is values cannot reflect in file name.
Here I have attached screenshot of variable watch. Please refer it for the variable value information.

Thanks again..

Note: I have removed some part of attachment for security purpose.

Re: Cannot create INI file with Dyanamic file name

Posted: Tue Mar 13, 2012 6:21 am
by FrancescoT
Dear User,

could you please replicate it in a simple project that you may send to me?

Of course I will have a look.

Please send in compressed format as zip, with all required file (if any). Please use folder location that I can easly replicate on my test machine.

If you want you can send it to: [email protected]

Regards

Re: Cannot create INI file with Dyanamic file name

Posted: Tue Mar 13, 2012 7:06 am
by chintanpatel7
Hi,

I have attached small version of my project which contains the only part in which I have a problem described earlier.
Please take a look on it. It will create installation folder Demo8 in C:\Program Files with the dummy ini file with wrong file name [$INI$].

Note: As this demo project is created in just 10-15 minutes with only one dialog so there are no installation standard followed in it.. :)

Thanks..

Re: Cannot create INI file with Dyanamic file name

Posted: Tue Mar 13, 2012 8:26 am
by FrancescoT
Dear User,

will have a look at it, but please be patient.

Regards

Re: Cannot create INI file with Dyanamic file name

Posted: Thu Mar 22, 2012 12:34 pm
by FrancescoT
Dear User,

as described in InstallAware documentation:

INI File Name
Type the name of the INI file to edit. With the Windows Installer engine, you may not use any variables in this field, only string literals are allowed. With the Native Engine, variables are allowed.

To work you must do the following:

Set Variable NATIVE_ENGINE to TRUE
Edit INI File $TARGETDIR$\$INI$, [StartUp] EmbeddedLogo=0
Set Variable NATIVE_ENGINE to FALSE

Regards