Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

build script - what are the steps

4 views
Skip to first unread message

Lily Chang

unread,
Jul 22, 2002, 10:47:19 AM7/22/02
to
I've been building my C# app (.cab) file in Visual Studio .Net environment.
I need to setup a script to build the cab file from the source file - .cs
files,
resource, etc. Can anyone provide step-by-step instruction or pointers
to any reference on how to achieve this?

Thanks very much.


Steven Lasker

unread,
Jul 23, 2002, 7:22:06 AM7/23/02
to
You'll need to create a inf file: Here's an example with some references:
************************************
; This file contains the information for creating a CAB file for CE
installs.
;
; The sections below are commented with information on how to add files,
shortcuts
; and registry settings to the installation process.
;
; For more information:
;
; C:\Program Files\Microsoft Visual Studio
.NET\CompactFrameworkSDK\v1.0.3300\ReadMe.htm
; http://www.sundialsoft.freeserve.co.uk/sddocs013.htm
;
; To create the cab, simply drag this INF file to the CabWiz.exe application
from
; Windows Explorer.
;
; To deploy the application, simply copy the file to the CE device and click
the CAB
; file to install.
;

[Version]
Signature = "$Windows NT$" ; DO NOT CHANGE
Provider = "BikeITALIA" ; Company Name
CESignature = "$Windows CE$" ; DO NOT CHANGE

[CEStrings]
AppName = "DSD" ; Application Name
InstallDir = %CE1%\%AppName% ; Installation Directory (see bottom of file
for explanation of codes)

[DefaultInstall]
CopyFiles = AppFiles, JumpStart ; Sub-Sections with files to add to cab
CEShortcuts = Startmenu, Programs ; Sub-Sections containing shortcuts
AddReg = Regkeys ; Sub-Sections containing registry keys

[SourceDisksNames] ; Paths where files are physically located
1 = ,"App files",, C:\Data\Clients\BikeITALIA\Development\Source\BikeITALIA
Direct Store Delivery\BikeITALIA.DSD\bin\Release
2 = ,"JumpStart files",,
C:\Data\Clients\BikeITALIA\Development\Source\BikeITALIA Direct Store
Delivery\BikeITALIA.DSD\bin\Release

[SourceDisksFiles]
BikeITALIA.DSD.Business.dll = 1 ; File is in SourceDisksNames # 1
BikeITALIA.DSD.CF.exe = 1 ; File is in SourceDisksNames # 1
Immedient.CF.dll = 2 ; File is in SourceDisksNames # 2
Immedient.CF.Windows.dll = 2 ; File is in SourceDisksNames # 2

[DestinationDirs] ; Where to deploy files
Appfiles = 0, %InstallDir%
JumpStart = 0, %InstallDir%
Startmenu = 0, %CE17%
Programs = 0, %CE11%
DefaultDestDir = 0, %InstallDir%

[Appfiles] ; The files that are part of the application
"BikeITALIA.DSD.Business.dll"
"BikeITALIA.DSD.CF.exe"

[JumpStart] ; The files that are part of the JumpStart framework
"Immedient.CF.dll"
"Immedient.CF.Windows.dll"

[Startmenu] ;Shortcut -- Name, 0, File Name
;"Direct Store Delivery", 0, "BikeITALIA.DSD.CF.exe"
"Single Copy Delivery", 0, "BikeITALIA.DSD.CF.exe"

[Programs] ;Shortcut -- Name, 0, File Name
;"Direct Store Delivery", 0, "BikeITALIA.DSD.CF.exe"
"Single Copy Delivery", 0, "BikeITALIA.DSD.CF.exe"

[Regkeys] ;Registry keys can be added in this section
;reg_root_string,subkey,[value_name],flags,value[,value]

; %CE1% \Program Files \Program Files
; %CE2% \Windows \Windows
; %CE4% \Windows\StartUp \Windows\StartUp
; %CE5% \My Documents \My Documents
; %CE6% Not applicable \Program Files\Accessories
; %CE7% Not applicable \Program Files\Communication
; %CE8% \Program Files\Games \Program Files\Games
; %CE11% \Windows\Start Menu\Programs \Windows\Start Menu\Programs
; %CE12% Not applicable \Windows\Start Menu\Programs\Accessories
; %CE13% Not applicable \Windows\Start Menu\Programs\Communications
; %CE14% \Windows\Start Menu\Programs\Games \Windows\Start
Menu\Programs\Games
; %CE15% \Windows\Fonts \Windows\Fonts
; %CE17% \Windows\Start Menu \Windows\Start Menu

************************************
"Lily Chang" <lch...@teltier.com> wrote in message
news:#OtFz#YMCHA.2032@tkmsftngp10...

Lily Chang

unread,
Jul 23, 2002, 10:31:51 AM7/23/02
to
Thanks very much, Steve.

"Steven Lasker" <Steve.Las...@Immedient.com> wrote in message
news:OpcLwvjMCHA.1640@tkmsftngp12...

Lily Chang

unread,
Jul 23, 2002, 3:40:14 PM7/23/02
to
Using the .inf file, I can go from .exe to .cab file. I also would like
to build the .exe from my .cs files, .resx files, image files from command
line through some script. I'd appreciate any info on how (what commands)
I go about doing this. How to build a main/satellite assembly through
command line?

Thanks very much.

"Steven Lasker" <Steve.Las...@Immedient.com> wrote in message
news:OpcLwvjMCHA.1640@tkmsftngp12...

0 new messages