When creating a CAB file you are required to set the InstallDir
attribute under the [CEStrings] section of the CAB .inf file.

My problem is that I'm not sure where I want to install the CAB file
until the last possible second, as the CAB file is being installed.
This is well after the CAB file has been built.

In Mobile 4.2 you were able to override the InstallDir attribute at the
last possible second by setting a registry value at
[HKEY_LOCAL_MACHINE\SOFTWARE\Apps\Microsoft Application
Installer\Install]. You would set the registry value for your app, call
"wceload.exe /noaskdest", and then wceload would look at this registry
key for where to install the contents of your CAB. (This is described
at
http://blog.opennetcf.org/afeinman/CommentView,guid,1de2284c-a65e-417c-a130-1bd5acd4ad3d.aspx)

This no longer works in Windows Mobile 5.0. I know for sure that
wceload still looks at that registry key, because if you just call
"wceload.exe" it will install all the CABs listed in that key. The
problem is that no longer overrides the InstallDir attribute. I've
tried all combinations of command line switches (e.g. /silent, /noui) as
well as signing the CAB, to no avail. In my search for an answer I
found that you can create a setup.dll to accompany your CAB, which has
four functions called by wceload. One of the functions is Install_Init,
described at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ce_setup_install_init.asp

One of the parameters passed in is the install directory. I thought
it'd be sweet if I could modify that in memory and accomplish my goal.
This doesn't seem possible though because it's specified as an [in]
parameter.

Anyone have any suggestions?

RE: CAB installation and setting InstallDir at the last second (mobile by JamesFielding

JamesFielding
Wed Jul 19 06:28:02 CDT 2006


Does anyone have an answer to Chris' question ?
I've also got the same problem.

I want to be able to override the installDir of my .cab file...
On Windows Mobile 2003 devices, I can set the value using
the "HKLM\SOFTWARE\Apps\Microsoft Application Installer\Install"
registry key, and running wceload.exe with the "/noaskdest"
parameter.
It works a treat.

With Windows Mobile 5, it's completely ignored.

Is there a workaround ?



James



"Chris Karcher" wrote:

> When creating a CAB file you are required to set the InstallDir
> attribute under the [CEStrings] section of the CAB .inf file.
>
> My problem is that I'm not sure where I want to install the CAB file
> until the last possible second, as the CAB file is being installed.
> This is well after the CAB file has been built.
>
> In Mobile 4.2 you were able to override the InstallDir attribute at the
> last possible second by setting a registry value at
> [HKEY_LOCAL_MACHINE\SOFTWARE\Apps\Microsoft Application
> Installer\Install]. You would set the registry value for your app, call
> "wceload.exe /noaskdest", and then wceload would look at this registry
> key for where to install the contents of your CAB. (This is described
> at
> http://blog.opennetcf.org/afeinman/CommentView,guid,1de2284c-a65e-417c-a130-1bd5acd4ad3d.aspx)
>
> This no longer works in Windows Mobile 5.0. I know for sure that
> wceload still looks at that registry key, because if you just call
> "wceload.exe" it will install all the CABs listed in that key. The
> problem is that no longer overrides the InstallDir attribute. I've
> tried all combinations of command line switches (e.g. /silent, /noui) as
> well as signing the CAB, to no avail. In my search for an answer I
> found that you can create a setup.dll to accompany your CAB, which has
> four functions called by wceload. One of the functions is Install_Init,
> described at:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ce_setup_install_init.asp
>
> One of the parameters passed in is the install directory. I thought
> it'd be sweet if I could modify that in memory and accomplish my goal.
> This doesn't seem possible though because it's specified as an [in]
> parameter.
>
> Anyone have any suggestions?
>

Re: CAB installation and setting InstallDir at the last second (mobile by r_z_aret

r_z_aret
Wed Jul 19 12:25:09 CDT 2006

On Wed, 19 Jul 2006 04:28:02 -0700, JamesFielding
<JamesFielding@discussions.microsoft.com> wrote:

>
> Does anyone have an answer to Chris' question ?
> I've also got the same problem.
>
> I want to be able to override the installDir of my .cab file...
> On Windows Mobile 2003 devices, I can set the value using
>the "HKLM\SOFTWARE\Apps\Microsoft Application Installer\Install"
>registry key, and running wceload.exe with the "/noaskdest"
>parameter.
> It works a treat.
>
> With Windows Mobile 5, it's completely ignored.
>
> Is there a workaround ?

Have the CAB file do little more than set a registry key/value on the
handheld, and then have a setup dll do all the real work.


>
>
>
> James
>
>
>
>"Chris Karcher" wrote:
>
>> When creating a CAB file you are required to set the InstallDir
>> attribute under the [CEStrings] section of the CAB .inf file.
>>
>> My problem is that I'm not sure where I want to install the CAB file
>> until the last possible second, as the CAB file is being installed.
>> This is well after the CAB file has been built.
>>
>> In Mobile 4.2 you were able to override the InstallDir attribute at the
>> last possible second by setting a registry value at
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Apps\Microsoft Application
>> Installer\Install]. You would set the registry value for your app, call
>> "wceload.exe /noaskdest", and then wceload would look at this registry
>> key for where to install the contents of your CAB. (This is described
>> at
>> http://blog.opennetcf.org/afeinman/CommentView,guid,1de2284c-a65e-417c-a130-1bd5acd4ad3d.aspx)
>>
>> This no longer works in Windows Mobile 5.0. I know for sure that
>> wceload still looks at that registry key, because if you just call
>> "wceload.exe" it will install all the CABs listed in that key. The
>> problem is that no longer overrides the InstallDir attribute. I've
>> tried all combinations of command line switches (e.g. /silent, /noui) as
>> well as signing the CAB, to no avail. In my search for an answer I
>> found that you can create a setup.dll to accompany your CAB, which has
>> four functions called by wceload. One of the functions is Install_Init,
>> described at:
>>
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ce_setup_install_init.asp
>>
>> One of the parameters passed in is the install directory. I thought
>> it'd be sweet if I could modify that in memory and accomplish my goal.
>> This doesn't seem possible though because it's specified as an [in]
>> parameter.
>>
>> Anyone have any suggestions?
>>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: CAB installation and setting InstallDir at the last second (mobile by KhAoX

KhAoX
Thu Jul 20 02:33:14 CDT 2006

> >> One of the functions is Install_Init,
> >> described at:
> >> One of the parameters passed in is the install directory. I thought
> >> it'd be sweet if I could modify that in memory and accomplish my goal.
> >> This doesn't seem possible though because it's specified as an [in]
> >> parameter.
> >>
> >> Anyone have any suggestions?
> >>

overriding install path works on older windows, WM5 just ignores it...
but WM5 asks to alternate installation path to one of storage cards (if
avaible during install)


Re: CAB installation and setting InstallDir at the last second (mo by JamesFielding

JamesFielding
Thu Jul 20 16:19:02 CDT 2006


Hi Robert,

> Have the CAB file do little more than set a registry key/value on the
> handheld, and then have a setup dll do all the real work.

Errr, this isn't an option.

My application is designed for allowing users to install
*other people's* .cab files, and giving them the option to install
them elsewhere.
There is not the possibility of changing the .cab files
themselves.

Back to my original question:

Is there a way to get the WM2005 wceload.exe program to
overide the default install path for .cab files ?

And is this a known bug in WM2005's copy of wceload.exe ?


James


"r_z_aret@pen_fact.com" wrote:

> On Wed, 19 Jul 2006 04:28:02 -0700, JamesFielding
> <JamesFielding@discussions.microsoft.com> wrote:
>
> >
> > Does anyone have an answer to Chris' question ?
> > I've also got the same problem.
> >
> > I want to be able to override the installDir of my .cab file...
> > On Windows Mobile 2003 devices, I can set the value using
> >the "HKLM\SOFTWARE\Apps\Microsoft Application Installer\Install"
> >registry key, and running wceload.exe with the "/noaskdest"
> >parameter.
> > It works a treat.
> >
> > With Windows Mobile 5, it's completely ignored.
> >
> > Is there a workaround ?
>
> Have the CAB file do little more than set a registry key/value on the
> handheld, and then have a setup dll do all the real work.
>
>
> >
> >
> >
> > James
> >
> >
> >
> >"Chris Karcher" wrote:
> >
> >> When creating a CAB file you are required to set the InstallDir
> >> attribute under the [CEStrings] section of the CAB .inf file.
> >>
> >> My problem is that I'm not sure where I want to install the CAB file
> >> until the last possible second, as the CAB file is being installed.
> >> This is well after the CAB file has been built.
> >>
> >> In Mobile 4.2 you were able to override the InstallDir attribute at the
> >> last possible second by setting a registry value at
> >> [HKEY_LOCAL_MACHINE\SOFTWARE\Apps\Microsoft Application
> >> Installer\Install]. You would set the registry value for your app, call
> >> "wceload.exe /noaskdest", and then wceload would look at this registry
> >> key for where to install the contents of your CAB. (This is described
> >> at
> >> http://blog.opennetcf.org/afeinman/CommentView,guid,1de2284c-a65e-417c-a130-1bd5acd4ad3d.aspx)
> >>
> >> This no longer works in Windows Mobile 5.0. I know for sure that
> >> wceload still looks at that registry key, because if you just call
> >> "wceload.exe" it will install all the CABs listed in that key. The
> >> problem is that no longer overrides the InstallDir attribute. I've
> >> tried all combinations of command line switches (e.g. /silent, /noui) as
> >> well as signing the CAB, to no avail. In my search for an answer I
> >> found that you can create a setup.dll to accompany your CAB, which has
> >> four functions called by wceload. One of the functions is Install_Init,
> >> described at:
> >>
> >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ce_setup_install_init.asp
> >>
> >> One of the parameters passed in is the install directory. I thought
> >> it'd be sweet if I could modify that in memory and accomplish my goal.
> >> This doesn't seem possible though because it's specified as an [in]
> >> parameter.
> >>
> >> Anyone have any suggestions?
> >>
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>

Re: CAB installation and setting InstallDir at the last second (mo by Brian

Brian
Mon Jul 31 20:28:52 CDT 2006

JamesFielding <JamesFielding@discussions.microsoft.com> supposedly said:

> And is this a known bug in WM2005's copy of wceload.exe ?

If it's not, it should be... it knows the value is there, it uses it to
get the CAB file path just like older wceload versions, but unlike them it
ignores the fact that you're specifying an install directory and uses the
default instead.

--
-----------------------------------------------------------------------
Brian Smith // avalon73 at caerleon dot us // http://www.caerleon.us/
Software Developer // Gamer // Webmaster // System Administrator
Outside of a dog, a book is man's best friend. Inside of a dog, it's
too dark to read.

--
Posted via a free Usenet account from http://www.teranews.com


Re: CAB installation and setting InstallDir at the last second (mo by Brian

Brian
Thu Aug 10 15:16:51 CDT 2006

Incidentally, I just submitted a report on their product feedback site
about this, so if it wasn't a known problem before, it is now. Just need
to see what they end up doing with it.

--
-----------------------------------------------------------------------
Brian Smith // avalon73 at caerleon dot us // http://www.caerleon.us/
Software Developer // Gamer // Webmaster // System Administrator
Never be afraid to try something new. Remember... amateurs built the
ark, professionals built the Titanic.

--
Posted via a free Usenet account from http://www.teranews.com