+ Post New Thread
Results 1 to 4 of 4
Coding Thread, Net Framework 4 - Full Install in Coding and Web Development; Hi there, I need to install this using a startup script/batch file but don't want it to install every time ...
  1. #1
    bodminman's Avatar
    Join Date
    Apr 2007
    Location
    Sunny Suffolk
    Posts
    1,194
    Thank Post
    771
    Thanked 231 Times in 122 Posts
    Blog Entries
    1
    Rep Power
    91

    Net Framework 4 - Full Install

    Hi there,

    I need to install this using a startup script/batch file but don't want it to install every time the machine is rebooted.

    Is there I way I can make this happen?

    I thought about getting the script/batch file to create a file at the root of C: and then when the machine restarts it can see that this file exists so will not attempt the install again! Does this make sense? If it does could someone please let me know how this could be done.

    It's server 2008 with XP clients.

    Thanks again!

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,310
    Thank Post
    901
    Thanked 1,797 Times in 1,548 Posts
    Blog Entries
    12
    Rep Power
    466
    I do this all the time

    Code:
    if exist "C:\file.txt" goto :eof ELSE
    <installer comamnd>
    echo .net 4 installed on %Date% %TIME%>C:\file.txt

  3. Thanks to FN-GM from:

    bodminman (3rd March 2012)

  4. #3

    Join Date
    Dec 2007
    Posts
    889
    Thank Post
    94
    Thanked 165 Times in 140 Posts
    Rep Power
    50
    Or you could deploy via WSUS.

  5. Thanks to MYK-IT from:

    bodminman (3rd March 2012)

  6. #4


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,919
    Thank Post
    231
    Thanked 900 Times in 775 Posts
    Rep Power
    303
    i use a registry check

    Code:
    setlocal
    
    
    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
    
    if NOT %errorlevel%==1 (goto end)
    "\\server\packages$\ms msi\dotnet4full\dotNetFx40_Full_x86_x64.exe" /passive /norestart /showfinalerror 
    
    :End

  7. Thanks to sted from:

    bodminman (3rd March 2012)



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 10th March 2010, 12:56 PM
  2. Deploying .net Framework 3
    By sidewinder in forum Windows
    Replies: 6
    Last Post: 22nd June 2007, 08:49 AM
  3. Is it worth installing .Net Framework 2.0
    By ITWombat in forum Windows
    Replies: 16
    Last Post: 3rd February 2007, 05:00 PM
  4. Replies: 6
    Last Post: 21st January 2007, 09:29 PM
  5. Net Framework 1.1 or 2.0
    By Kyle in forum Windows
    Replies: 2
    Last Post: 6th February 2006, 01:16 AM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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