Hi,

I'm trying to port my app from a WM2003 device to WM5. When I am
installing my cab files on the
WM5 device, I am being prompted to, "Choose a location to install <cab
name>", with options for
"Device", "\SD Card", and "\Flash File Store".

How do I get the cab files to tell the installer that I don't want to
be prompted, that I know the destination location. The
DestinationDirs are set in the inf file that created the cab files.

My hardware is Intermec 761 (old) and the Intermec CN3 (new), if that
makes any difference.

Any help would be appreciated, Thanks.

Carlos

Re: WM5 Cab file prompt for location by Riki

Riki
Tue May 08 12:52:18 CDT 2007

SwingCarlos wrote:
> Hi,
>
> I'm trying to port my app from a WM2003 device to WM5. When I am
> installing my cab files on the
> WM5 device, I am being prompted to, "Choose a location to install <cab
> name>", with options for
> "Device", "\SD Card", and "\Flash File Store".
>
> How do I get the cab files to tell the installer that I don't want to
> be prompted, that I know the destination location. The
> DestinationDirs are set in the inf file that created the cab files.
>
> My hardware is Intermec 761 (old) and the Intermec CN3 (new), if that
> makes any difference.

in your .inf file you should have something like:
[CEStrings]
InstallDir = %CE1%\Name

Remove or Rename 'InstallDir', if the installer sees that it prompts the
user which partition to use.

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebsite.com/

I took the red pill.

Re: WM5 Cab file prompt for location by SwingCarlos

SwingCarlos
Tue May 08 15:59:56 CDT 2007

On May 8, 10:52 am, Riki <see_my_home@page> wrote:
> SwingCarlos wrote:
> > Hi,
>
> > I'm trying to port my app from a WM2003 device to WM5. When I am
> > installing my cab files on the
> > WM5 device, I am being prompted to, "Choose a location to install <cab
> > name>", with options for
> > "Device", "\SD Card", and "\Flash File Store".
>
> > How do I get the cab files to tell the installer that I don't want to
> > be prompted, that I know the destination location. The
> > DestinationDirs are set in the inf file that created the cab files.
>
> > My hardware is Intermec 761 (old) and the Intermec CN3 (new), if that
> > makes any difference.
>
> in your .inf file you should have something like:
> [CEStrings]
> InstallDir = %CE1%\Name
>
> Remove or Rename 'InstallDir', if the installer sees that it prompts the
> user which partition to use.
>
> Riki
>
> --
> ThemeChanger and AbstractStart for Smartphone :http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWeb...
>
> I took the red pill.

Thanks Riki but...

I tried removing and renaming "InstallDir". Each time I get an error
popup dialog:
"Error: Section [CEStrings] key "InstallDir" requires valid data"

I've done some googling and the other threads i've found on this topic
stop right here.

Anybody,
Carlos




Re: WM5 Cab file prompt for location by r_z_aret

r_z_aret
Tue May 08 15:56:21 CDT 2007

On 8 May 2007 10:44:10 -0700, SwingCarlos <SwingCarlos@comcast.net>
wrote:

>
>Hi,
>
>I'm trying to port my app from a WM2003 device to WM5. When I am
>installing my cab files on the
>WM5 device, I am being prompted to, "Choose a location to install <cab
>name>", with options for
>"Device", "\SD Card", and "\Flash File Store".
>
>How do I get the cab files to tell the installer that I don't want to
>be prompted, that I know the destination location. The
>DestinationDirs are set in the inf file that created the cab files.
>
>My hardware is Intermec 761 (old) and the Intermec CN3 (new), if that
>makes any difference.
>
>Any help would be appreciated, Thanks.

