insert solitaire into the start menu if it's been installed.
authorGed Murphy <gedmurphy@reactos.org>
Thu, 20 Oct 2005 22:11:33 +0000 (22:11 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Thu, 20 Oct 2005 22:11:33 +0000 (22:11 +0000)
svn path=/trunk/; revision=18647

reactos/lib/syssetup/install.c
reactos/lib/syssetup/resource.h
reactos/lib/syssetup/syssetup_En.rc

index 6e96608..a3ab01c 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <commctrl.h>
 #include <stdio.h>
+#include <io.h>
 #include <tchar.h>
 #include <stdlib.h>
 
@@ -446,8 +447,13 @@ InstallReactOS (HINSTANCE hInstance)
     CreateShortcut(CSIDL_PROGRAMS, sAccessories, _T("regedit.lnk"), _T("regedit.exe"), IDS_CMT_REGEDIT);
   }
   
-  /* create Games subfolder */
-  CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256);  
+  /* create Games subfolder and fill if the exe is available */
+  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();
 
index 110d635..626a076 100644 (file)
@@ -93,6 +93,7 @@
 #define IDS_CMT_WINEFILE               3212
 #define IDS_CMT_NOTEPAD                        3213
 #define IDS_CMT_REGEDIT                        3214
+#define IDS_CMT_SOLITAIRE              3215
 
 #define IDR_GPL                                4000
 
index 60ded10..c633ec4 100644 (file)
@@ -207,6 +207,7 @@ END
 STRINGTABLE
 BEGIN
     IDS_GAMES              "Games"
+    IDS_CMT_SOLITAIRE  "Solitaire"
 END