Better shortcut (#3147)
This commit is contained in:
parent
3cb355d06a
commit
d1b9aa7d73
@ -98,7 +98,8 @@ section "install"
|
||||
|
||||
# Start Menu
|
||||
createDirectory "$SMPROGRAMS\${COMPANYNAME}"
|
||||
createShortCut "$SMPROGRAMS\${COMPANYNAME}\${APPNAME}.lnk" "$INSTDIR\parity.exe" "ui" "$INSTDIR\logo.ico"
|
||||
createShortCut "$SMPROGRAMS\${COMPANYNAME}\${APPNAME} Ethereum.lnk" "$INSTDIR\ptray.exe" "ui" "$INSTDIR\logo.ico"
|
||||
createShortCut "$DESKTOP\${APPNAME} Ethereum.lnk" "$INSTDIR\ptray.exe" "ui" "$INSTDIR\logo.ico"
|
||||
|
||||
# Firewall remove rules if exists
|
||||
SimpleFC::AdvRemoveRule "Parity incoming peers (TCP:30303)"
|
||||
|
@ -69,8 +69,12 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
CreateMutex(0, FALSE, _T("Local\\ParityTray"));
|
||||
if (GetLastError() == ERROR_ALREADY_EXISTS)
|
||||
return -1;
|
||||
if (GetLastError() == ERROR_ALREADY_EXISTS) {
|
||||
// open the UI
|
||||
OpenUI();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
|
||||
LoadStringW(hInstance, IDC_PTRAY, szWindowClass, MAX_LOADSTRING);
|
||||
|
Loading…
Reference in New Issue
Block a user