Error while building CAB file from VS.Net 2003

M

Mustafa Rabie

Hi All,

I am always getting this error when choosing "Build->Build CAB File" for my
smartphone application

Error : The CabWiz executable 'D:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Smartphone\..\bin\..\bin\cabwiz.exe' could not be invoked



what might the problem be?

thanks for your help,

mustafa
 
A

Alex Feinman [MVP]

The path is slightly wrong for some reason. While I don't know how to fix
this path so that studio generates it correctly the next time, you can go
into <Your Project>\obj\Debug directory and edit the build.bat file so that
the path is:
D:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\bin\cabwiz.exe'
 
I

Ilya Tumanov [MS]

Actually, this path is also wrong. SP and PPC are using different CabWiz
utility.
If you use this one, CAB won't install on SP.
CabWiz for SP is included with SP SDK and can be found at this location:

"<SP_SDK_DRIVE>:\Program Files\Windows CE Tools\wce420\SMARTPHONE
2003\Tools\CabwizSP.exe

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
M

Mustafa Rabie

Thanks Ilya that worked but i have 2 questions:
1) how do i change it in VS2003.net to make it work from there straight away
and not having to edit the .bat file everytime i want to build a cab file?
2) the cab file built didn't have the proect dependencies with it so how can
i add that?

thanks
mustafa
"Ilya Tumanov [MS]" said:
Actually, this path is also wrong. SP and PPC are using different CabWiz
utility.
If you use this one, CAB won't install on SP.
CabWiz for SP is included with SP SDK and can be found at this location:

"<SP_SDK_DRIVE>:\Program Files\Windows CE Tools\wce420\SMARTPHONE
2003\Tools\CabwizSP.exe

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "Alex Feinman [MVP]" <[email protected]>
References: <[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Fri, 18 Feb 2005 10:55:09 -0800
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="Windows-1252";
reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 204.249.181.133
Path: TK2MSFTNGXA01.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22852
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

The path is slightly wrong for some reason. While I don't know how to fix
this path so that studio generates it correctly the next time, you can go
into <Your Project>\obj\Debug directory and edit the build.bat file so that
the path is:
D:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\bin\cabwiz.exe'
 
I

Ilya Tumanov [MS]

You can copy CabWizSp.exe into the "D:\Program Files\Microsoft Visual
Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\bin" folder and
rename it to CabWiz.exe.
Since that's the place VS expects it to be, it would work without changes
to the CAB. Or, edit batch file once and do not use VS to build a CAB,
start the batch instead.

You'll have to edit CAB's INF file to add other files. If you do that, do
not use VS to build CAB as it would overwrite INF.
Start the batch directly instead. You might want to rename INF and batch
files so VS would not overwrite them accidentally.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "Mustafa Rabie" <[email protected]>
References: <[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Sat, 19 Feb 2005 00:46:00 +0200
Lines: 89
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <#[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 62.215.63.104
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
2.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.compactframework:71450
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Thanks Ilya that worked but i have 2 questions:
1) how do i change it in VS2003.net to make it work from there straight away
and not having to edit the .bat file everytime i want to build a cab file?
2) the cab file built didn't have the proect dependencies with it so how can
i add that?

thanks
mustafa
"Ilya Tumanov [MS]" said:
Actually, this path is also wrong. SP and PPC are using different CabWiz
utility.
If you use this one, CAB won't install on SP.
CabWiz for SP is included with SP SDK and can be found at this location:

"<SP_SDK_DRIVE>:\Program Files\Windows CE Tools\wce420\SMARTPHONE
2003\Tools\CabwizSP.exe

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "Alex Feinman [MVP]" <[email protected]>
References: <[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Fri, 18 Feb 2005 10:55:09 -0800
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="Windows-1252";
reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 204.249.181.133
Path:
TK2MSFTNGXA01.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:22852
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

The path is slightly wrong for some reason. While I don't know how to fix
this path so that studio generates it correctly the next time, you can go
into <Your Project>\obj\Debug directory and edit the build.bat file so that
the path is:
D:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\bin\cabwiz.exe'

--
Alex Feinman
---
Visit http://www.opennetcf.org
Hi All,

I am always getting this error when choosing "Build->Build CAB File" for
my smartphone application

Error : The CabWiz executable 'D:\Program Files\Microsoft Visual Studio
.NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Smartphone\..\bin\..\bin\cabwiz.exe' could not be invoked



what might the problem be?

thanks for your help,

mustafa
 
M

Mustafa Rabie

hi Ilya,
thanks for your help that worked and it's building the cab file from inside
VS.net 2003. But still the dependencies are not built in the cab file
although it's mentioned while building that the proect is dependent on them.
they are the opennetcf cab files
thanks
mustafa
"Ilya Tumanov [MS]" said:
You can copy CabWizSp.exe into the "D:\Program Files\Microsoft Visual
Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\bin" folder and
rename it to CabWiz.exe.
Since that's the place VS expects it to be, it would work without changes
to the CAB. Or, edit batch file once and do not use VS to build a CAB,
start the batch instead.

You'll have to edit CAB's INF file to add other files. If you do that, do
not use VS to build CAB as it would overwrite INF.
Start the batch directly instead. You might want to rename INF and batch
files so VS would not overwrite them accidentally.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "Mustafa Rabie" <[email protected]>
References: <[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Sat, 19 Feb 2005 00:46:00 +0200
Lines: 89
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <#[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 62.215.63.104
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
2.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.compactframework:71450
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Thanks Ilya that worked but i have 2 questions:
1) how do i change it in VS2003.net to make it work from there straight away
and not having to edit the .bat file everytime i want to build a cab
file?
2) the cab file built didn't have the proect dependencies with it so how can
i add that?

