Reply to Thread

Post a reply to the thread: Problems with SQL server install in 8.1

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)

  • 12-18-2013, 01:07 AM
    linder

    Re: Problems with SQL server install in 8.1

    Perfect. Thanks for the update!

    Friedrich
  • 12-17-2013, 11:25 AM
    notlogan

    Re: Problems with SQL server install in 8.1

    Thanks....that was it....set up %MYFOLDER% and all is well.....
  • 12-17-2013, 09:08 AM
    linder

    Re: Problems with SQL server install in 8.1

    BTW, when you launch an external file from the install, you need the exact location. If the external file is located in the temporary Windows folder, you can use %TMPDIR%.

    Friedrich
  • 12-17-2013, 09:07 AM
    linder

    Re: Problems with SQL server install in 8.1

    See attached

    Friedrich
  • 12-17-2013, 09:05 AM
    linder

    Re: Problems with SQL server install in 8.1

    I would suggest to use %CURDIR%.

    -or-

    Set Variable %MY_INSTFOLDER% to FUNCTION:Get System Info(Installer Path Name)

    Friedrich
  • 12-17-2013, 09:02 AM
    notlogan

    Re: Problems with SQL server install in 8.1

    We were just discussing.....SQL should always be in the same dir as the other install files. Do I even need %SRCDRV% at all. It's not used anywhere else.
  • 12-17-2013, 08:58 AM
    notlogan

    Re: Problems with SQL server install in 8.1

    I think you are correct......I'm trying to find where %srcdrv% is set (it's been a few months since I put this together).

    When I install from media %srcdrv% is probably the cd drive or jump drive.....but when I download from the web.....it is being loaded from a download directory on C & %srcdrv% is probably not set.

    Not sure how to show %srcdrv% in the message box....

    Will I need a different installer to install from the web and use something like %tmpdir% instead of %srcdrv%
  • 12-17-2013, 08:56 AM
    linder

    Re: Problems with SQL server install in 8.1

    I think it's a simple "source folder" problem.

    %SRCDRV%\SQLEXPR_x86_ENU might resolve to, say, E:\SQLEXPR_x86_ENU when the installer is launched from the E: drive. Do you have the SQL redistributable located on the root of the drive after you unzipped it? Or do you have it in a sub-folder?

    And always add the ".exe" extension when you launch an application via the CreateProcess Windows API (Run Command Line is a wrapper around CreateProcess).

    Friedrich
  • 12-17-2013, 08:47 AM
    notlogan

    Re: Problems with SQL server install in 8.1

    That may be it......I'll try trapping for the message....something flashes but it is too fast.....just confusing why it would run from disk & not from download....
  • 12-17-2013, 08:40 AM
    linder

    Re: Problems with SQL server install in 8.1

    Hello,

    Then you have to catch the return value from the external installer to see if it returns an error code. And make sure the runtime variables resolve to the expected values. For example, your %SRCDRV% variable value.

    IMO, your path location is incorrect and the SQL redistributable is not launched at all. Add a simple "Display Message Dialog" function before your "Run Command Line" action to see if "%SRCDRV%\SQLEXPR_x86_ENU.exe" (please note the missing '.exe' above) displays the correct and expected values.

    Hope this helps a bit.

    Friedrich
This thread has more than 10 replies. Click here to review the whole thread.

Posting Permissions

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