SQL Script Replacements - When does the replace happen? - 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!

MABLINK
Posts: 4
Joined: Wed Nov 18, 2009 8:56 am

SQL Script Replacements - When does the replace happen?

So I'm looking to replace values in the SQL Scripts based upon user input in the dialogs, however it appears that the script replace occurs too early in the process before I have received user input and changed the session property value.

I called some message boxes of the session properties on the VerifyReadyDlg to verify that the property settings were correct before the install actually starts, but the actual scripts executed have the old values at the beginning of the install sequence.

Also Script Conditions appear to be using variable (Property) states at the beginning in the dialog's as well.

Am I missing something?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: SQL Script Replacements - When does the replace happen?

Hi,

Are you using public properties? Please note that private properties do not pass their new values to InstallExecuteSequence (when the scripts run).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”