+ 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,153
    Thank Post
    724
    Thanked 224 Times in 116 Posts
    Rep Power
    84

    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
    15,852
    Thank Post
    877
    Thanked 1,681 Times in 1,460 Posts
    Blog Entries
    12
    Rep Power
    445
    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
    864
    Thank Post
    90
    Thanked 164 Times in 139 Posts
    Rep Power
    49
    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,583
    Thank Post
    228
    Thanked 855 Times in 734 Posts
    Rep Power
    295
    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, 11:56 AM
  2. Deploying .net Framework 3
    By sidewinder in forum Windows
    Replies: 6
    Last Post: 22nd June 2007, 07:49 AM
  3. Is it worth installing .Net Framework 2.0
    By ITWombat in forum Windows
    Replies: 16
    Last Post: 3rd February 2007, 04:00 PM
  4. Replies: 6
    Last Post: 21st January 2007, 08:29 PM
  5. Net Framework 1.1 or 2.0
    By Kyle in forum Windows
    Replies: 2
    Last Post: 6th February 2006, 12: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
  •