.NET 4 Framework

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jonnygrim
Posts: 2
Joined: 14 Nov 2011 06:00

.NET 4 Framework

#1 Post by jonnygrim » 14 Nov 2011 06:53

Hi,

Hope someone can help me. I've created a batch file to install an application and that application requires .net 4 to be installed. I've added into the bat file the installer for .net, but even though i put the /q hash after it, it still asks me to agree to the license, can anyone advise how to get round this.

thanks
jonathan

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: .NET 4 Framework

#2 Post by Ed Dyreen » 14 Nov 2011 07:29

'
This is not an answer to your question, you are not the only one having problems with .NET
Always a pain installing .NET, so much pain I used a more powerful language to handle it:

Silent Install dotnetfx v3.5 SP1.au3

Code: Select all

WinWait ( $Title, $Text )

$Title    = 'Microsoft .NET Framework 3.5 SP1 installeren'
$Text    = ''
SleepTiming_ReSet ()
While Not WinExists ( $Title, 'Welkom bij Setup' )

   $Title    = 'Microsoft .NET Framework 3.5 SP1 installeren'
   $Text    = 'Onderhoudsmodus'
   If WinExists ( $Title, $Text ) Then
      
      $Title    = 'Microsoft .NET Framework 3.5 SP1 installeren'
      $Text    = 'Onderhoudsmodus'
      SleepTiming_ReSet ()
      While Not WinExists ( $Title, 'Weet u zeker dat u de installatie wilt annuleren?' )
         
         If WinExists ( $Title, $Text )                _
         And WinActivate ( $Title, $Text )             _
         And ControlFocus ( $Title, $Text, 'Button18' )    _
         And ControlClick ( $Title, $Text, 'Button18' )    _
         Then WinWait ( $Title, 'Weet u zeker dat u de installatie wilt annuleren?', 1 )
         
         SleepTiming_Go ()
      WEnd

I don't know whether you can install .NET unattended AND hidden with only switches, probably but it will always be easier in AU3 :|
Did you try MSFN forums already, I know there are many .NET switches but most are incompatible with different versions.

jonnygrim
Posts: 2
Joined: 14 Nov 2011 06:00

Re: .NET 4 Framework

#3 Post by jonnygrim » 15 Nov 2011 02:22

Thanks for your advice, i'll look into that now.

Thanks again.

Post Reply