Old 12th October 2007, 23:34   #1
helix400
Member
 
Join Date: Oct 2003
Posts: 51
Questions with installing .NET

Hey all,

We've converted our app to .NET 2.0, and we're ready to release it to beta testers. But that means I need an installer. While researching what I need to do, I got confused, and figured it'd be best to get other opinions before I continue. My questions are these:

.NET 2.0 requires a Windows Installer 3.0 (for Windows 2000/XP/2003) or Windows Installer 2.0 (for Windows 98/ME). Should I bother checking and installing if users don't yet have the necessary Windows Installers? Or is it a save bet that virtually all computers in daily use now have those Windows Installer versions already installed?

Also, do I need to worry about x64 installations? For example, lets say some people are running an x64 version of Windows. If I install the x86 .NET 2.0 redistributable on their machine, will that cause problems?
helix400 is offline   Reply With Quote
Old 13th October 2007, 03:04   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
See http://www.codeproject.com/managedcpp/dotnetsetup.asp and http://www.codeproject.com/install/dotNetInstaller.asp

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 13th October 2007, 12:09   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
This will install .NET 2.0 only if <2.0 is currently installed:
code:

System::Call `mscoree::GetCORVersion(w .R0, i ${NSIS_MAX_STRLEN}, *i) ?u`
StrCpy $R0 $R0 1 1
${If} $R0 < 2 # Less than v2.0?
InitPluginsDir
File /oname=$PLUGINSDIR\dotnetfx.exe dotnetfx.exe
ExecWait `"$PLUGINSDIR\dotnetfx.exe" /q:a /c:"install.exe /noaspupgrade /q"` $R0
${EndIf}


Stu
Afrow UK is offline   Reply With Quote
Old 15th October 2007, 16:27   #4
helix400
Member
 
Join Date: Oct 2003
Posts: 51
Thanks for the reples as always. They were a helpful step in the right direction.

I also found my answer to the x64 .NET version. From Microsoft's x64 .NET framework download page.

"It contains both the 64-bit and 32-bit runtime in one convenient setup."

So, that means I can install a 32-bit runtime on a x64 machine, and be ok. At least...it better mean that.
helix400 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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