Groups | Blog | Home
all groups > dotnet compact framework > december 2005 >

dotnet compact framework : unattended install of cab file


Tony
12/30/2005 6:02:49 AM
I would like my app to download a cab file then initialize (open) it.
so instead of the user clicking on it, to just have it start.

I can use the shell command to start other exe's, but I don't know
which exe - cab files are associated with.

Any help?

Tony
Lorica
12/30/2005 6:46:01 AM
May be wceload.exe

[quoted text, click to view]
Tony
12/30/2005 9:57:54 AM
no dice, thanks for trying though. anyone else?
Tony
12/30/2005 11:06:05 AM
it doesn't give an error, but it doesn't start the install process. I
found this

http://www.pocketpcdn.com/articles/installcab.html

but it is not eVB, and I don't know what type of object INFO is.

Thanks
Tony
12/30/2005 11:46:39 AM
it is in the root folder. no response when button clicked.

Private Sub btnPriceBook_Click()

Dim lngShellRes As Long
lngShellRes = fcnShell("wceload.exe", "/noaskdest /noi
'\iDeal_1.002.CAB'", 0)
If lngShellRes <> 0 Then MsgBox "Shell error " & lngShellRes

End Sub

Public Function fcnShell(ByVal strApp As String, ByVal strFile As
String, lngProcessHdl As Long) As Long

Dim strProcessInfo As String

Dim lngRes As Long
Dim lngThread As Long
Dim lngProcessID As Long
Dim lngThreadID As Long

' Initialize PROCESS_INFORMATION memory string.
' Convert initial Rect values to String to pass into CreateProcess
API.
strProcessInfo = fcnInitProcessInfo(0, 0, 0, 0)

lngRes = fcnCreateProcess(strApp, strFile, 0, 0, 0, 0, 0, 0, 0,
strProcessInfo)

'failure
If lngRes = 0 Then
lngRes = GetLastError
Else
lngRes = 0
End If

'convert string back to long integer
subGetProcessInfo strProcessInfo, lngProcessHdl, lngThread,
lngProcessID, lngThreadID

fcnShell = lngRes

End Function
Tony
12/30/2005 12:29:55 PM
please ignore this thread. I am working in eVB. Tony
Chris Tacke, eMVP
12/30/2005 1:07:17 PM
What do you mean? wceload.exe *is* the app associated with CAB files.


--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


[quoted text, click to view]

Chris Tacke, eMVP
12/30/2005 2:26:44 PM
Show us the code you have that's not working for you.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


[quoted text, click to view]

AddThis Social Bookmark Button