SQL Connection validataion - 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!

udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

SQL Connection validataion

Hi Mihai,

How should i valida SQL Connection. I was using GRAPHITE theame, i do not enter any details in my sql Dialog, when i click next it was skip to next dialog.

But my requirement is if SQL dialog page is empty the NEXT button should not.

How should put a control event for this process.

Can you please tell me.

Thank you,
Udayk.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connection validataion

Hi Udayk,

You can add control conditions on the "Next" button to disable or enable it:
http://www.advancedinstaller.com/user-g ... section179
These conditions should use the text field attached public property( e.g. USERNAME_PROP, PASSWORD_PROP, etc ).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: SQL Connection validataion

Hi Mihai,

As you said some solutions, its not working in Theme Graphite mode.

I tried conditions like this,.............

(Not installed), default
(Not installed), enable
(Not installed), disable
(Not installed), Hide
(Not installed), show

(PASSWORD_PROP), enable
(PASSWORD_PROP), enable
(PASSWORD_PROP), enable
(PASSWORD_PROP), enable
(PASSWORD_PROP), enable

I put a control condition in SqlConnection "NEXT" button. But its not working, if empty the dialog when i click Next it will go to next dialog, How should validate.

what can i do???

Thank you,
Udayk.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connection validataion

Hi Udayk,

To validate the PasswordEdit field you can set the following control conditions on the Next button from the SQLConnectionDlg:
1. Condition: PASSWORD_PROP | Action: Enable
2. Condition: NOT PASSWORD_PROP | Action: Disable

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: SQL Connection validataion

Thank you Mihai,

Thanks for your support, really appreciate it.

Can you please, briefly describe to store the values of USERNAME_PROP and PASSWORD_PROP values in Registry level and, i want to run a script at uninstall level, but it shows ODBC timed out exception.

Earlier you send some links, i am still trying to work on that process in registry, i am facing lot of errors.

Can you please tell me step wise to store values in registry and get back to use at uninstall level those values to execute some scripts.


Thank you,
Udayk.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connection validataion

Hi Udayk,

Advanced Installer allows you to create or modify registry entries through the Registry page:
http://www.advancedinstaller.com/user-g ... istry.html

When you create a new registry value, you can specify [USERNAME_PROP] or [PASSWORD_PROP] in the "Data" section of the Edit Registry Entry dialog:
http://www.advancedinstaller.com/user-g ... ialog.html
This way, the registry entry will contain the version of the package.
but it shows ODBC timed out exception
This user guide article can step by step teach you how to make the connection parameter properties persistent on maintenance.

Also, for organization purposes, please start a new thread if you want to debate a new topic. If the topic is already debated, please post on the thread you or somebody else already started. I believe I already shared the above link with you before on another thread.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: SQL Connection validataion

Hi Mihai,

I follow the User guide article, for creating registry's.

Am i wrong for create new registry value [USERNAME_PROP] or [PASSWORD_PROP] in the "Data" section of the Edit Registry Entry dialog.
These are SQLConnection Dlg parameters. When i am entering details in SQL Connectin dlg page those values are replaced by this properties.

Ex:- [USERNAME_PROP] is replaced by XXXXXXXXX value in registry after installation.
[PASSWORD_PROP] is replaced by zzzzzzzzzz value in registry after installation.

How should i use these values in while uninstalling the package to executing SQL Scripts.
and
WHY SHOULD I BUILD PACKAGE FOR MAINTENANCE or MODIFY state???????????

If any changes will be processed, throw an exception ODBC Connect: timeout exceeded.

Can you Please tell me....

Thank you,
Udayk.
Attachments
Connection-TimedOut.png
Connection-TimedOut.png (39.78 KiB) Viewed 7493 times
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: SQL Connection validataion

When i am expecting responce.

Thank you,
Udayk.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connection validataion

This issue is already under debate here:
http://www.advancedinstaller.com/forums ... 404#p50152

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: SQL Connection validataion

Sorry for this always to create new Debate...

Thank you,
Udayk.

Return to “Common Problems”