Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Database Credentials window - Next button custom action not working pr


Best Answer Stefan Krueger , 11 May 2016 - 19:52

Move your DoAction event up, so it gets executed before the NewDialog event

Go to the full post


2 replies to this topic

Bharani Reddy

Bharani Reddy
  • Full Members
  • 5 posts

Posted 11 May 2016 - 14:01

Hi,

 

I am using install sheild 2015 to create a setup. In my database credentials window, Database catalog is mandatory field for me. so i wrote a vb script custom action for next button to check if database catalog is empty or not to open the next window.

 

Now the problem is that I entered the catalog name and clicked on next button. it not navigating to next screen which is not correct.Then immediately again i clicked on next button where it is navigating to next screen. first time action is failing. Below is the vb script code which i used.

 

value = Session.Property("IS_SQLSERVER_DATABASE")
IsValid=True
Session.Property("TextIsValid")="0"
if len(value)=0 then IsValid=False
If IsValid Then 
  Session.Property("TextIsValid")="1"
  Else
  Session.Property("TextIsValid")="0"
  MsgBox("Please enter database catalog.")
End If
 
I created a doaction for next button which you can check it in the image attached.
 
Please help me out in this.
 
Thanks in advance,
Bharani.
 

Attached Images

  • InstallS.PNG

Edited by Bharani Reddy, 11 May 2016 - 14:04.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 11 May 2016 - 19:52   Best Answer

Move your DoAction event up, so it gets executed before the NewDialog event



Bharani Reddy

Bharani Reddy
  • Full Members
  • 5 posts

Posted 12 May 2016 - 06:32

Hi Stefan,

 

Thanks a lot. It worked!!

 

As I am new to install shield I was not knowing that I can set the order of the doaction to perform.

Once I changed the order it worked properly.