SQL Schema - 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!

mukesh
Posts: 12
Joined: Thu Jan 18, 2007 5:30 am
Location: INDIA

SQL Schema

Hi I have added few .sql files in my Application directory. I am using those scripts to create tables in the databases. That all is working fine.
Now I want that after the scripts gets executed or after the installation gets completed, the .sql files should be deleted from the target computer.
Please, suggest me how to do that.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

How exactly you run those SQL scripts? Note that Advanced Installer offer directly support to run SQL scripts during installation. And in this case the .sql files are stored in the MSI file not in the Application folder.

On how to use SQL scripts in Advanced Installer please see:
http://www.advancedinstaller.com/user-guide/sql.html

Also we have a tutorial about how to use SQL scripts, please see:
http://www.advancedinstaller.com/user-g ... l-sql.html

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mukesh
Posts: 12
Joined: Thu Jan 18, 2007 5:30 am
Location: INDIA

Hi,
Actually I have written sql scripts for creating database schema i.e; tables structure etc. Than I have written sql scripts for importing data into those tables.Here is the script
LOAD DATA LOCAL INFILE 'C:\\Program Files\\Your Company\\Your Application\\Database\\data.txt' INTO TABLE mytable;
For this script to execute the data.txt file should be present in the program files.
Now, I want that after importing of data is done, the data.txt should be deleted.
Please tell me how to do that.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can add the data.txt as temporary file in the "Files and Folders" page. A temporary file is automatically deleted after installation.

Read more about temporary files here:
http://www.advancedinstaller.com/user-g ... files.html

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

Return to “Common Problems”