|
|
|
|
#1 |
|
Junior Member
Join Date: May 2005
Posts: 7
|
.NET 2.0 install function
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Do you need to call it before the InstFiles page?
What happens if you just change the Section and SectionEnd to Function and FunctionEnd? -Stu |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: May 2005
Posts: 7
|
Quote:
Essentially what I have done is pretty much just replace "Section" with "Function" - the GetDotNETVersion routines work great, the MB for whether to download .net or abort opens, then regardless of choice, the installer aborts. Here's my code currently: DECLARATIONS (partial): code: .oninit: code: Function GetDotNETVersion: code: Function FetchDotNET Converted from zimsms "Installing .NET" wiki page: code: Now, I know I'm just missing something simple, or maybe NSISdl can't be called from a function? |
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
There's a few Abort instructions in there.
Abort closes the installer when called from .onInit. In an install Section it would have cancelled the installation process. -Stu |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
NSISdl may be in function, but not from .onInit. Requires INSTFILES page. Translate option is useless without page as well. InetLoad can do this, but please note - Translate parameters for /popup mode have other values, see readme and samples.
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
NSISdl will still work outside the InstFiles page, but obviously there will be no dialog.
I would go with Takhir and use the InetLoad plugin. -Stu |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: May 2005
Posts: 7
|
Thanks guys. I'll check InetLoad.
RE: abort- I did want it to abort install, just that it was reaching those lines when it shouldn't be - as if the NSISdl was being bypassed or causing an abort itself. If InetLoad proves troublesome, I'll try moving the .net check to the first section... |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Nov 2005
Posts: 13
|
URL_DOTNET
Question: Where do you initialize the "URL_DOTNET" variable which is used to download the file? And how do you adapt it to the language of the system?
thanks! |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: May 2005
Posts: 7
|
I actually haven't gotten that working yet either, but the original method uses the MUI LANGDLL_DISPLAY macro to accomplish that - I would hope to do the same if I can get the english download to work! For now, I've got some of that hard-coded, so that's not where the failure comes from - I should have shown that in the code above...
See: Installing_the_Microsoft_.NET_Framework |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: May 2005
Posts: 7
|
To close this thread, InetLoad is working great. Thanks!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|