thanks
mustafa
"Ilya Tumanov [MS]" said:
Actually, this path is also wrong. SP and PPC are using different
CabWiz
utility.
If you use this one, CAB won't install on SP.
CabWiz for SP is included with SP SDK and can be found at this
location:

"<SP_SDK_DRIVE>:\Program Files\Windows CE Tools\wce420\SMARTPHONE
2003\Tools\CabwizSP.exe

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "Alex Feinman [MVP]" <[email protected]>
References: <[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Fri, 18 Feb 2005 10:55:09 -0800
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="Windows-1252";
reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 204.249.181.133
Path:
TK2MSFTNGXA01.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.compactframework:22852
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

The path is slightly wrong for some reason. While I don't know how to fix
this path so that studio generates it correctly the next time, you can go
into <Your Project>\obj\Debug directory and edit the build.bat file so
that
the path is:
D:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\bin\cabwiz.exe'

--
Alex Feinman
---
Visit http://www.opennetcf.org
Hi All,

I am always getting this error when choosing "Build->Build CAB File"
for
my smartphone application

Error : The CabWiz executable 'D:\Program Files\Microsoft Visual Studio
.NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Smartphone\..\bin\..\bin\cabwiz.exe' could not be invoked



what might the problem be?

thanks for your help,

mustafa
 
I

Ilya Tumanov [MS]

You can't add CAB into CAB. Well, you can add it, but it won't be
installed, so it's pointless.
Anyway, building CAB in VS is very limited.

If you need more than just putting compiled EXE into the CAB, you need to
edit INF file and build CABs manually.
You might also need a custom setup DLL (can be created only in native C++).

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Mustafa Rabie" <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Sat, 19 Feb 2005 19:05:13 +0200
Lines: 153
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 62.215.61.41
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp1
3.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.compactframework:71502
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

hi Ilya,
thanks for your help that worked and it's building the cab file from inside
VS.net 2003. But still the dependencies are not built in the cab file
although it's mentioned while building that the proect is dependent on them.
they are the opennetcf cab files
thanks
mustafa
"Ilya Tumanov [MS]" said:
You can copy CabWizSp.exe into the "D:\Program Files\Microsoft Visual
Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\bin" folder and
rename it to CabWiz.exe.
Since that's the place VS expects it to be, it would work without changes
to the CAB. Or, edit batch file once and do not use VS to build a CAB,
start the batch instead.

You'll have to edit CAB's INF file to add other files. If you do that, do
not use VS to build CAB as it would overwrite INF.
Start the batch directly instead. You might want to rename INF and batch
files so VS would not overwrite them accidentally.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "Mustafa Rabie" <[email protected]>
References: <[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Sat, 19 Feb 2005 00:46:00 +0200
Lines: 89
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <#[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 62.215.63.104
Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
2.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.compactframework:71450
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Thanks Ilya that worked but i have 2 questions:
1) how do i change it in VS2003.net to make it work from there straight away
and not having to edit the .bat file everytime i want to build a cab
file?
2) the cab file built didn't have the proect dependencies with it so
how
can
i add that?

thanks
mustafa
Actually, this path is also wrong. SP and PPC are using different
CabWiz
utility.
If you use this one, CAB won't install on SP.
CabWiz for SP is included with SP SDK and can be found at this
location:

"<SP_SDK_DRIVE>:\Program Files\Windows CE Tools\wce420\SMARTPHONE
2003\Tools\CabwizSP.exe

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: "Alex Feinman [MVP]" <[email protected]>
References: <[email protected]>
Subject: Re: Error while building CAB file from VS.Net 2003
Date: Fri, 18 Feb 2005 10:55:09 -0800
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="Windows-1252";
reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 204.249.181.133
Path:
TK2MSFTNGXA01.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.compactframework:22852
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

The path is slightly wrong for some reason. While I don't know how
to
fix
this path so that studio generates it correctly the next time, you
can
go
into <Your Project>\obj\Debug directory and edit the build.bat file so
that
the path is:
D:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\bin\cabwiz.exe'

--
Alex Feinman
---
Visit http://www.opennetcf.org
Hi All,

I am always getting this error when choosing "Build->Build CAB File"
for
my smartphone application

Error : The CabWiz executable 'D:\Program Files\Microsoft Visual Studio
.NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Smartphone\..\bin\..\bin\cabwiz.exe' could not be invoked



what might the problem be?

thanks for your help,

mustafa
 

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