+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Problems with SQL server install in 8.1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Problems with SQL server install in 8.1

    Where does setup builder (8.1) look to see if SQL is installed.

    I am trying to test my installer on windows 8.1. I installed my app and SQL server....uninstalled everything....deleted SQL folder left behind. According to the control panel I have NO applications installed. However when I try to run my installer again it skips the SQL install.

    Any suggestions?

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Problems with SQL server install in 8.1

    Hello,

    First of all, SetupBuilder 8.1 does not do the check. PreRequisites are not part of the core SetupBuilder system. They are provided as opriginal MS redistributables.

    Perhaps the following variables give you more information (for SQL 2008):

    %SQL2008EXPRX86_INSTALLIT%
    %SQL2008EXPRX86_RETURNCODE%

    Display the values after you have called the include script.

    BTW, you have the full include script source code available so you can add your own "breakpoints" to see what the problem is. You have full control over this.

    Friedrich

  3. #3

    Default Re: Problems with SQL server install in 8.1

    I have an installation program that installs an application and SQL Express.

    When I run it from a CD or jump drive it installs fine.

    So I create a zip file of the complete install plus SQL and load it to my web site.
    Download the zip file.
    Extract the zip file.
    Run the install.
    The application installs but SQL does not.







    (I am using Run Command Line with this:

    %SRCDRV%\SQLEXPR_x86_ENU /ACTION=Install /FEATURES=SQL /INSTANCENAME=DataBinder /SQLSVCACCOUNT="NT AUTHORITY\LOCAL SERVICE" /IACCEPTSQLSERVERLICENSETERMS=True /NPENABLED=1 /TCPENABLED=1 /ADDCURRENTUSERASSQLADMIN /QS)

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default 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

  5. #5

    Default 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....

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default 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

  7. #7

    Default 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.

  8. #8
    Join Date
    Mar 2004
    Posts
    4,307

    Default 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

  9. #9

    Default 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%

  10. #10
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Problems with SQL server install in 8.1

    See attached

    Friedrich
    Attached Images Attached Images  

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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