PC Review


Reply
Thread Tools Rate Thread

Need to create cab for PPC with 1000+ files...

 
 
Joshua Maeir
Guest
Posts: n/a
 
      16th Mar 2005
I need to create a cab to be used in an install program that will
install over 1000 files in a a tree of directories.

I also have Installshield Express, however there is a bug in it and it
will not allow selecting more than 18 files at a time.

I need to create several sets of these CABs.

Can anyone offer any solution aside for manualy creating a inf file?

Thank!

Joshua

 
Reply With Quote
 
 
 
 
Ilya Tumanov [MS]
Guest
Posts: n/a
 
      16th Mar 2005
Hmm... I'm not sure CabWiz can support that many files.
Anyway, you can use a simple batch file to generate file list in INF:

----- CUT
@echo off

rem Make sure delayed environment variables are enabled

if not "%VENABLED%"=="TRUE" (
setlocal
set VENABLED=TRUE
cmd /vn /c %0 %*
endlocal
goto exit
)


if "%1" == "" (
echo Usage: %0 file_list ^>^> file.inf
goto exit
)

echo [Files.Plenty]
for /f %%i in (%1) do (
@echo "%%~nxi",%%~nxi,,0x40000001
)
echo [SourceDisksNames]
set Source=0
for /f %%i in (%1) do (
set /a Source=!Source! + 1
set Folder=%%~dpi
set Folder=!Folder:~0,-1!
@echo !Source! = ,"Path!Source!",,!Folder!
)
set Source=0
echo [SourceDisksFiles]
for /f %%i in (%1) do (
set /a Source=!Source! + 1
@echo %%~nxi = !Source!
)

:exit
----- CUT

You'll need a file with list of all files you wish to add.
You can create it by executing 'dir /s /b > file.list' from the folder your
files are located and edit it if needed.
Note it won't create entire INF, just the file list. Rest is up to you.
Also, change 0x40000001 to whatever mode you need (see MSDN for details).

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> From: "Joshua Maeir" <(E-Mail Removed)>
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> Subject: Need to create cab for PPC with 1000+ files...
> Date: 16 Mar 2005 11:23:09 -0800
> Organization: http://groups.google.com
> Lines: 14
> Message-ID: <(E-Mail Removed)>
> NNTP-Posting-Host: 207.172.209.3
> Mime-Version: 1.0
> Content-Type: text/plain; charset="iso-8859-1"
> X-Trace: posting.google.com 1111000993 23649 127.0.0.1 (16 Mar 2005

19:23:13 GMT)
> X-Complaints-To: groups-(E-Mail Removed)
> NNTP-Posting-Date: Wed, 16 Mar 2005 19:23:13 +0000 (UTC)
> User-Agent: G2/0.2
> Complaints-To: groups-(E-Mail Removed)
> Injection-Info: f14g2000cwb.googlegroups.com; posting-host=207.172.209.3;
> posting-account=6PAdDQ0AAAClYUJIUj1SAYmolutf_pKc
> Path:

TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.
sul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!f14g2000cwb.g
ooglegroups.com!not-for-mail
> Xref: TK2MSFTNGXA02.phx.gbl

microsoft.public.dotnet.framework.compactframework:73412
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
>
> I need to create a cab to be used in an install program that will
> install over 1000 files in a a tree of directories.
>
> I also have Installshield Express, however there is a bug in it and it
> will not allow selecting more than 18 files at a time.
>
> I need to create several sets of these CABs.
>
> Can anyone offer any solution aside for manualy creating a inf file?
>
> Thank!
>
> Joshua
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding 1000 excel files A.A.A Microsoft Excel Discussion 5 16th Jul 2008 02:08 PM
FP limit of 1GB and no more than 1000 files - is this true? =?Utf-8?B?U3RlZmFu?= Microsoft Frontpage 5 25th Jul 2007 10:22 AM
Mapland Excel Addin - Programatically Create 1000 distinct maps Rich Cooper Microsoft Excel Programming 1 27th Jul 2004 07:07 AM
Mapland Excel Addin - Programatically Create 1000 distinct maps Rich Cooper Microsoft Excel Misc 3 27th Jul 2004 07:07 AM
Event ID 1000 - unable to create profile directory Blithe Microsoft Windows 2000 0 12th Sep 2003 06:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 AM.