How to use relative path of SQL script instead of physical - 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!

sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

How to use relative path of SQL script instead of physical

Hi,
I have added one SQL script which is present on my computer desktop in SQL Script dialog.When I run installer It run properly. I copy installer application to other computer & try to develop that application using Advanced Installer ID on that machine.When I build that appication Installer give me error that "File not found: "C:\Documents and Settings\user\Desktop\createTable.sql".".Same error is present for images used in Themes .
Is it possible to use relative path instead of physical path for SQL script,Images used in installer?
I have attached demo application with this post.
Please give me solution for above problem So that same application can develop on multiple machine.
Attachments
Demo.aip
demo appication which use createTable.sql script & one image on wellcome dialog
(13.67 KiB) Downloaded 405 times
sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

Re: How to use relative path of SQL script instead of physic

Do you got any solution for my problem
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to use relative path of SQL script instead of physic

Hi,

The type of the paths (relative or absolute) can be changed in the "Project Paths" tab of the "Edit Project Settings" dialog. You can get to this dialog by using the "Project" -> "Options" menu in Advanced Installer. By default, the paths used in an Advanced Installer project are relative to the project file.

Please keep in mind that when you move the project file you also need to make sure you move the files used in the project in the same order to maintain the relative paths.

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

Return to “Common Problems”