Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / December 2005

Tip: Looking for answers? Try searching our database.

unattended install of cab file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony - 30 Dec 2005 14:02 GMT
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 - 30 Dec 2005 14:46 GMT
May be wceload.exe

> 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.
[quoted text clipped - 5 lines]
>
> Tony
Tony - 30 Dec 2005 17:57 GMT
no dice, thanks for trying though.   anyone else?
Chris Tacke, eMVP - 30 Dec 2005 18:07 GMT
What do you mean? wceload.exe *is* the app associated with CAB files.

Signature

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

> no dice, thanks for trying though.   anyone else?
Tony - 30 Dec 2005 19:06 GMT
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
Chris Tacke, eMVP - 30 Dec 2005 19:26 GMT
Show us the code you have that's not working for you.

Signature

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

> it doesn't give an error, but it doesn't start the install process.  I
> found this
[quoted text clipped - 4 lines]
>
> Thanks
Tony - 30 Dec 2005 19:46 GMT
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 - 30 Dec 2005 20:29 GMT
please ignore this thread.  I am working in eVB.  Tony

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.