473,796 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

distributing activex which needs installer

I just finished writing an activeX in .net. The ActiveX requires that
various other COM components be installed before running. We found
that IE already has a mechanism for running an installer if an ActiveX
is not installed by using the codebase parameter.

<object name="secondobj " style='display: none' id='TestActivex '
classid='CLSID: A47C22B1-3CC3-45bc-801E-3FCC4FFD3E45'
codebase='Downl oadDeployer.cab #version=1,0,0, 0'>
</object>

The docs say that the codebase parameter usually points to a single
install file. Usually it's a CAB file which unlikes EXEs cannot
download the .net framework on demand or execute post install actions
like executing the script which gives the activex fulltrust.

It seems that we can't have codebase point to the setup.exe because
then it would be missing the .msi file (and if we point to the .msi it
would need the exe file to download the prerequisites!) We are
researching a way where the CAB would include the exe,msi and the INF
file which describes the cab file would execute the EXE after the cab
is extracted.

Is this a good solution, or is there another simpler way to prompt the
user to run the installer the first time they visit the webpage?

best,
Tuviah
Jul 19 '08 #1
1 1724
you are correct, IE will only install a single dll. there are two common
approaches

1) link to a full setup
2) have a simple c/c++ dll that acts as a proxy, and is able to download
and install the actual dll's.

note: as your base com object is written in .net, IE will run it a
sandbox that will not allow to call other com objects (unmanged code).
the users will need to set the trust on the component, so be sure to add
this to the install script. as you will be marking your compoenent "safe
for scripting", be sure its safe.

-- bruce (sqlwork.com)

tuvman wrote:
I just finished writing an activeX in .net. The ActiveX requires that
various other COM components be installed before running. We found
that IE already has a mechanism for running an installer if an ActiveX
is not installed by using the codebase parameter.

<object name="secondobj " style='display: none' id='TestActivex '
classid='CLSID: A47C22B1-3CC3-45bc-801E-3FCC4FFD3E45'
codebase='Downl oadDeployer.cab #version=1,0,0, 0'>
</object>

The docs say that the codebase parameter usually points to a single
install file. Usually it's a CAB file which unlikes EXEs cannot
download the .net framework on demand or execute post install actions
like executing the script which gives the activex fulltrust.

It seems that we can't have codebase point to the setup.exe because
then it would be missing the .msi file (and if we point to the .msi it
would need the exe file to download the prerequisites!) We are
researching a way where the CAB would include the exe,msi and the INF
file which describes the cab file would execute the EXE after the cab
is extracted.

Is this a good solution, or is there another simpler way to prompt the
user to run the installer the first time they visit the webpage?

best,
Tuviah
Jul 19 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1986
by: Chris | last post by:
I would like to be able to "package-up" a Python application on my development platform (Linux) so that it can be easily distributed and installed on Windows and UNIX e.g. HP-UX, AIX etc. I'd rather not use Python's disutils. I've looked at cx_Freeze but this requires a "base executable" to be available for each target platform i.e. I'd need to compile this base executable on the target platforms but I don't have access to them all. I've...
1
1496
by: Keith Patella | last post by:
I'm using Visual C++ 6.0, but since there doesn't seem to be a vc.xml newsgroup I was hoping someone here would know my question. Does anyone know what exactly I need to do to distribute .xml with an application? Originally I would just include all the xml.dll 's and the .ini file in my application directory and I created a .bat file to run regsrv32.exe on the msxml4.dll. A person on Win98 is having an issue where the xml script is not...
2
2431
by: Scott | last post by:
Any help would be grateful :-) Problem: When I test my installation of Access 2000 MDE, I get the following error: "Unrecognised Format".. This means that Access 97 cannot read Access 2000. But I was under the Impression that Access 2000, could be redistributed using Install Shield 7 and that it would not effect the workstations current status. My Current senario is:
5
1745
by: MLH | last post by:
I have little or no knowledge as to how a runtime Access database application might be distributed from a website. I am sure that I'm about to find out. I do have one question for you wizards though... My experience has shown that when I have installed applications from the web, my browser generally asks what I want to do with the file... Do I wanna save it? or Do I wanna run it? The browser generally warns about the dangers of executing...
1
2715
by: Steve | last post by:
I am having an issue deploying an ActiveX control. This is a .NET project in C#. The ActiveX control is written in VB6. I use the PDW (Package and Deployment Wizard) to create a .CAB for the control. The problem is that sometimes the ActiveX control installs successfully and sometimes it doesn't. We have various test machines running different operating systems. On one machine, running Windows 2000, SP4, the control installs...
9
2033
by: alf | last post by:
Hi, I have a small app which consist of a few .py files. Is there any way to distribute it in jar like fashion as a single file I can just run python on. I obviously look for platform independent solution. Thx in advance, A.
1
1416
by: PurpleServerMonkey | last post by:
Working on a rather large open source python application that I want to release for Linux and BSD and was wondering what methods others are using to distribute large and complex applications. Setuptools and friends seem to be focused on distributing modules, I'm at the other end of the scale where I want to distribute an entire application so that an Administrator can run a single install and have a fully operational product. A key...
0
892
by: tuvman | last post by:
I just finished writing an activeX in .net. The ActiveX requires that various other COM components be installed before running. We found that IE already has a mechanism for running an installer if an ActiveX is not installed by using the codebase parameter. <object name="secondobj" style='display:none' id='TestActivex' classid='CLSID:A47C22B1-3CC3-45bc-801E-3FCC4FFD3E45' codebase='DownloadDeployer.cab#version=1,0,0,0'> </object>
1
1359
by: developing | last post by:
I am not even sure if I am posting in the right section. I have an activeX control that needs to be distributed over the intenet...how do I go about doing that? google said something about .CAB files...but I couldnt find a link that showed me how and stuff...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10187
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7553
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.