Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 30th March 2012, 14:04   #1
udaymahajan
Junior Member
 
Join Date: Mar 2012
Posts: 2
How to run command to addfeature on "windows server 2008 R2"

I want to install "Sql server 2008 R2" on "Windows server 2008 R2"

Sql server 2008 R2 require dotnet version 3.5 for installation.

For this Windows server 2008 R2 need to upgrade dotnet version by doing, add features.

I refered respective link to achieve the same:

http://blogs.msdn.com/b/sqlblog/arch...ironments.aspx

Below given is the nsis code I tried running on Windows 2008 R2:

var AddFeatureForDotNet

Function RunAddFeatureForDotNet
ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" "Path"
StrCpy $AddFeatureForDotNet $0
ExecWait 'AddFeatureForDotNet Import-Module ServerManager ; Add-WindowsFeature as-net-framework'
FunctionEnd

But failed.......

I get below given error msg:

---------------------------
Microsoft .NET Framework 3.5 SP1 Setup
---------------------------
You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1.
---------------------------
OK
---------------------------

Kindly guide how to achieve this.
udaymahajan is offline   Reply With Quote
Old 31st March 2012, 15:24   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You should ask this elsewhere such as on the MSDN forums as it looks like nobody here has the answer.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
add-windowsfeature, net-framework

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump