|
|
|
|
Posted by James Hetfield on July 28, 2007, 10:54 am
Please log in for more thread options
Hello
I'm new to C++.
I am trying to create a setup.dll in VS 2005. The samples in the SDK didnt
work for me:
=> removed the CAB-Project in it, then tried to build the DLL, I got:
1>------ Skipped Build: Project: SetupDLL ------
1>
========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ==========
I dont know why, tried from Smartphone WM 5 and PPC WM 5... the same...
So I have created an own project:
1. New Project = > Visual C++ => Smart Device => MFC Smart Device DLL
2. then I proceed like this here:
http://www.pocketpcdn.com/articles/setupdll.html 3. I added in the codeINSTALL_EXIT-Section:
between AFX_MANAGE_STATE(AfxGetStaticModuleState());
and
return codeINSTALL_EXIT_DONE;
the following:
PROCESS_INFORMATION pi = ;
CreateProcess(TEXT("\My Documents\myapp.exe"), TEXT(""), NULL, NULL,
NULL, 0, NULL, NULL, NULL, &pi);
This is working! But: The DLL is 361KB big (!)
Why is this? What have I done wrong?
Thanks
James
|
|
Posted by ctacke/ on July 28, 2007, 1:33 pm
Please log in for more thread options
The last is likely becuae it's bringing in MFC, which you have no need for -
don't use it.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
> Hello
>
> I'm new to C++.
>
> I am trying to create a setup.dll in VS 2005. The samples in the SDK didnt
> work for me:
> => removed the CAB-Project in it, then tried to build the DLL, I got:
> 1>------ Skipped Build: Project: SetupDLL ------
> 1>
> ========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped
> ==========
>
> I dont know why, tried from Smartphone WM 5 and PPC WM 5... the same...
>
> So I have created an own project:
>
> 1. New Project = > Visual C++ => Smart Device => MFC Smart Device DLL
> 2. then I proceed like this here:
> http://www.pocketpcdn.com/articles/setupdll.html
> 3. I added in the codeINSTALL_EXIT-Section:
> between AFX_MANAGE_STATE(AfxGetStaticModuleState());
> and
> return codeINSTALL_EXIT_DONE;
> the following:
> PROCESS_INFORMATION pi = ;
> CreateProcess(TEXT("\My Documents\myapp.exe"), TEXT(""), NULL, NULL,
> NULL, 0, NULL, NULL, NULL, &pi);
>
> This is working! But: The DLL is 361KB big (!)
>
> Why is this? What have I done wrong?
>
> Thanks
>
> James
|
|
Posted by Christian Resma Helle on July 29, 2007, 3:43 am
Please log in for more thread options Hi James,
As Chris mentioned, the filesize got big coz the project uses MFC. If you
statically link MFC it might even be bigger. I found another step by step
example for creating a CE Setup DLL that just uses pure Win32
Here's the link:
http://support.installshield.com/kb/view.asp?articleid=Q104092
--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com
"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
> The last is likely becuae it's bringing in MFC, which you have no need
> for - don't use it.
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded World
> www.OpenNETCF.com
>
>
>> Hello
>>
>> I'm new to C++.
>>
>> I am trying to create a setup.dll in VS 2005. The samples in the SDK
>> didnt work for me:
>> => removed the CAB-Project in it, then tried to build the DLL, I got:
>> 1>------ Skipped Build: Project: SetupDLL ------
>> 1>
>> ========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped
>> ==========
>>
>> I dont know why, tried from Smartphone WM 5 and PPC WM 5... the same...
>>
>> So I have created an own project:
>>
>> 1. New Project = > Visual C++ => Smart Device => MFC Smart Device DLL
>> 2. then I proceed like this here:
>> http://www.pocketpcdn.com/articles/setupdll.html
>> 3. I added in the codeINSTALL_EXIT-Section:
>> between AFX_MANAGE_STATE(AfxGetStaticModuleState());
>> and
>> return codeINSTALL_EXIT_DONE;
>> the following:
>> PROCESS_INFORMATION pi = ;
>> CreateProcess(TEXT("\My Documents\myapp.exe"), TEXT(""), NULL, NULL,
>> NULL, 0, NULL, NULL, NULL, &pi);
>>
>> This is working! But: The DLL is 361KB big (!)
>>
>> Why is this? What have I done wrong?
>>
>> Thanks
>>
>> James
>
>
|
|
Posted by James Hetfield on July 29, 2007, 5:19 am
Please log in for more thread options Hi
If I turn off Static Linked (set to dynamic), I can build it. but when I
create the cab and install it, it just says "cannot install"....
If I have static linked, it is working (but is big)
I will try your link although it seems to be quite a lot to do for a total
new-to-C++...
Thanks
> Hi James,
>
> As Chris mentioned, the filesize got big coz the project uses MFC. If you
> statically link MFC it might even be bigger. I found another step by step
> example for creating a CE Setup DLL that just uses pure Win32
>
> Here's the link:
> http://support.installshield.com/kb/view.asp?articleid=Q104092
>
>
> --
> Regards,
> Christian Resma Helle
> http://christian-helle.blogspot.com
>
>
> "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
>> The last is likely becuae it's bringing in MFC, which you have no need
>> for - don't use it.
>>
>>
>> --
>>
>> Chris Tacke, Embedded MVP
>> OpenNETCF Consulting
>> Managed Code in an Embedded World
>> www.OpenNETCF.com
>>
>>
>>> Hello
>>>
>>> I'm new to C++.
>>>
>>> I am trying to create a setup.dll in VS 2005. The samples in the SDK
>>> didnt work for me:
>>> => removed the CAB-Project in it, then tried to build the DLL, I got:
>>> 1>------ Skipped Build: Project: SetupDLL ------
>>> 1>
>>> ========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped
>>> ==========
>>>
>>> I dont know why, tried from Smartphone WM 5 and PPC WM 5... the same...
>>>
>>> So I have created an own project:
>>>
>>> 1. New Project = > Visual C++ => Smart Device => MFC Smart Device DLL
>>> 2. then I proceed like this here:
>>> http://www.pocketpcdn.com/articles/setupdll.html
>>> 3. I added in the codeINSTALL_EXIT-Section:
>>> between AFX_MANAGE_STATE(AfxGetStaticModuleState());
>>> and
>>> return codeINSTALL_EXIT_DONE;
>>> the following:
>>> PROCESS_INFORMATION pi = ;
>>> CreateProcess(TEXT("\My Documents\myapp.exe"), TEXT(""), NULL, NULL,
>>> NULL, 0, NULL, NULL, NULL, &pi);
>>>
>>> This is working! But: The DLL is 361KB big (!)
>>>
>>> Why is this? What have I done wrong?
>>>
>>> Thanks
>>>
>>> James
>>
>>
>
|
|
Posted by James Hetfield on July 29, 2007, 5:20 am
Please log in for more thread options Hi Chris
Thanks, but how can I turn it off?
I tried to using dynamic link to it, it is building well, but when I then
install my cab, it just says taht installation failed... if I have static
link, then it is working...
Thanks
"<ctacke/>" <ctacke[at]opennetcf[dot]com> schrieb im Newsbeitrag
> The last is likely becuae it's bringing in MFC, which you have no need
> for - don't use it.
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Managed Code in an Embedded World
> www.OpenNETCF.com
>
>
>> Hello
>>
>> I'm new to C++.
>>
>> I am trying to create a setup.dll in VS 2005. The samples in the SDK
>> didnt work for me:
>> => removed the CAB-Project in it, then tried to build the DLL, I got:
>> 1>------ Skipped Build: Project: SetupDLL ------
>> 1>
>> ========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped
>> ==========
>>
>> I dont know why, tried from Smartphone WM 5 and PPC WM 5... the same...
>>
>> So I have created an own project:
>>
>> 1. New Project = > Visual C++ => Smart Device => MFC Smart Device DLL
>> 2. then I proceed like this here:
>> http://www.pocketpcdn.com/articles/setupdll.html
>> 3. I added in the codeINSTALL_EXIT-Section:
>> between AFX_MANAGE_STATE(AfxGetStaticModuleState());
>> and
>> return codeINSTALL_EXIT_DONE;
>> the following:
>> PROCESS_INFORMATION pi = ;
>> CreateProcess(TEXT("\My Documents\myapp.exe"), TEXT(""), NULL, NULL,
>> NULL, 0, NULL, NULL, NULL, &pi);
>>
>> This is working! But: The DLL is 361KB big (!)
>>
>> Why is this? What have I done wrong?
>>
>> Thanks
>>
>> James
>
>
|
| Similar Threads | Posted | | Custom Setup.dll | July 6, 2005, 9:26 pm |
| Please help me make setup .inf for CAB | July 19, 2005, 2:27 am |
| Setup.dll question | October 21, 2005, 3:10 am |
| how to localize CAB setup DLL | March 28, 2007, 11:01 am |
| How to setup a device for Oma Dm boostrap | May 24, 2007, 5:18 am |
| App install fails: what does this error mean in setup.log? | August 9, 2005, 8:44 am |
| Invalid Windows CE Setup Files ... | August 21, 2005, 7:21 pm |
| how to setup a connection manager entry | October 31, 2005, 3:15 pm |
| Problems in creating setup for application deployment | January 5, 2006, 11:17 am |
| programmatically open New Acc Setup of Pocket Outlook | February 20, 2006, 7:02 am |
|
|
|
|