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!

jsavoor
Posts: 13
Joined: Mon Jan 22, 2007 6:23 pm

Custom actions

Hi

I have a couple of EXE files that create tables amongst other things in SQL Server.

I also have a set of files and reg keys that need placing into their appropriate areas. I know how this is done.

What I would like to do is run the EXE DB creation files during the main install with the progress bar. This is the ProgressDLG dialog.

How do I initiate the running of these files at that point?

I first thought I would create a "Stage 1 Install" dialog and place it between VerifyReadyDlg and ProgressDlg. but i dont seem to be allowed to this.

Jay
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I think what you want is to run some SQL scripts during installation. If this is what you want the please see following link for more details about how to use SQL scripts in Advanced Installer:
http://www.advancedinstaller.com/user-guide/sql.html

Also we have a tutorial about this please see:
http://www.advancedinstaller.com/user-g ... l-sql.html

If this is not what you want then please give me more details.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jsavoor
Posts: 13
Joined: Mon Jan 22, 2007 6:23 pm

Hi

Unfortunately, the table creation is not using SQL Scripts. Instead it is a set of EXE files that contains some C++ code to create the tables.

Silly, I know but that is how it has been done.

So how do I do this.

Jay
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can run those EXE as custom actions. To do that switch to "Custom Actions" page and create an attached or installed custom action (for each EXE) under "InstallExecuteSequence->Install". Use (NOT Installed) as execution condition if you want the custom actions to be executed only at install. Use "Deferred" as execution option.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”