Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSHShell, perhaps? Launch apps on the client's machine.

Status
Not open for further replies.

ChainsawJoe

Programmer
Dec 5, 2000
154
GB
Hi. I've been have a nightmare trying to get a dll to register on a user's pc (which, by the way, if anyone can help me with I'd be most amazingly grateful!), so I'm now looking for another option.

I want a button on an intranet page to launch an application on the user's pc. I've been trying to use the superb activex thingy from called LaunchInIE.dll. Very handy.

Anyway - I've been going mad trying to get the launchinie.dll to register on the client's pc, so I'm asking if anyone knows of a different method by which to launch an application on a client's machine?

I've heard a little about using WSHShell, but that appears to give a security popup each time - not good enuf!

Any help is greatly appreciated!
[peace]
CJ

--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
 
is the DLL in house as well ? perhaps you can modify the DLL to run as a service, and when the conditions are met in the page, instead of making the page try and fire the app, to have the app fire off the page being there.
 
Nice idea, but unfortunately the dll isn't in house..

Just a little more background - I've been previously trying to use a signed CAB file referenced on an html page, which contains an INF file that attempts to copy the dll and register it all in one go:
Code:
[Version]
Signature = "$Chicago$"

[DefaultInstall]
CopyFiles = LaunchInIE_CopyDll
RegisterDlls = LaunchInIE_RegisterDll
AddReg = LaunchInIE_AddReg

[SourceDiskNames]
1 =, "Common Files",,

[SourceDiskFiles]
LaunchInIE.dll = 1

[DestinationDirs]
LaunchInIE_CopyDll = 11

[LaunchInIE_CopyDll]
LaunchInIE.dll

[LaunchInIE_AddReg]
HKLM, "SOFTWARE\RockinFewl\LaunchinIE\Approved",url1,0,"[URL unfurl="true"]http://url1.mydomain.com/"[/URL]
HKLM, "SOFTWARE\RockinFewl\LaunchinIE\Approved",url2,0,"[URL unfurl="true"]http://url2.mydomain.com/"[/URL]

[LaunchInIE_RegisterDll]
11,,LaunchInIE.dll,1

This INF file works fine when righ-clicked and "install"ed, but within a cab file on an intranet page the registering fails with the following error:
Code:
*** Code Download Log entry (30 Apr 2004 @ 09:49:31) ***
Code Download Error: (hr = 80040154) Class not registered

Operation failed. Detailed Information:
     CodeBase: [URL unfurl="true"]http://url1.mydomain.com/mycab.CAB[/URL]
     CLSID: {A8809076-71C2-4B90-8DD6-6BF107F4F029}
     Extension: 
     Type: 

LOG: Setup Hook (null) was executed successfully.
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 0 / hrResponseHdr = 0).
LOG: URL Download Complete: hrStatus:0, hrOSB:1, hrResponseHdr:0, URL:([URL unfurl="true"]http://url1.mydomain.com/mycab.CAB)[/URL]
LOG: Setup Hook (null) was executed successfully.
LOG: Setup successful installing: T1V1.INF to (null) destination code(0)
LOG: Reporting Code Download Completion: (hr:80040154, CLASSID: a8809076..., szCODE:([URL unfurl="true"]http://url1.mydomain.com/mycab.CAB),[/URL] MainType:(null), MainExt:(null))

The ClassID used is that of the dll - is that correct?

Thank you for reading this far - I really appreciate any help!

--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
 
Don't worry! Ignore me, ignore me. As a wunderful Mr Scott Burnhart (or something) pointed out to me over on the MSDN newsgroups, when writing an inf file for a cab file, you don't use default install - you use [add.code]. This INF file actually works now!
Code:
[Version]
Signature = "$Chicago$"
AdvancedINF=2.0

[Add.Code]
LaunchInIE.dll=LaunchInIE.dll

[LaunchInIE.dll]
file-win32-x86=thiscab
DestDir=11
clsid={A8809076-71C2-4B90-8DD6-6BF107F4F029}
FileVersion=1,0,0,5
RegisterServer=yes

[Setup Hooks]
LaunchInIE_AddReg = LaunchInIE_AddReg

[LaunchInIE_AddReg]
HKLM, "SOFTWARE\RockinFewl\LaunchinIE\Approved",url1,0,"[URL unfurl="true"]http://url2.mydomain.com/"[/URL]
HKLM, "SOFTWARE\RockinFewl\LaunchinIE\Approved",url2,0,"[URL unfurl="true"]http://url1.mydomain.com/"[/URL]

yayyyy!!! my job is safe for a couple more weeks! :p

[peace]

CJ

have a great weekend everyone.. :D

--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top