Register dll by using shell

H

hakan aktan

I have an application working on WinCE.NET and written on CF 1.1 VB.NET
2003
I need to register "Imgdecmp.dll" cos my OS does not support image files.
I am registering dll before running the application as :

1- run cmd.exe from start menu
2- copy "regsvrce.exe" and "imgdecmp.dll" into windows directory of device
3- write command : "regsvrce.exe /i /s imgdecmp.dll"
4- close command window and run the application

I want to do this by using shell command as in visual basic but i can not
find it?
Does CF 1.1 and VB 2003 has support for shell command , if not is there
another way to do that
by code ?

Thanx in advance
 
P

Paul G. Tobey [eMVP]

Well, you can use the Process class that OpenNETCF provides. There's also a
class that implements a few of the VB-like calls, including Shell (in the
OpenNETCF.VisualBasic namespace).

Paul T.
 
H

hakan aktan

Hi Mr Tobey,

I included opennetcf.visualbasic and now i can run exe by shell but i could
not
run it by sending parameters.this works well
Shell("\Hard Disk\Cabs\setups\REGSVRCE.EXE",
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True, -1)

here is the code i wrote ( this does not work) Would you tell me me my
mistake, is my format wrong?:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

----------------------------------Code must do this :
String that works on comand well : "regsvrce.exe /i /s imgdecmp.dll"

Thanx in advance
--
Hakan Aktan
Software Developer

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com>, haber iletisinde þunlarý
yazdý:[email protected]...
 
G

Guest

Where is imgdecmp.dll located? You're not giving a ptha to it. As a side
note, where did you get this DLL anyway?

-Chris


hakan aktan said:
Hi Mr Tobey,

I included opennetcf.visualbasic and now i can run exe by shell but i
could not
run it by sending parameters.this works well
Shell("\Hard Disk\Cabs\setups\REGSVRCE.EXE",
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True, -1)

here is the code i wrote ( this does not work) Would you tell me me my
mistake, is my format wrong?:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

----------------------------------Code must do this :
String that works on comand well : "regsvrce.exe /i /s imgdecmp.dll"

Thanx in advance
--
Hakan Aktan
Software Developer

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com>, haber iletisinde þunlarý
yazdý:[email protected]...
Well, you can use the Process class that OpenNETCF provides. There's
also a class that implements a few of the VB-like calls, including Shell
(in the OpenNETCF.VisualBasic namespace).

Paul T.
 
H

hakan aktan

In the code below , my dll file is in the same dirctory with Regsvrce.exe
file:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

Is stg wrong with code?Thanx in advance.
--
Hakan Aktan
Software Developer

haber iletisinde þunlarý said:
Where is imgdecmp.dll located? You're not giving a ptha to it. As a side
note, where did you get this DLL anyway?

-Chris


hakan aktan said:
Hi Mr Tobey,

I included opennetcf.visualbasic and now i can run exe by shell but i
could not
run it by sending parameters.this works well
Shell("\Hard Disk\Cabs\setups\REGSVRCE.EXE",
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True, -1)

here is the code i wrote ( this does not work) Would you tell me me my
mistake, is my format wrong?:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

----------------------------------Code must do this :
String that works on comand well : "regsvrce.exe /i /s imgdecmp.dll"

Thanx in advance
--
Hakan Aktan
Software Developer

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com>, haber iletisinde þunlarý
yazdý:[email protected]...
Well, you can use the Process class that OpenNETCF provides. There's
also a class that implements a few of the VB-like calls, including Shell
(in the OpenNETCF.VisualBasic namespace).

Paul T.

I have an application working on WinCE.NET and written on CF 1.1 VB.NET
2003
I need to register "Imgdecmp.dll" cos my OS does not support image
files.
I am registering dll before running the application as :

1- run cmd.exe from start menu
2- copy "regsvrce.exe" and "imgdecmp.dll" into windows directory of
device
3- write command : "regsvrce.exe /i /s imgdecmp.dll"
4- close command window and run the application

I want to do this by using shell command as in visual basic but i can
not find it?
Does CF 1.1 and VB 2003 has support for shell command , if not is there
another way to do that
by code ?

Thanx in advance
 
G

Guest

Yes, your code is wrong. CE has no notion of a current directory, so it
can't find the file you're giving the name for.

