insert solitaire into the start menu if it's been installed.

svn path=/trunk/; revision=18647
This commit is contained in:
Ged Murphy 2005-10-20 22:11:33 +00:00
parent d181c34e7a
commit eec7e9d35d
3 changed files with 10 additions and 2 deletions

View file

@ -34,6 +34,7 @@
#include <commctrl.h> #include <commctrl.h>
#include <stdio.h> #include <stdio.h>
#include <io.h>
#include <tchar.h> #include <tchar.h>
#include <stdlib.h> #include <stdlib.h>
@ -446,8 +447,13 @@ InstallReactOS (HINSTANCE hInstance)
CreateShortcut(CSIDL_PROGRAMS, sAccessories, _T("regedit.lnk"), _T("regedit.exe"), IDS_CMT_REGEDIT); CreateShortcut(CSIDL_PROGRAMS, sAccessories, _T("regedit.lnk"), _T("regedit.exe"), IDS_CMT_REGEDIT);
} }
/* create Games subfolder */ /* create Games subfolder and fill if the exe is available */
CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256); if (CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256)) {
/* Check for existence */
if( (_access( "c:\\reactos\\system32\\sol.exe", 0 )) != -1 )
CreateShortcut(CSIDL_PROGRAMS, sGames, _T("Solitaire.lnk"), _T("sol.exe"), IDS_CMT_SOLITAIRE);
}
CoUninitialize(); CoUninitialize();

View file

@ -93,6 +93,7 @@
#define IDS_CMT_WINEFILE 3212 #define IDS_CMT_WINEFILE 3212
#define IDS_CMT_NOTEPAD 3213 #define IDS_CMT_NOTEPAD 3213
#define IDS_CMT_REGEDIT 3214 #define IDS_CMT_REGEDIT 3214
#define IDS_CMT_SOLITAIRE 3215
#define IDR_GPL 4000 #define IDR_GPL 4000

View file

@ -207,6 +207,7 @@ END
STRINGTABLE STRINGTABLE
BEGIN BEGIN
IDS_GAMES "Games" IDS_GAMES "Games"
IDS_CMT_SOLITAIRE "Solitaire"
END END