Marwil
Level 3

Help dotnet installation

i want to install dotnet but i want to check first if the dotnet is already installed on the system. if it is already installed then IA will no longer installed it. If not then it will install it. Can someone shade some light on how would i do it..TIA:)

I want to install .net 2.
Any guide or idea/s?
Labels (1)
0 Kudos
3 Replies
RobertDickau
Flexera Alumni

I'm not aware of a built-in way to detect the presence of a particular .NET version; perhaps use the Get Windows Registry Entry action to read the version information? This MSDN article, for example, mentions the registry keys and values you might look for: http://msdn2.microsoft.com/en-us/library/aa480198.aspx#netfx30_topic15...
0 Kudos
Marwil
Level 3

Thanks for the Reply !!

i get the value then what next? how would AI know when to install or not the dotnet?
what will be the command next?

I was using a Wise before and use the following command: How would i use this in AI?
++++++++++++++++++++++++++++++++
Get Registry Key Value
Variable=VDOTNET
Key=SOFTWARE\Microsoft\.NETFramework\policy\v2.0
Value Name=50727
end

item: If/While Statement
Variable=VDOTNET
Value=50727-50727
end

item: Custom Dialog Set
Name=.Net Framework
item: Dialog
Title=.Net Framework
Text=Setup will now install .Net Framework v2.0
end
item: Push Button
Text=OK
end
end
end

item: Install File
Source=E:\EWF(Installer)\DOTNet\v2.0\dotnetfx.exe
Destination=%TEMP%\EWF\dotnetfx.exe
Flags=0000000010000011
end

item: Execute Program
Pathname=%TEMP%\EWF\dotnetfx.exe
Default Directory=%TEMP%\EWF\
Flags=00000010
end
item: Delete File
Pathname=%TEMP%\EWF\dotnetfx.exe
end
0 Kudos
panamega
Level 4

You can use the 'Set Variable' action to store the result returned from the registry and you can setup a 'Compare Variable' rule testing the variable for the value returned.
0 Kudos