I just used google (http://groups.google.com/advanced_group_search) to
look up
silent install
in this newsgroup and got 31 hits. I took a quick look and am pretty
sure at least some will be useful, or at least intriguing.

>
>Carlos

-----------------------------------------
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: WM5 Cab file prompt for location by Riki

Riki
Tue May 08 16:05:16 CDT 2007

SwingCarlos wrote:
>
> Thanks Riki but...
>
> I tried removing and renaming "InstallDir". Each time I get an error
> popup dialog:
> "Error: Section [CEStrings] key "InstallDir" requires valid data"
Can you post you .inf?

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebsite.com/

life is what happens during long compiles.

Re: WM5 Cab file prompt for location by SwingCarlos

SwingCarlos
Tue May 08 16:18:10 CDT 2007

On May 8, 2:05 pm, Riki <see_my_home@page> wrote:
> SwingCarlos wrote:
>
> > Thanks Riki but...
>
> > I tried removing and renaming "InstallDir". Each time I get an error
> > popup dialog:
> > "Error: Section [CEStrings] key "InstallDir" requires valid data"
>
> Can you post you .inf?
>
> Riki

Below is the unaltered version.
I renamed InstallDir -> InstallDir1
and get the error message above.
- Carlos


[SOURCE FILE]
Name=Mims.cab

[Version]
Signature="$Chicago$"
Provider="Con-Way"
CESignature="$Windows CE$"

[CEStrings]
AppName="Mims"
InstallDir="\c"

[SourceDisksNames]
1=,"MIMS Files",,.
2=,"Sound Files",,..\sounds

[SourceDisksFiles]
"Mims.jar"=1
"Mims.lnk"=1
"DebugMims.lnk"=1
"MIMS.exe"=1
"Alarm1.wav"=2
"Alarm2.wav"=2
"Alarm3.wav"=2
"Alarm4.wav"=2
"goodread.wav"=2
"Infbeg.wav"=2
"Infend.wav"=2
"msgbox.wav"=2
"notify.wav"=2
"type.wav"=2
"online.wav"=2

[CopyFilesApp]
"Mims.jar",,,0x40000001
"Mims.lnk",,,0x40000001
"DebugMims.lnk",,,0x40000001
"MIMS.exe",,,0x40000001

[Sounds]
"Alarm1.wav",,,0x40000001
"Alarm2.wav",,,0x40000001
"Alarm3.wav",,,0x40000001
"Alarm4.wav",,,0x40000001
"goodread.wav",,,0x40000001
"Infbeg.wav",,,0x40000001
"Infend.wav",,,0x40000001
"msgbox.wav",,,0x40000001
"notify.wav",,,0x40000001
"type.wav",,,0x40000001
"online.wav",,,0x40000001

[PersistentFiles]

[CEShortcuts1]
"Mims.lnk",0,"Mims.lnk"

[DestinationDirs]
CopyFilesApp=0,%InstallDir%
CEShortcuts1=0,%CE11%
PersistentFiles=0,"\SD Card\MIMS Data"
Sounds=0,%InstallDir%\sounds

[DefaultInstall]
CopyFiles=CopyFilesApp,Sounds,PersistentFiles
CEShortcuts=CEShortcuts1







Re: WM5 Cab file prompt for location by Riki

Riki
Tue May 08 18:45:26 CDT 2007

SwingCarlos wrote:
> On May 8, 2:05 pm, Riki <see_my_home@page> wrote:
>> SwingCarlos wrote:
>>
>>> Thanks Riki but...
>>> I tried removing and renaming "InstallDir". Each time I get an error
>>> popup dialog:
>>> "Error: Section [CEStrings] key "InstallDir" requires valid data"
>> Can you post you .inf?
>>
>> Riki
>
> Below is the unaltered version.
> I renamed InstallDir -> InstallDir1
> and get the error message above.
> - Carlos
>
>
> [SOURCE FILE]
> Name=Mims.cab
>
> [Version]
> Signature="$Chicago$"
> Provider="Con-Way"
> CESignature="$Windows CE$"
>
> [CEStrings]
> AppName="Mims"
> InstallDir="\c"
>
> [SourceDisksNames]
> 1=,"MIMS Files",,.
> 2=,"Sound Files",,..\sounds
>
> [SourceDisksFiles]
> "Mims.jar"=1
> "Mims.lnk"=1
> "DebugMims.lnk"=1
> "MIMS.exe"=1
> "Alarm1.wav"=2
> "Alarm2.wav"=2
> "Alarm3.wav"=2
> "Alarm4.wav"=2
> "goodread.wav"=2
> "Infbeg.wav"=2
> "Infend.wav"=2
> "msgbox.wav"=2
> "notify.wav"=2
> "type.wav"=2
> "online.wav"=2
>
> [CopyFilesApp]
> "Mims.jar",,,0x40000001
> "Mims.lnk",,,0x40000001
> "DebugMims.lnk",,,0x40000001
> "MIMS.exe",,,0x40000001
>
> [Sounds]
> "Alarm1.wav",,,0x40000001
> "Alarm2.wav",,,0x40000001
> "Alarm3.wav",,,0x40000001
> "Alarm4.wav",,,0x40000001
> "goodread.wav",,,0x40000001
> "Infbeg.wav",,,0x40000001
> "Infend.wav",,,0x40000001
> "msgbox.wav",,,0x40000001
> "notify.wav",,,0x40000001
> "type.wav",,,0x40000001
> "online.wav",,,0x40000001
>
> [PersistentFiles]
>
> [CEShortcuts1]
> "Mims.lnk",0,"Mims.lnk"
>
> [DestinationDirs]
> CopyFilesApp=0,%InstallDir%
> CEShortcuts1=0,%CE11%
> PersistentFiles=0,"\SD Card\MIMS Data"
> Sounds=0,%InstallDir%\sounds
>
> [DefaultInstall]
> CopyFiles=CopyFilesApp,Sounds,PersistentFiles
> CEShortcuts=CEShortcuts1
>

So you changed it too:
<---->
[SOURCE FILE]
Name=Mims.cab

[Version]
Signature="$Chicago$"
Provider="Con-Way"
CESignature="$Windows CE$"

[CEStrings]
AppName="Mims"
MyInstallDir="\c"

[SourceDisksNames]
1=,"MIMS Files",,.
2=,"Sound Files",,..\sounds

[SourceDisksFiles]
"Mims.jar"=1
"Mims.lnk"=1
"DebugMims.lnk"=1
"MIMS.exe"=1
"Alarm1.wav"=2
"Alarm2.wav"=2
"Alarm3.wav"=2
"Alarm4.wav"=2
"goodread.wav"=2
"Infbeg.wav"=2
"Infend.wav"=2
"msgbox.wav"=2
"notify.wav"=2
"type.wav"=2
"online.wav"=2

[CopyFilesApp]
"Mims.jar",,,0x40000001
"Mims.lnk",,,0x40000001
"DebugMims.lnk",,,0x40000001
"MIMS.exe",,,0x40000001

[Sounds]
"Alarm1.wav",,,0x40000001
"Alarm2.wav",,,0x40000001
"Alarm3.wav",,,0x40000001
"Alarm4.wav",,,0x40000001
"goodread.wav",,,0x40000001
"Infbeg.wav",,,0x40000001
"Infend.wav",,,0x40000001
"msgbox.wav",,,0x40000001
"notify.wav",,,0x40000001
"type.wav",,,0x40000001
"online.wav",,,0x40000001

[PersistentFiles]

[CEShortcuts1]
"Mims.lnk",0,"Mims.lnk"

[DestinationDirs]
CopyFilesApp=0,%MyInstallDir%
CEShortcuts1=0,%CE11%
PersistentFiles=0,"\SD Card\MIMS Data"
Sounds=0,%MyInstallDir%\sounds

[DefaultInstall]
CopyFiles=CopyFilesApp,Sounds,PersistentFiles
CEShortcuts=CEShortcuts1

<---->
Or something like that?

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebsite.com/

Life is a tragedy for feelers and a comedy for thinkers.

Re: WM5 Cab file prompt for location by SwingCarlos

SwingCarlos
Tue May 08 19:05:38 CDT 2007

>
> So you changed it too:
> <---->
> [SOURCE FILE]
> Name=Mims.cab
>
> [Version]
> Signature="$Chicago$"
> Provider="Con-Way"
> CESignature="$Windows CE$"
>
> [CEStrings]
> AppName="Mims"
> MyInstallDir="\c"

## Edited out by Carlos ####

>
> <---->
> Or something like that?
>
> Riki
>

Yes, something like that. "InstallDir1" to be specific.
cabwiz complains about: "Error: Section [CEStrings] key "InstallDir"
requires valid data"

So, it appears that cabwiz is expecting there to be an "InstallDir"
string. And I've read
2 other threads end right at this point, without further discussion.

Carlos


Re: WM5 Cab file prompt for location by Riki

Riki
Tue May 08 19:22:57 CDT 2007

SwingCarlos wrote:
>> So you changed it too:
>> <---->
>> [SOURCE FILE]
>> Name=Mims.cab
>>
>> [Version]
>> Signature="$Chicago$"
>> Provider="Con-Way"
>> CESignature="$Windows CE$"
>>
>> [CEStrings]
>> AppName="Mims"
>> MyInstallDir="\c"
>
> ## Edited out by Carlos ####
>
>> <---->
>> Or something like that?
>>
>> Riki
>>
>
> Yes, something like that. "InstallDir1" to be specific.
> cabwiz complains about: "Error: Section [CEStrings] key "InstallDir"
> requires valid data"
>
> So, it appears that cabwiz is expecting there to be an "InstallDir"
> string. And I've read
> 2 other threads end right at this point, without further discussion.

I'll give that a quick try later, but you also changed the two strings
in the DestinationDirs section too?

<--snip-->
[DestinationDirs]
CopyFilesApp=0,%MyInstallDir%
<--snip-->
Sounds=0,%MyInstallDir%\sounds
<--snip-->

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebsite.com/

Nothing resolves design issues quite like an implementation.-- Prof.
J.D. Horton, UNB

Re: WM5 Cab file prompt for location by riki

riki
Tue May 08 22:15:56 CDT 2007

SwingCarlos wrote:
> Yes, something like that. "InstallDir1" to be specific.
> cabwiz complains about: "Error: Section [CEStrings] key "InstallDir"
> requires valid data"
>
> So, it appears that cabwiz is expecting there to be an "InstallDir"
> string. And I've read
> 2 other threads end right at this point, without further discussion.

what cabwiz are you using? IE from which SDK?

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebiste.com/

I have had a perfectly wonderful evening, but this wasn't it.

Re: WM5 Cab file prompt for location by SwingCarlos

SwingCarlos
Wed May 09 12:58:36 CDT 2007

> > So, it appears that cabwiz is expecting there to be an "InstallDir"
> > string. And I've read
> > 2 other threads end right at this point, without further discussion.
>
> what cabwiz are you using? IE from which SDK?
>
> Riki

Whatever the trial Visual Studio 2005 is. The full path to cabwiz is:
"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools
\cabwiz.exe"

Do different versions of cabwiz enforce different requiremens of
the .inf files?

Carlos



Re: WM5 Cab file prompt for location by riki

riki
Fri May 11 00:09:45 CDT 2007

Try

<--snip-->
[SOURCE FILE]
Name=Mims.cab

[Version]
Signature="$Chicago$"
Provider="Con-Way"
CESignature="$Windows CE$"

[CEStrings]
AppName="Mims"

[Strings]
MyInstallDir="\c"

[SourceDisksNames]
1=,"MIMS Files",,.
2=,"Sound Files",,..\sounds

[SourceDisksFiles]
"Mims.jar"=1
"Mims.lnk"=1
"DebugMims.lnk"=1
"MIMS.exe"=1
"Alarm1.wav"=2
"Alarm2.wav"=2
"Alarm3.wav"=2
"Alarm4.wav"=2
"goodread.wav"=2
"Infbeg.wav"=2
"Infend.wav"=2
"msgbox.wav"=2
"notify.wav"=2
"type.wav"=2
"online.wav"=2

[CopyFilesApp]
"Mims.jar",,,0x40000001
"Mims.lnk",,,0x40000001
"DebugMims.lnk",,,0x40000001
"MIMS.exe",,,0x40000001

[Sounds]
"Alarm1.wav",,,0x40000001
"Alarm2.wav",,,0x40000001
"Alarm3.wav",,,0x40000001
"Alarm4.wav",,,0x40000001
"goodread.wav",,,0x40000001
"Infbeg.wav",,,0x40000001
"Infend.wav",,,0x40000001
"msgbox.wav",,,0x40000001
"notify.wav",,,0x40000001
"type.wav",,,0x40000001
"online.wav",,,0x40000001

[PersistentFiles]

[CEShortcuts1]
"Mims.lnk",0,"Mims.lnk"

[DestinationDirs]
CopyFilesApp=0,%MyInstallDir%
CEShortcuts1=0,%CE11%
PersistentFiles=0,"\SD Card\MIMS Data"
Sounds=0,%MyInstallDir%\sounds

[DefaultInstall]
CopyFiles=CopyFilesApp,Sounds,PersistentFiles
CEShortcuts=CEShortcuts1

<--snipp-->

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebiste.com/

I believe that X is ten. I'm an existentialist.