Hi,

I have read your article in
http://msdn.microsoft.com/en-us/library/aa446914.aspx.

This is exactly what i want to do,but it must be based on Mobile_Handheld.xml.

And there is not 8432B78A-19F1-43AF-A42E-728A01AB2D10 GUID in this
templates' default settings.

And i don't know which one must be removed instead of this.



Here are Default Settings in the file:

<DefaultSettings>

<Component IncludeComponent="0246E582-3544-446B-8F7B-8FAA0C399410" />

<Component IncludeComponent="276588AD-0D2A-42AB-B000-CB2E4B21B52B" />

<Component IncludeComponent="271CFC2D-D13D-4931-8349-C4B549EAD1E3" />

<Component IncludeComponent="B1149DB7-EFA5-4663-AC07-3D63298F27D1" />

<Component IncludeComponent="0B6D5024-2A67-4D69-B700-D70BC9FEFC95" />

<Component IncludeComponent="42089D38-8B8A-4AF7-8CEC-50D2CEDD9BA0" />

<Component IncludeComponent="DBE930B6-40F7-4F60-9615-BDAACA0212D3" />

<Component IncludeComponent="88B461B5-0833-4708-AA2B-8B04E71EC4DD" />

<Component IncludeComponent="0CF8118F-5856-4B2F-AEAD-A63290B3F865" />

<Component IncludeComponent="0B3FE8BD-C855-46D2-B10A-8BC904EFB13B" />

<Component IncludeComponent="B1E0F57A-1800-49AA-81A0-3F5A3841CC99" />

<Component IncludeComponent="8D56A7ED-BE03-4D8A-8D33-8FF2A76331F6" />

<Component IncludeComponent="E4902D0F-4208-40C5-9261-97B11C4ADC31" />

<Component IncludeComponent="BE03A7DB-3630-473E-8BCE-B60C10B7DF48" />

<Component IncludeComponent="3DB27231-B662-46B2-9A20-BCDB9672F10B" />

<Component IncludeComponent="1BB4C0F3-A14B-4502-88E1-E0AF1A7EA74A" />

<Component IncludeComponent="C79B8B9A-2FA9-4A14-89FD-843DD3361DC3" />

<Component IncludeComponent="8AE70F33-3B0C-4F59-AFB8-637CE51613C5" />

<Component IncludeComponent="471E2536-72B9-4F19-A928-276EF0B9B760" />

<Component IncludeComponent="A3012ACD-FEC3-4DB5-8839-1618494C6D2C" />

<Component IncludeComponent="1631229C-623A-4A7B-A193-28468250143F" />

<Component IncludeComponent="3129C966-A210-47F9-95DB-771E33B0A640" />

<Component IncludeComponent="A0922DAF-6595-4977-ABF1-41B2C331007F" />

<Component IncludeComponent="D341D78A-48D4-4957-82EC-C4EB296BC6F8" />

<BuildOption Name="IMGNODEBUGGER" BuildOptionDefault="RETAIL_ONLY" />

<BuildOption Name="IMGEBOOT" BuildOptionDefault="YES" />

<BuildOption Name="SYSGEN_SHELL" BuildOptionDefault="YES" />

</DefaultSettings>



And if i haven't misunderstood,after removing the true GUID,

i must add the

[HKEY_LOCAL_MACHINE\init]
"Launch50"="PlatformStartup.exe"
"Depend50"=hex:14,00,1E,00

But in the same directory you say in the article, this function is a bit
diffirent as below:

// PlatformStartup.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
void ProcessStartupFolder()
{
WCHAR szPath[MAX_PATH];
HANDLE hFind = NULL;
WIN32_FIND_DATA fd = {0};
LPWSTR pszFileName = NULL;

//lstrcpy(szPath,L"\\Startup\\*.*");


if (!SHGetSpecialFolderPath(NULL, szPath, CSIDL_STARTUP, FALSE) ||
FAILED(StringCchCatEx(szPath, sizeof(szPath)/sizeof(*szPath),
TEXT("\\*.*"), &pszFileName, NULL, 0)))
{
return;
}

hFind = FindFirstFile(szPath, &fd);
if (INVALID_HANDLE_VALUE != hFind)
{
SHELLEXECUTEINFO sei = {0};
sei.cbSize = sizeof(sei);
sei.nShow = SW_SHOWNORMAL;
sei.lpFile = szPath;
pszFileName -= 3; // Just before the *.*

do
{
if ((!(FILE_ATTRIBUTE_DIRECTORY & fd.dwFileAttributes)) &&
(0 != _tcsicmp(TEXT("desktop.ini"), fd.cFileName)))
{
_tcscpy(pszFileName, fd.cFileName);
ShellExecuteEx(&sei);
}
} while (FindNextFile(hFind, &fd));
FindClose(hFind);
}
}



And at last,i must add

