mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Add product name to parameters (#443)
This commit is contained in:
@ -595,7 +595,7 @@
|
||||
<ROW Action="AI_RestartElevated" Type="1" Source="aicustact.dll" Target="RestartElevated"/>
|
||||
<ROW Action="AI_SHOW_LOG" Type="65" Source="aicustact.dll" Target="LaunchLogFile" WithoutSeq="true"/>
|
||||
<ROW Action="AI_STORE_LOCATION" Type="51" Source="ARPINSTALLLOCATION" Target="[APPDIR]"/>
|
||||
<ROW Action="ExecuteScriptCode" Type="4134" Target="Script Text" TargetUnformatted="Set objShell = CreateObject("WScript.Shell") Function RegistryExist(Path) On Error Resume Next RegistryPath = objShell.RegRead(Path) Err_Number = err.number On Error GoTo 0 If Err_Number <> 0 Then 	RegistryExist = False Else 	RegistryExist = True End If End Function Err.Clear If(RegistryExist("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ONLYOFFICE Desktop Editors_is1\UninstallString") = True) Then RegistryPath = objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ONLYOFFICE Desktop Editors_is1\UninstallString") Dim Button Button = MsgBox("The previous version of ONLYOFFICE Desktop Editors detected, please click 'OK' button to uninstall it, or 'Cancel' to quit setup.", 1, "Error") 	If Button = 1 Then 	objShell.Run(RegistryPath) 	Else 	WScript.Quit 1 End If End If"/>
|
||||
<ROW Action="ExecuteScriptCode" Type="4134" Target="Script Text" TargetUnformatted="Set objShell = CreateObject("WScript.Shell") Function RegistryExist(Path) On Error Resume Next RegistryPath = objShell.RegRead(Path) Err_Number = err.number On Error GoTo 0 If Err_Number <> 0 Then 	RegistryExist = False Else 	RegistryExist = True End If End Function Err.Clear If(RegistryExist("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + Session.Property("ProductName") + "_is1\UninstallString") = True) Then RegistryPath = objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + Session.Property("ProductName") + "_is1\UninstallString") Dim Button Button = MsgBox("The previous version of " + Session.Property("ProductName") + " detected, please click 'OK' button to uninstall it, or 'Cancel' to quit setup.", 1, "Error") 	If Button = 1 Then 	objShell.Run(RegistryPath) 	Else 	WScript.Quit 1 End If End If"/>
|
||||
<ROW Action="SET_APPDIR" Type="307" Source="APPDIR" Target="[ProgramFilesFolder][Manufacturer]\[ProductName]" MultiBuildTarget="DefaultBuild:[ProgramFiles64Folder]ONLYOFFICE\Desktop Editors"/>
|
||||
<ROW Action="SET_SHORTCUTDIR" Type="307" Source="SHORTCUTDIR" Target="[ProgramMenuFolder][ProductName]"/>
|
||||
<ROW Action="SET_TARGETDIR_TO_APPDIR" Type="51" Source="TARGETDIR" Target="[APPDIR]"/>
|
||||
|
||||
Reference in New Issue
Block a user