compare sql 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!

HAMMER
Posts: 1
Joined: Wed May 04, 2011 7:13 pm

compare sql value?

hi all i am asking if this is possable below

i want my installer to connect to their mysql daterbase (they enter in username password and daterbase name etc) and then run an sql query that does this
*run this sql query
SELECT version FROM settings WHERE id='3'

then stores that value in the installer
and then run a lanch condition and if the value is above say 3 then the install continues
but
if not then it stops and tell you to update your website software

thanks alot

if it is possable please please can you tell me how thanks alot !!!!!!!!!!!!!!!!


p.s

i basicly want a version checker that uses infomation from a mysql daterbase :D

thanks alot seriously!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: compare sql value?

Hi,

During the installation process you can connect to a database and execute SQL scripts over it using our predefined support. However,
this support is limited, first of all you cannot get a return value from the script in a public property. Another important limitation is that you
cannot perform these actions before the launch conditions are evaluated either.

The only solution for this is to create you own Win 32 DLL custom action that connects to the database and sets the desired result in public property.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”