root:-Directory("\"):-Directory("Startup")
Directory("\Startup"):-File("ShellApp.exe","\windows\ShellApp.exe") to the
.dat file.



But because of not to be able to set first settings,i haven't gone on until
this step.



Can you answer all my questions?

Thanks.

Re: Create a Windows CE Image That Boots to Kiosk Mode by Dean

Dean
Mon Jun 16 07:52:36 PDT 2008

I would ignore the first part of the post. There is no reason that you need
to create a default "kiosk" template. Instead, just use the existing Mobile
Handheld template, and then make the changes in the catalog (deselect the
existing shell).

The only thing that first part does for you is create a template where the
shell has already been removed by default...

--
Dean Ramsier - eMVP
BSQUARE Corporation


"selmaguzel" <selmaguzel@discussions.microsoft.com> wrote in message
news:F08F69AB-F1B2-42E0-8CB7-2684EF8644AB@microsoft.com...
>
> Hi,
>
> I have read your article in
> http://msdn.microsoft.com/en-us/library/aa446914.aspx.
>
> This is exactly what i want to do,but it must be based on
> Mobile_Handheld.xml.
>
> And there is not 8432B78A-19F1-43AF-A42E-728A01AB2D10 GUID in this
> templates' default settings.
>
> And i don't know which one must be removed instead of this.
>
>
>
> Here are Default Settings in the file:
>
> <DefaultSettings>
>
> <Component IncludeComponent="0246E582-3544-446B-8F7B-8FAA0C399410" />
>
> <Component IncludeComponent="276588AD-0D2A-42AB-B000-CB2E4B21B52B" />
>
> <Component IncludeComponent="271CFC2D-D13D-4931-8349-C4B549EAD1E3" />
>
> <Component IncludeComponent="B1149DB7-EFA5-4663-AC07-3D63298F27D1" />
>
> <Component IncludeComponent="0B6D5024-2A67-4D69-B700-D70BC9FEFC95" />
>
> <Component IncludeComponent="42089D38-8B8A-4AF7-8CEC-50D2CEDD9BA0" />
>
> <Component IncludeComponent="DBE930B6-40F7-4F60-9615-BDAACA0212D3" />
>
> <Component IncludeComponent="88B461B5-0833-4708-AA2B-8B04E71EC4DD" />
>
> <Component IncludeComponent="0CF8118F-5856-4B2F-AEAD-A63290B3F865" />
>
> <Component IncludeComponent="0B3FE8BD-C855-46D2-B10A-8BC904EFB13B" />
>
> <Component IncludeComponent="B1E0F57A-1800-49AA-81A0-3F5A3841CC99" />
>
> <Component IncludeComponent="8D56A7ED-BE03-4D8A-8D33-8FF2A76331F6" />
>
> <Component IncludeComponent="E4902D0F-4208-40C5-9261-97B11C4ADC31" />
>
> <Component IncludeComponent="BE03A7DB-3630-473E-8BCE-B60C10B7DF48" />
>
> <Component IncludeComponent="3DB27231-B662-46B2-9A20-BCDB9672F10B" />
>
> <Component IncludeComponent="1BB4C0F3-A14B-4502-88E1-E0AF1A7EA74A" />
>
> <Component IncludeComponent="C79B8B9A-2FA9-4A14-89FD-843DD3361DC3" />
>
> <Component IncludeComponent="8AE70F33-3B0C-4F59-AFB8-637CE51613C5" />
>
> <Component IncludeComponent="471E2536-72B9-4F19-A928-276EF0B9B760" />
>
> <Component IncludeComponent="A3012ACD-FEC3-4DB5-8839-1618494C6D2C" />
>
> <Component IncludeComponent="1631229C-623A-4A7B-A193-28468250143F" />
>
> <Component IncludeComponent="3129C966-A210-47F9-95DB-771E33B0A640" />
>
> <Component IncludeComponent="A0922DAF-6595-4977-ABF1-41B2C331007F" />
>
> <Component IncludeComponent="D341D78A-48D4-4957-82EC-C4EB296BC6F8" />
>
> <BuildOption Name="IMGNODEBUGGER" BuildOptionDefault="RETAIL_ONLY" />
>
> <BuildOption Name="IMGEBOOT" BuildOptionDefault="YES" />
>
> <BuildOption Name="SYSGEN_SHELL" BuildOptionDefault="YES" />
>
> </DefaultSettings>
>
>
>
> And if i haven't misunderstood,after removing the true GUID,
>
> i must add the
>
> [HKEY_LOCAL_MACHINE\init]
> "Launch50"="PlatformStartup.exe"
> "Depend50"=hex:14,00,1E,00
>
> But in the same directory you say in the article, this function is a bit
> diffirent as below:
>
> // PlatformStartup.cpp : Defines the entry point for the application.
> //
> #include "stdafx.h"
> void ProcessStartupFolder()
> {
> WCHAR szPath[MAX_PATH];
> HANDLE hFind = NULL;
> WIN32_FIND_DATA fd = {0};
> LPWSTR pszFileName = NULL;
>
> //lstrcpy(szPath,L"\\Startup\\*.*");
>
>
> if (!SHGetSpecialFolderPath(NULL, szPath, CSIDL_STARTUP, FALSE) ||
> FAILED(StringCchCatEx(szPath, sizeof(szPath)/sizeof(*szPath),
> TEXT("\\*.*"), &pszFileName, NULL, 0)))
> {
> return;
> }
>
> hFind = FindFirstFile(szPath, &fd);
> if (INVALID_HANDLE_VALUE != hFind)
> {
> SHELLEXECUTEINFO sei = {0};
> sei.cbSize = sizeof(sei);
> sei.nShow = SW_SHOWNORMAL;
> sei.lpFile = szPath;
> pszFileName -= 3; // Just before the *.*
>
> do
> {
> if ((!(FILE_ATTRIBUTE_DIRECTORY & fd.dwFileAttributes)) &&
> (0 != _tcsicmp(TEXT("desktop.ini"), fd.cFileName)))
> {
> _tcscpy(pszFileName, fd.cFileName);
> ShellExecuteEx(&sei);
> }
> } while (FindNextFile(hFind, &fd));
> FindClose(hFind);
> }
> }
>
>
>
> And at last,i must add
>
> root:-Directory("\"):-Directory("Startup")
> Directory("\Startup"):-File("ShellApp.exe","\windows\ShellApp.exe") to the
> .dat file.
>
>
>
> But because of not to be able to set first settings,i haven't gone on
> until
> this step.
>
>
>
> Can you answer all my questions?
>
> Thanks.
>
>