@@ -987,17 +987,17 @@ fn get_valid_subkey() -> String {
987
987
return subkey;
988
988
}
989
989
let app_name = crate :: get_app_name ( ) ;
990
- let subkey = get_subkey ( & app_name, true ) . replace ( " " , "" ) ;
990
+ let subkey = get_subkey ( & app_name, true ) ;
991
991
if !get_reg_of ( & subkey, "InstallLocation" ) . is_empty ( ) {
992
992
return subkey;
993
993
}
994
- return get_subkey ( & app_name, false ) . replace ( " " , "" ) ;
994
+ return get_subkey ( & app_name, false ) ;
995
995
}
996
996
997
997
// Return install options other than InstallLocation.
998
998
pub fn get_install_options ( ) -> String {
999
999
let app_name = crate :: get_app_name ( ) ;
1000
- let subkey = format ! ( ".{}" , app_name. to_lowercase( ) ) . replace ( " " , "" ) ;
1000
+ let subkey = format ! ( ".{}" , app_name. to_lowercase( ) ) ;
1001
1001
let mut opts = HashMap :: new ( ) ;
1002
1002
1003
1003
let desktop_shortcuts = get_reg_of_hkcr ( & subkey, REG_NAME_INSTALL_DESKTOPSHORTCUTS ) ;
@@ -1135,7 +1135,7 @@ fn get_after_install(
1135
1135
reg_value_desktop_shortcuts : Option < String > ,
1136
1136
) -> String {
1137
1137
let app_name = crate :: get_app_name ( ) ;
1138
- let ext = app_name. to_lowercase ( ) . replace ( " " , "" ) ;
1138
+ let ext = app_name. to_lowercase ( ) ;
1139
1139
1140
1140
// reg delete HKEY_CURRENT_USER\Software\Classes for
1141
1141
// https://github.com/rustdesk/rustdesk/commit/f4bdfb6936ae4804fc8ab1cf560db192622ad01a
@@ -1358,7 +1358,7 @@ pub fn run_before_uninstall() -> ResultType<()> {
1358
1358
1359
1359
fn get_before_uninstall ( kill_self : bool ) -> String {
1360
1360
let app_name = crate :: get_app_name ( ) ;
1361
- let ext = app_name. to_lowercase ( ) . replace ( " " , "" ) ;
1361
+ let ext = app_name. to_lowercase ( ) ;
1362
1362
let filter = if kill_self {
1363
1363
"" . to_string ( )
1364
1364
} else {
0 commit comments