An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
Fix. Msi, remove RustDesk words (#7732)
fufesoua5d02998ad37
diff --git a/res/msi/Package/Components/Regs.wxs b/res/msi/Package/Components/Regs.wxsindex 4b5efe95f..23d4b6b8d 100644--- a/res/msi/Package/Components/Regs.wxs+++ b/res/msi/Package/Components/Regs.wxs@@ -41,7 +41,7 @@</Component><!--For compatibility with registry values from previous versions-->- <Component Id="Product.Registry.UninstallRustDesk" Guid="FC1A3D2E-5642-FBD8-CFA6-5ECAC6DE69A8">+ <Component Id="Product.Registry.UninstallApp" Guid="FC1A3D2E-5642-FBD8-CFA6-5ECAC6DE69A8"><RegistryKey Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\$(var.Product)" ><RegistryValue Type="string" Name="BuildDate" Value="$(var.BuildDate)" /><RegistryValue Type="string" Name="share_rdp" Value="" />diff --git a/res/msi/Package/Components/RustDesk.wxs b/res/msi/Package/Components/RustDesk.wxsindex df9463fe8..ab1d404ec 100644--- a/res/msi/Package/Components/RustDesk.wxs+++ b/res/msi/Package/Components/RustDesk.wxs@@ -5,9 +5,9 @@<?include ../Includes.wxi?><DirectoryRef Id="INSTALLFOLDER" FileSource="$(var.BuildDir)">- <Component Id="RustDesk.exe" Guid="620F0F69-4C17-4320-A619-495E329712A4">- <File Id="$(var.Product).exe" Name="$(var.Product).exe" KeyPath="yes" Checksum="yes">- <!--<fire:FirewallException Id="RustDeskEx" Name="$(var.Product) Service" Scope="any" IgnoreFailure="yes" />-->+ <Component Id="App.exe" Guid="620F0F69-4C17-4320-A619-495E329712A4">+ <File Id="App.exe" Name="$(var.Product).exe" KeyPath="yes" Checksum="yes">+ <!--<fire:FirewallException Id="AppEx" Name="$(var.Product) Service" Scope="any" IgnoreFailure="yes" />--></File></Component></DirectoryRef>@@ -18,14 +18,14 @@<CustomAction Id="CreateStartService.SetParam" Return="check" Property="CreateStartService" Value="$(var.Product);"[INSTALLFOLDER]$(var.Product).exe" --service" /><CustomAction Id="TryStopDeleteService.SetParam" Return="check" Property="TryStopDeleteService" Value="$(var.Product)" />- <CustomAction Id="LaunchApp" ExeCommand="" Return="asyncNoWait" FileRef="RustDesk.exe" />- <CustomAction Id="LaunchAppTray" ExeCommand=" --tray" Return="asyncNoWait" FileRef="RustDesk.exe" />- <Property Id="TerminateProcesses" Value="RustDeskTest.exe" />+ <CustomAction Id="LaunchApp" ExeCommand="" Return="asyncNoWait" FileRef="App.exe" />+ <CustomAction Id="LaunchAppTray" ExeCommand=" --tray" Return="asyncNoWait" FileRef="App.exe" />+ <Property Id="TerminateProcesses" Value="AppTest.exe" /><CustomAction Id="TerminateProcesses.SetParam" Return="check" Property="TerminateProcesses" Value="$(var.Product).exe" /><CustomAction Id="TerminateBrokers.SetParam" Return="check" Property="TerminateProcesses" Value="RuntimeBroker_rustdesk.exe" /><CustomAction Id="SetPropertyIsServiceRunning.SetParam.AppName" Return="check" Property="AppName" Value="$(var.Product)" /><CustomAction Id="SetPropertyIsServiceRunning.SetParam.PropertyName" Return="check" Property="PropertyName" Value="STOP_SERVICE" />- <CustomAction Id="SetPropertyServiceStop.SetParam.ConfigFile" Return="check" Property="ConfigFile" Value="[AppDataFolder]rustdesk\config\rustdesk2.toml" />+ <CustomAction Id="SetPropertyServiceStop.SetParam.ConfigFile" Return="check" Property="ConfigFile" Value="[AppDataFolder]$(var.Product)\config\$(var.Product)2.toml" /><CustomAction Id="SetPropertyServiceStop.SetParam.ConfigKey" Return="check" Property="ConfigKey" Value="stop-service" /><CustomAction Id="SetPropertyServiceStop.SetParam.PropertyName" Return="check" Property="PropertyName" Value="STOP_SERVICE" /><CustomAction Id="TryDeleteStartupShortcut.SetParam" Return="check" Property="ShortcutName" Value="$(var.Product) Tray" />@@ -84,7 +84,7 @@<DirectoryRef Id="App.StartMenu"><Component Id="App.StartMenu.Shortcut" Guid="43ABCAC7-E47D-42D8-A408-25EC70DBB993" Condition="STARTMENUSHORTCUTS = 1">- <Shortcut Id="App.StartMenu.Shortcut" Name="!(loc.SC_Client)" Description="!(loc.SC_Client_Desc)" Target="[!RustDesk.exe]" Icon="AppIcon" WorkingDirectory="INSTALLFOLDER" />+ <Shortcut Id="App.StartMenu.Shortcut" Name="!(loc.SC_Client)" Description="!(loc.SC_Client_Desc)" Target="[!App.exe]" Icon="AppIcon" WorkingDirectory="INSTALLFOLDER" /><!--Fix ICE 38 by adding a dummy registry key that is the key for this shortcut.https://learn.microsoft.com/en-us/windows/win32/msi/ice38@@ -99,13 +99,13 @@</DirectoryRef><StandardDirectory Id="DesktopFolder"><Component Id="App.Desktop.Shortcut" Guid="CA8FB7AA-17F7-4E36-A58A-5A016A303709" Condition="DESKTOPSHORTCUTS = 1">- <Shortcut Id="App.Desktop.Shortcut" Name="!(loc.SC_Client)" Description="!(loc.SC_Client_Desc)" Target="[!RustDesk.exe]" Icon="AppIcon" WorkingDirectory="INSTALLFOLDER" />+ <Shortcut Id="App.Desktop.Shortcut" Name="!(loc.SC_Client)" Description="!(loc.SC_Client_Desc)" Target="[!App.exe]" Icon="AppIcon" WorkingDirectory="INSTALLFOLDER" /><RegistryValue Root="HKCU" Key="Software\$(var.Product)" Name="App.Desktop.Shortcut" Type="string" Value="1" KeyPath="yes" /></Component></StandardDirectory><StandardDirectory Id="StartupFolder"><Component Id="App.StartupFolder.ShortcutTray" Guid="B1D1E2BB-E53E-E159-DB7C-744D5C726A8C" Condition="STARTUPSHORTCUTS = 1">- <Shortcut Id="App.StartupFolder.ShortcutTray" Name="!(loc.SC_Client_Tray)" Description="!(loc.SC_Client_Tray_Desc)" Target="[!RustDesk.exe]" Arguments="--tray" Icon="AppIcon" WorkingDirectory="INSTALLFOLDER" />+ <Shortcut Id="App.StartupFolder.ShortcutTray" Name="!(loc.SC_Client_Tray)" Description="!(loc.SC_Client_Tray_Desc)" Target="[!App.exe]" Arguments="--tray" Icon="AppIcon" WorkingDirectory="INSTALLFOLDER" /><RegistryValue Root="HKCU" Key="Software\$(var.Product)" Name="App.StartupFolder.ShortcutTray" Type="string" Value="1" KeyPath="yes" /></Component></StandardDirectory>@@ -117,7 +117,7 @@</DirectoryRef>--><ComponentGroup Id="Components" Directory="INSTALLFOLDER">- <ComponentRef Id="RustDesk.exe" />+ <ComponentRef Id="App.exe" /><ComponentRef Id="App.Desktop.Shortcut" /><!--<ComponentRef Id="App.UninstallShortcut" />--><ComponentRef Id="App.StartMenu.Shortcut" />diff --git a/res/msi/Package/Fragments/AddRemoveProperties.wxs b/res/msi/Package/Fragments/AddRemoveProperties.wxsindex f568b963d..f93852867 100644--- a/res/msi/Package/Fragments/AddRemoveProperties.wxs+++ b/res/msi/Package/Fragments/AddRemoveProperties.wxs@@ -25,8 +25,8 @@<!--$ArpStart$--><!--$ArpEnd$-->- <Property Id="RUSTDESK_WINDOWS_INSTALLER">- <RegistrySearch Id="RustDeskWindowsInstallerFolderSearch" Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\$(var.Product)" Name="WindowsInstaller" Type="raw" />+ <Property Id="APP_WINDOWS_INSTALLER">+ <RegistrySearch Id="AppWindowsInstallerFolderSearch" Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\$(var.Product)" Name="WindowsInstaller" Type="raw" /></Property></Fragment></Wix>diff --git a/res/msi/Package/Package.wxs b/res/msi/Package/Package.wxsindex bc07ca536..8361e2a12 100644--- a/res/msi/Package/Package.wxs+++ b/res/msi/Package/Package.wxs@@ -22,7 +22,7 @@<UIRef Id="WixUI_ErrorProgressText" /><InstallUISequence>- <Show Dialog="AnotherAppDialog" Before="WelcomeDlg" Condition="Not installed AND RUSTDESK_WINDOWS_INSTALLER="#0""/>+ <Show Dialog="AnotherAppDialog" Before="WelcomeDlg" Condition="Not installed AND APP_WINDOWS_INSTALLER="#0""/></InstallUISequence><InstallExecuteSequence>@@ -45,7 +45,7 @@<ComponentRef Id="Product.Registry.CommandPlay" /><ComponentRef Id="Product.Registry.URLProtocol" /><ComponentRef Id="Product.Registry.Command" />- <ComponentRef Id="Product.Registry.UninstallRustDesk" />+ <ComponentRef Id="Product.Registry.UninstallApp" /><ComponentRef Id="App.StartMenu" /><ComponentRef Id="Product.Registry.PersistedShortcutProperties" /></Feature>diff --git a/res/msi/preprocess.py b/res/msi/preprocess.pyindex bcf829c7c..9e10c3160 100644--- a/res/msi/preprocess.py+++ b/res/msi/preprocess.py@@ -13,6 +13,7 @@ g_indent_unit = "\t"g_version = ""g_build_date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")+# Replace the following links with your own in the custom arp properties.# https://learn.microsoft.com/en-us/windows/win32/msi/property-referenceg_arpsystemcomponent = {"Comments": {@@ -168,7 +169,7 @@ def gen_pre_vars(args, dist_dir):def replace_app_name_in_langs(app_name):langs_dir = Path(sys.argv[0]).parent.joinpath("Package/Language")- for file_path in langs_dir.glob("*.wxs"):+ for file_path in langs_dir.glob("*.wxl"):with open(file_path, "r") as f:lines = f.readlines()for i, line in enumerate(lines):