Reply to Thread

Post a reply to the thread: Run mySQL scripts during install

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 07-23-2008, 02:39 AM
    andyboyd

    Re: Run mySQL scripts during install

    Yes, that's fixed my problem. Thanks very much.
  • 07-22-2008, 10:25 AM
    linder

    Re: Run mySQL scripts during install

    Andy,

    I think you are running in a typical Windows "default folder" problem (this has nothing to do with SetupBuilder). You run your script without the fully qualified pathname and Windows can't find it because the default folder is not your current folder. Try to set the "Default Directory" in the Run function.

    Does this help?

    Friedrich
  • 07-22-2008, 10:10 AM
    andyboyd

    Run mySQL scripts during install

    As part of an install script, I am running a mysql.bat file, and using that to install or upgrade a database structure using sql scripts. These sql scripts and the mysql.bat file are all installed by the script to the same folder.

    However, when the bat file runs, trying to call the scripts does not work. I get an error saying the script cannot be found. Navigating to the folder in explorer and manually running the bat file to run the scripts that way functions correctly, so I can only assume that it is something to do with the setupbuilder script that's causing the problem.

    Also, when using the bat file as it is called by the setupbuilder script, I am able to call the sql scripts if I enter the full path to the sql script in question, but each of the scripts calls secondary scripts, and I get the same error when the script tries to call those. I have no control over how those secondary scripts are called.

    Am I missing something, or does setupbuilder work in such a way that what I'm trying to do is actually impossible?

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •