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

Thread: Install .net

Hybrid View

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

    Default Install .net

    I found this in another thread:

    "IMO, it's better to check for .NET 3.5 and if it is not available, open the
    standard .NET 3.5 download page from your installer so users can download
    and install it."

    HOW would I do that?

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

    Default Re: Install .net

    Hello,

    I have created and uploaded a simple demo project for you:

    http://www.lindersoft.com/projects/net35web.zip

    Please COMPILE and RUN the project.

    Does this help?

    Friedrich
    Attached Images Attached Images   

  3. #3

    Default Re: Install .net

    Thanks.

    Can I change the %NET35 variable to check for .net 4.5?

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

    Default Re: Install .net

    Yes, no problem.

    Check for $NET_FRAMEWORK_45$ instead of $NET_FRAMEWORK_35$

    Friedrich

  5. #5

    Default Re: Install .net

    Thanks. That's what I did:

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

    Default Re: Install .net

    Perfect!

    Friedrich

  7. #7

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

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

    Default 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

  9. #9

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

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

    Default 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

+ 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
  •