update config file
This commit is contained in:
22
CLIENT_DATA/Sereby_NET_package.xml
Normal file → Executable file
22
CLIENT_DATA/Sereby_NET_package.xml
Normal file → Executable file
@@ -1,11 +1,11 @@
|
||||
<package id="net4.7.1" name="%NAME%" group="Microsoft .NET Framework" priority="44">
|
||||
<variable name="NAME"value=".NET Framework 4.7.1 (KB4054856)" />
|
||||
<check type="file" condition="<" value="4.7.2563.0" path="%Windir%\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" />
|
||||
<check type="os" condition=">" value="6.1.7600.16385" />
|
||||
<check type="os" condition="<" value="6.2.9200.0" />
|
||||
|
||||
<install>
|
||||
<cmd arch="x86" path="netfx_Full_x86.msi" param="/norestart /qb-!" />
|
||||
<cmd arch="x64" path="netfx_Full_x64.msi" param="/norestart /qb-!" />
|
||||
</install>
|
||||
</package>
|
||||
<package id="net4.8.0" name="%NAME%" group="Microsoft .NET Framework" priority="44">
|
||||
<variable name="NAME" value=".NET Framework 4.8 (KB4054530)" />
|
||||
<check type="file" condition="<" value="4.8.3761.0" path="%Windir%\Microsoft.NET\Framework\v4.0.30319\System.Core.dll" />
|
||||
<check type="os" condition=">" value="6.1.7600.16385" />
|
||||
<check type="os" condition="<" value="6.2.9200.0" />
|
||||
<install>
|
||||
<cmd name="%NAME% - KB4019990" path="KB4019990.bat" />
|
||||
<cmd arch="x86" path="netfx_Full_x86.msi" param="/norestart /qb-!" />
|
||||
<cmd arch="x64" path="netfx_Full_x64.msi" param="/norestart /qb-!" />
|
||||
</install>
|
||||
</package>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<settings maximized="1">
|
||||
<timer value="40" enabled="1" />
|
||||
<set component="net4.7.1" checked="1" />
|
||||
<set component="net4.8.0" checked="1" />
|
||||
<set component="msjsharp" checked="1" />
|
||||
<set component="silver" checked="1" />
|
||||
<set component="jre11" checked="1" />
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
DefVar $reboot$
|
||||
Set $reboot$ = "false"
|
||||
|
||||
if ($sereby_dotnet4.7.1$ = "reinstall")
|
||||
Winbatch_dotnet4.7.1_uninstall
|
||||
opsiservicecall_dotnet4.7.1_reinstall
|
||||
if ($sereby_dotnet4.8.0$ = "reinstall")
|
||||
Winbatch_dotnet4.8.0_uninstall
|
||||
opsiservicecall_dotnet4.8.0_reinstall
|
||||
Set $reboot$ = "true"
|
||||
endif
|
||||
if ($sereby_dotnet4.7.1$ = "uninstall")
|
||||
Winbatch_dotnet4.7.1_uninstall
|
||||
opsiservicecall_dotnet4.7.1_uninstall
|
||||
if ($sereby_dotnet4.8.0$ = "uninstall")
|
||||
Winbatch_dotnet4.8.0_uninstall
|
||||
opsiservicecall_dotnet4.8.0_uninstall
|
||||
Set $reboot$ = "true"
|
||||
endif
|
||||
|
||||
@@ -185,23 +185,23 @@ if ($reboot$ = "true")
|
||||
ExitWindows /ImmediateReboot
|
||||
endif
|
||||
|
||||
[Winbatch_dotnet4.7.1_uninstall]
|
||||
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 4.7 /u"
|
||||
[Winbatch_dotnet4.8.0_uninstall]
|
||||
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 4.8 /u"
|
||||
|
||||
[opsiservicecall_dotnet4.7.1_reinstall]
|
||||
[opsiservicecall_dotnet4.8.0_reinstall]
|
||||
"method": "setProductProperty"
|
||||
"params": [
|
||||
"$ProductId$",
|
||||
"sereby_dotnet4.7.1",
|
||||
"sereby_dotnet4.8.0",
|
||||
"install",
|
||||
"%opsiserviceUser%"
|
||||
]
|
||||
|
||||
[opsiservicecall_dotnet4.7.1_uninstall]
|
||||
[opsiservicecall_dotnet4.8.0_uninstall]
|
||||
"method": "setProductProperty"
|
||||
"params": [
|
||||
"$ProductId$",
|
||||
"sereby_dotnet4.7.1",
|
||||
"sereby_dotnet4.8.0",
|
||||
"none",
|
||||
"%opsiserviceUser%"
|
||||
]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
DosInAnIcon_init_config
|
||||
|
||||
if ($sereby_dotnet4.7.1$ = "install")
|
||||
DosInAnIcon_dotnet4.7.1_config
|
||||
if ($sereby_dotnet4.8.0$ = "install")
|
||||
DosInAnIcon_dotnet4.8.0_config
|
||||
endif
|
||||
if ($sereby_win8xdotnet3x$ = "install")
|
||||
DosInAnIcon_win8xdotnet3x_config
|
||||
@@ -67,9 +67,9 @@ xml ed -O -u "/settings/timer[@value=40]/@value" -v $sereby_timer_value$ "$LogDi
|
||||
copy "$LogDir$\WinPKG.xml" "$LogDir$\WinPKG.xml.old"
|
||||
xml ed -O -u "/settings/timer[@enabled=0]/@enabled" -v $sereby_timer_enabled$ "$LogDir$\WinPKG.xml.old" > "$LogDir$\WinPKG.xml"
|
||||
|
||||
[DosInAnIcon_dotnet4.7.1_config]
|
||||
[DosInAnIcon_dotnet4.8.0_config]
|
||||
copy "$LogDir$\WinPKG.xml" "$LogDir$\WinPKG.xml.old"
|
||||
xml ed -O -u "/settings/set[@component='net4.7.1']/@checked" -v 1 "$LogDir$\WinPKG.xml.old" > "$LogDir$\WinPKG.xml"
|
||||
xml ed -O -u "/settings/set[@component='net4.8.0']/@checked" -v 1 "$LogDir$\WinPKG.xml.old" > "$LogDir$\WinPKG.xml"
|
||||
|
||||
[DosInAnIcon_win8xdotnet3x_config]
|
||||
copy "$LogDir$\WinPKG.xml" "$LogDir$\WinPKG.xml.old"
|
||||
|
||||
@@ -4,8 +4,8 @@ DefVar $sereby_timer_value$
|
||||
Set $sereby_timer_value$ = GetProductProperty("sereby_timer_value", "5")
|
||||
DefVar $sereby_timer_enabled$
|
||||
Set $sereby_timer_enabled$ = GetProductProperty("sereby_timer_enabled", "1")
|
||||
DefVar $sereby_dotnet4.7.1$
|
||||
Set $sereby_dotnet4.7.1$ = GetProductProperty("sereby_dotnet4.7.1", "install")
|
||||
DefVar $sereby_dotnet4.8.0$
|
||||
Set $sereby_dotnet4.8.0$ = GetProductProperty("sereby_dotnet4.8.0", "install")
|
||||
DefVar $sereby_win8xdotnet3x$
|
||||
Set $sereby_win8xdotnet3x$ = GetProductProperty("sereby_win8xdotnet3x", "install")
|
||||
DefVar $sereby_msjsharp$
|
||||
|
||||
Reference in New Issue
Block a user