Reply to Thread

Post a reply to the thread: Install .net

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)

  • 08-26-2013, 08:00 AM
    linder

    Re: Install .net

    Yes, it's part of the Developer Edition.

    Professional Edition lets you quickly build basic installs. All the advanced features (e.g. x64 support, .NET support, etc.) are part of the high-end Developer Edition flagship product.

    http://www.lindersoft.com/products_s...v_features.htm

    Friedrich
  • 08-26-2013, 07:47 AM
    notlogan

    Re: Install .net

    Is "Core PreRequisits" part of the developer package? I downloaded professional & it's not available.
  • 08-26-2013, 07:30 AM
    linder

    Re: Install .net

    Just a quick note. To find our what causes a start program issue you can check the %_SB_ERRORCODE% and %_SB_RETURNEX% variable values (see attached).

    And always set the "Wait for Program" option if you need a return status. Selecting this option will cause the installer to be suspended until the external program has finished. If this option is not chosen, the script will continue to run while the external program finishes. If the script will use information created or gathered by the external program, this option is required for the script to complete successfully.

    Friedrich
  • 08-26-2013, 07:19 AM
    linder

    Re: Install .net

    Hello,

    Don't install the redistributable into the "Program Files" folder to launch it. Only install what your own program needs, but never a redistributable.

    Please see the "Core PreRequisites" (screenshot). SB8 Developer Edition comes with a ready-to-use .NET4.5 module You can modify the include script if you want or use it as a starting point. No need to reinvent the wheel

    Friedrich
  • 08-26-2013, 07:07 AM
    notlogan

    Re: Install .net

    Thanks. I'm not sure how to check registry keys...but I suppose I will find out. Right now our app is checking for SQL Server. I'll probably want to make a more tightly integrated installation program for future releases.

    But right now I'm back on .net. Our developers don't like having to go to the MS website to download .net. I have dotNetFx45_Full_setup.exe. I tried scripting it as:

    If %NET45_STATUS% Equals "0" Then
    Display Message Box...
    If %_SB_RETURN% Equals "$IDYES$" Then
    Run Program %PROGRAMFILESDIR%\dotNetFx45_Full_setup.exe
    Else
    Exit Installation()
    End
    End

    It tells me .net is not installed but doesn't hit the .net setup.exe program. It continues with the welcome screen. I copied .net exe into the installation program into the Program Files folder.
  • 08-26-2013, 06:44 AM
    linder

    Re: Install .net

    BTW, and you can check for locally installed SQL Server instances on a system. This information is stored in the registry at the following location:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL

    You have to check this for 32-bit and 64-bit! See "Set x64 Mode..." script function to switch into 64-bit mode to check the 64-bit registry branch.

    Friedrich
  • 08-26-2013, 06:41 AM
    linder

    Re: Install .net

    Hello,

    It depends on the SQL version (and "bitness"). You have to use the "Get Registry Key Value..." script function to see if the specific SQL version is installed (32- and 64-bit versions).

    For example, you have to scan the registry for:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.2005\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MSSQLSERVER\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.SHAREPOINT\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.SOPHOS\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SHAREPOINT\Setup Edition
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\ Setup Edition
    (...and more...)

    Friedrich
  • 08-26-2013, 06:32 AM
    notlogan

    Re: Install .net

    We don't really care what version of SQL is installed. Can we check for any version? Or do we have to check for specific versions?

    Is it possible to install .net from the installation media?
  • 08-22-2013, 01:20 AM
    linder

    Re: Install .net

    Hello,

    Absolutely no problem. But it depends on the SQL Server Express version. Would you like to check for 2012 or a previous version?

    BTW, to run a script, just call the sqlcmd.exe tool from your install (e.g. from the "Run Command Line" or "Run Program" functions) and you are done.

    http://technet.microsoft.com/en-us/l.../ms180944.aspx

    Friedrich
  • 08-21-2013, 11:02 AM
    notlogan

    Re: Install .net

    Can I do something similar with SQL Server Express?

    Our app checks for SQL the first time it is run and requires the installation of SQL if it is not found. Could I make SQL an optional installation? If they missed it during the initial install and got our error banger they could go back to the installation program and install SQL Express? I was going to include SQL Express on the installation medium - probably a jump drive.

    On a side note, we would also need to run a script to install a SQL database after SQL server is installed. We are also doing that inside our app right now but it would probably be better handled as part of the setup.
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
  •