|
|
#1 |
|
Junior Member
Join Date: Oct 2007
Posts: 4
|
dotNet version detection problem
Hi there
i was having some problems with detecting the version of the dotnet installed. i use this function to detect the dot net version installed. which works fine! PHP Code:
- i have dotnet version 1.1 installed - i run installer which checks for version 2.0 - it senses that 1.1 is installed and runs the version 2.0's installer using execwait - after installation dotnet is done i check the version using the above function and it still thinks that version 1.1 is installed so there is noway for me to know if installation was successful here is the interesting thing, if i run my installer again the first time it checks for latest version of dotnet it senses version 2.0 and continues happily ever after. has anyone had the same problem? what is the work around? to see if 2.0 was successfully installed? or is there a more reliable way to check for latest version of dotnet installed? thanks Sina |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Yes there is. ExecWait has an extra parameter, i.e. ExecWait "...dotnetfx.exe ..." $R0
$R0 will be 0 on success or an error specific error code. Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2007
Posts: 4
|
thanx Afrow UK it works
![]() its nice that even if user cancels installation and dotnet installer exits gracefully it still receives some error |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|