prajaktamoghe / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
1 stars 0 forks source link

Silent install just for runtime use #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system : Win 7, x64
.Net Framework version : 4.5
Office Version : 2007
SeleniumWrapper version : 1.0.23 (latest at this time)

What is your issue ?
We use MSAccess as a CRM-tool. Several users share the same version.
In some cases we need to transfer data from access to a website. Here Selenium 
has worked perfectly for me while testing this.

Now I want to deploy this to all my 50 users.
But to make a complete installation incl the Firefox IDE on 50 computers is 
impossible for me to do.
So what I would like to do is use Selenium on my client computers, with as 
little installation as possible.
I can think of the following ways, feel free to suggest somehting completely 
different if you have a better solution:

1. Best case. Place all nescessary Seleniumfiles on a network share. Possibly 
register some DLLs or something, and in VBA reference to this particualar 
Selenium instance.

2. If install is nescessary: Install wihout Firefox IDE. I can deploy a silent 
installation to my computers, but I do not want the Firefox IDE-addon installed 
for them.
From what Ive read my only option to do this is to first uninstall Firefox, 
then install Selenium and then reinstall Firefox..

There has to be a simpler solution.

Please help :(

Original issue reported on code.google.com by tjo...@gmail.com on 8 Dec 2014 at 10:05

GoogleCodeExporter commented 8 years ago
The setup has to be executed to register the .net library using regasm.exe from 
the .net framework. Simply adding the path of the dll in VBA reference won't 
work.

For your second solution, the plugin is installed if this key is present in the 
registry:
HKLM\SOFTWARE\Mozilla\Mozilla Firefox\...\Main\PathToExe
So a workaround would be to rename the "Mozilla Firefox" and then restore the 
name after the installation.

Anyway I changed the default behaviour in the next release(1.0.24).
The plugin will no longer be installed in silent mode 
(SeleniumWrapperSetup-1.0.24.0.exe /silent).
It makes more sense as the installation of the plugin requires the user to 
validate it in Firefox.

Original comment by florentbr on 8 Dec 2014 at 6:30