-Chris

hakan aktan said:
In the code below , my dll file is in the same dirctory with Regsvrce.exe
file:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

Is stg wrong with code?Thanx in advance.
--
Hakan Aktan
Software Developer

haber iletisinde þunlarý said:
Where is imgdecmp.dll located? You're not giving a ptha to it. As a
side note, where did you get this DLL anyway?

-Chris


hakan aktan said:
Hi Mr Tobey,

I included opennetcf.visualbasic and now i can run exe by shell but i
could not
run it by sending parameters.this works well
Shell("\Hard Disk\Cabs\setups\REGSVRCE.EXE",
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True, -1)

here is the code i wrote ( this does not work) Would you tell me me my
mistake, is my format wrong?:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

----------------------------------Code must do this :
String that works on comand well : "regsvrce.exe /i /s
imgdecmp.dll"

Thanx in advance
--
Hakan Aktan
Software Developer

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com>, haber iletisinde þunlarý
yazdý:[email protected]...
Well, you can use the Process class that OpenNETCF provides. There's
also a class that implements a few of the VB-like calls, including
Shell (in the OpenNETCF.VisualBasic namespace).

Paul T.

I have an application working on WinCE.NET and written on CF 1.1
VB.NET 2003
I need to register "Imgdecmp.dll" cos my OS does not support image
files.
I am registering dll before running the application as :

1- run cmd.exe from start menu
2- copy "regsvrce.exe" and "imgdecmp.dll" into windows directory of
device
3- write command : "regsvrce.exe /i /s imgdecmp.dll"
4- close command window and run the application

I want to do this by using shell command as in visual basic but i can
not find it?
Does CF 1.1 and VB 2003 has support for shell command , if not is
there another way to do that
by code ?

Thanx in advance
 
H

hakan aktan

Thanx for your replies Mr. Tacke, i found another way.Here is my way :

OpenNETCF.Diagnostics.Process.Start("""\Hard
Disk\Cabs\setups\regsvrce.exe""", " /i /s imgdecmp.dll")

--
Hakan Aktan
Software Developer

haber iletisinde þunlarý said:
Yes, your code is wrong. CE has no notion of a current directory, so it
can't find the file you're giving the name for.

-Chris

hakan aktan said:
In the code below , my dll file is in the same dirctory with Regsvrce.exe
file:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

Is stg wrong with code?Thanx in advance.
--
Hakan Aktan
Software Developer

haber iletisinde þunlarý said:
Where is imgdecmp.dll located? You're not giving a ptha to it. As a
side note, where did you get this DLL anyway?

-Chris


Hi Mr Tobey,

I included opennetcf.visualbasic and now i can run exe by shell but i
could not
run it by sending parameters.this works well
Shell("\Hard Disk\Cabs\setups\REGSVRCE.EXE",
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True, -1)

here is the code i wrote ( this does not work) Would you tell me me my
mistake, is my format wrong?:

Dim myExe As String = "\Hard Disk\Cabs\setups\REGSVRCE.EXE"

Dim targetDll As String = "imgdecmp.dll"

Call Shell(" """ & myExe & """ " + " /i /s " + targetDll ,
OpenNETCF.VisualBasic.AppWinStyle.MaximizedFocus, True)

----------------------------------Code must do this :
String that works on comand well : "regsvrce.exe /i /s
imgdecmp.dll"

Thanx in advance
--
Hakan Aktan
Software Developer

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com>, haber iletisinde þunlarý
yazdý:[email protected]...
Well, you can use the Process class that OpenNETCF provides. There's
also a class that implements a few of the VB-like calls, including
Shell (in the OpenNETCF.VisualBasic namespace).

Paul T.

I have an application working on WinCE.NET and written on CF 1.1
VB.NET 2003
I need to register "Imgdecmp.dll" cos my OS does not support image
files.
I am registering dll before running the application as :

1- run cmd.exe from start menu
2- copy "regsvrce.exe" and "imgdecmp.dll" into windows directory of
device
3- write command : "regsvrce.exe /i /s imgdecmp.dll"
4- close command window and run the application

I want to do this by using shell command as in visual basic but i can
not find it?
Does CF 1.1 and VB 2003 has support for shell command , if not is
there another way to do that
by code ?

Thanx in advance
 

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