mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 20:12:39 +03:00
Fixed bugs in installing per-user startup programs on windows 95
family.
This commit is contained in:
parent
e2a31e8b66
commit
d2f4cbf002
@ -122,7 +122,12 @@ CAutoStart::update()
|
||||
// update messages
|
||||
CString msg, label;
|
||||
if (canInstallSystem) {
|
||||
msg = getString(IDS_AUTOSTART_PERMISSION_SYSTEM);
|
||||
if (canInstallUser) {
|
||||
msg = getString(IDS_AUTOSTART_PERMISSION_ALL);
|
||||
}
|
||||
else {
|
||||
msg = getString(IDS_AUTOSTART_PERMISSION_SYSTEM);
|
||||
}
|
||||
}
|
||||
else if (canInstallUser) {
|
||||
msg = getString(IDS_AUTOSTART_PERMISSION_USER);
|
||||
|
@ -319,7 +319,7 @@ END
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_AUTOSTART_PERMISSION_SYSTEM
|
||||
"You have sufficient access rights to install and uninstall Auto Start for all users or for just yourself."
|
||||
"You have sufficient access rights to install and uninstall Auto Start for all users."
|
||||
IDS_AUTOSTART_PERMISSION_USER
|
||||
"You have sufficient access rights to install and uninstall Auto Start for just yourself."
|
||||
IDS_AUTOSTART_PERMISSION_NONE
|
||||
@ -335,8 +335,8 @@ BEGIN
|
||||
IDS_INSTALL_GENERIC_ERROR "Install failed: %{1}"
|
||||
IDS_UNINSTALL_GENERIC_ERROR "Uninstall failed: %{1}"
|
||||
IDS_INSTALL_TITLE "Installed Auto-Start"
|
||||
IDS_INSTALLED_SYSTEM "Installed auto-start. Synergy will now automatically start each time you start your computer."
|
||||
IDS_INSTALLED_USER "Installed auto-start. Synergy will now automatically start each time you log in."
|
||||
IDS_INSTALLED_SYSTEM "Installed auto-start. Synergy will automatically start each time you start your computer."
|
||||
IDS_INSTALLED_USER "Installed auto-start. Synergy will automatically start each time you log in."
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
@ -349,6 +349,8 @@ BEGIN
|
||||
IDS_ADD_SCREEN "Add Screen"
|
||||
IDS_EDIT_SCREEN "Edit Screen %{1}"
|
||||
IDS_ERROR_CODE "Error code: %{1}"
|
||||
IDS_AUTOSTART_PERMISSION_ALL
|
||||
"You have sufficient access rights to install and uninstall Auto Start for all users or for just yourself."
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
|
@ -42,6 +42,7 @@
|
||||
#define IDS_EDIT_SCREEN 38
|
||||
#define IDS_INVALID_TIME 39
|
||||
#define IDS_ERROR_CODE 39
|
||||
#define IDS_AUTOSTART_PERMISSION_ALL 40
|
||||
#define IDD_MAIN 101
|
||||
#define IDD_ADD 102
|
||||
#define IDD_WAIT 103
|
||||
|
@ -88,7 +88,7 @@ CArchDaemonWindows::installDaemon(const char* name,
|
||||
// key. if windows 95 family then use windows 95 services key.
|
||||
if (!allUsers || CArchMiscWindows::isWindows95Family()) {
|
||||
// open registry
|
||||
HKEY key = CArchMiscWindows::isWindows95Family() ?
|
||||
HKEY key = (allUsers && CArchMiscWindows::isWindows95Family()) ?
|
||||
open95ServicesKey() : openUserStartupKey();
|
||||
if (key == NULL) {
|
||||
// can't open key
|
||||
@ -191,7 +191,7 @@ CArchDaemonWindows::uninstallDaemon(const char* name, bool allUsers)
|
||||
// key. if windows 95 family then use windows 95 services key.
|
||||
if (!allUsers || CArchMiscWindows::isWindows95Family()) {
|
||||
// open registry
|
||||
HKEY key = CArchMiscWindows::isWindows95Family() ?
|
||||
HKEY key = (allUsers && CArchMiscWindows::isWindows95Family()) ?
|
||||
open95ServicesKey() : openUserStartupKey();
|
||||
if (key == NULL) {
|
||||
// can't open key. daemon is probably not installed.
|
||||
@ -322,7 +322,7 @@ CArchDaemonWindows::canInstallDaemon(const char* name, bool allUsers)
|
||||
// key. if windows 95 family then use windows 95 services key.
|
||||
if (!allUsers || CArchMiscWindows::isWindows95Family()) {
|
||||
// check if we can open the registry key
|
||||
HKEY key = CArchMiscWindows::isWindows95Family() ?
|
||||
HKEY key = (allUsers && CArchMiscWindows::isWindows95Family()) ?
|
||||
open95ServicesKey() : openUserStartupKey();
|
||||
CArchMiscWindows::closeKey(key);
|
||||
return (key != NULL);
|
||||
@ -354,7 +354,7 @@ CArchDaemonWindows::isDaemonInstalled(const char* name, bool allUsers)
|
||||
// key. if windows 95 family then use windows 95 services key.
|
||||
if (!allUsers || CArchMiscWindows::isWindows95Family()) {
|
||||
// check if we can open the registry key
|
||||
HKEY key = CArchMiscWindows::isWindows95Family() ?
|
||||
HKEY key = (allUsers && CArchMiscWindows::isWindows95Family()) ?
|
||||
open95ServicesKey() : openUserStartupKey();
|
||||
if (key == NULL) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user