VS Folders (again)

B

Brian

Hi all,

I'm still searching for an answer on how to do this correctly: I'm trying to
edit my INF file to deploy images and sounds within my project to their
corresponding folders, that is, /images and /sounds in the project folder.

Peter Foot said in another thread:
When you build a CAB file installer for your application you can edit the
INF file (created in the /obj/ sub-folder of your project on disk) and place
content files in more logical subfolders on the device.

This makes sense, but I cannot get the files to deploy correctly. This is
an example from the INF (I've tried a few different ways, but I thought
adding a destinationDirs entry would make the most sense):

[DestinationDirs]
Files.Common=0,%InstallDir%
Shortcuts=0,%CE2%\Start Menu
Files.ARMV4=0,%InstallDir%
Files.ARM=0,%InstallDir%
Files.SH3=0,%InstallDir%
Files.MIPS=0,%InstallDir%
Files.X86=0,%InstallDir%
Files.WCE420X86=0,%InstallDir%
Files.Images=0,%InstallDir%\images

[Files.Common]
app.exe,,,0
settings.xml,,,0
OpenNETCF.WinAPI.dll,,,0

[Files.Images]
Sojourn.jpg,,,0

I added the Files.Images manually thinking this would work, but it doesn't.
I've read through the MSDN docs, but I haven't found anything that addresses
this specifically.

Thanks for your help,
Brian
 
J

John Atkins

Brian,

Have you added anything to the source disk files section for your images?
For example, I have the following:

[SourceDisksFiles]
Pocket Evidence.exe=1
EvidenceApp.exe=2
Config.xml=3
Alarm1.wav=4
Alarm2.wav=5
Alarm3.wav=6
Alarm4.wav=7

The numbers refer to the numbers in the SourceDiskNames section. For
example:

[SourceDisksNames]
1=,"Common1",,"C:\My Documents\Visual Studio
Projects\EvidenceDev\Evidence\obj\Debug\"
2=,"Common2",,"C:\My Documents\Visual Studio
Projects\EvidenceDev\EvidenceApp\obj\Debug\"
3=,"Common3",,"C:\My Documents\Visual Studio Projects\EvidenceDev\Evidence\"
4=,"Common4",,"C:\My Documents\Visual Studio
Projects\EvidenceDev\Evidence\Sounds\"
5=,"Common5",,"C:\My Documents\Visual Studio
Projects\EvidenceDev\Evidence\Sounds\"
6=,"Common6",,"C:\My Documents\Visual Studio
Projects\EvidenceDev\Evidence\Sounds\"
7=,"Common7",,"C:\My Documents\Visual Studio
Projects\EvidenceDev\Evidence\Sounds\"

I have also specified my Files.Sounds (like your Files.Images) in the
DefaultInstall section:

[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common, Files.EvidenceApp, Files.Sounds

I'll email you my complete ini file as an example.

John.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top