INI value not writing input value - 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!

sqlgodus
Posts: 2
Joined: Sun Feb 20, 2011 5:20 pm

INI value not writing input value

I have an installer that writes an INI file based on simple edit controls in a custom dialog that are each associated with a property.

The dialog sequence is:
PrepareDlg
WelcomeDlg
SetupTypeDlg
DatabaseOptionsDlg <- the custom dialog
VerifyReadyDlg
ProgressDlg
ExitDlg

The problem is, it is the default value set for the property that is being written to the INI and not the user-entered value.

For example, I have a "database port" field (property=DBPort) which defaults to 1521. This property is referenced by the INI that is being written as part of the install. No matter what the user enters, it is the default value that is written to the INI file.

I don't know if it is a sequencing issue (INI written before custom dialog displays) or if the properties are just not being updated. I just can't figure out what it is.

Any help is much appreciated.

Kind regards,
Andrea
sqlgodus
Posts: 2
Joined: Sun Feb 20, 2011 5:20 pm

Re: INI value not writing input value

Okay, I figured it out. I didn't realize that the properties being set needed to be in uppercase.

Doh!

Return to “Common Problems”