How can I install a Firefox addon via nsis installer?
When I call Firefox with the .xpi extension it doesn't work and xpi extensions are not associated with Firefox either.
If I drop it to "C:\Program Files\Mozilla Firefox\extensions" then it tries to install every single time a user opened the Firefox. Never deletes the original xpi (potentially due to the Vista UAC)
Before Firefox 3.6 you could use the -install-global-extension parameter to install an extension. However it was removed in Gecko 1.9.2. Possibly the best method to install extensions now is to create a registry entry as outlined in the Adding Extensions using the Windows Registry page.
By using the correct command line parameter :)
firefox -install-global-extension c:\extension.xpi
Refer documentation
Related
I am working on some automation with a set of VMs. I need to use a particular template but must change the version of chrome installed on that template from automation.
So I must uninstall Chrome from the command line or a script.
Situation info:
I am trying to uninstall chrome version 75.0.3770.80
wmic does not have chrome as an installed program
Control Panel\Programs\Programs and Features does list chrome as an installed software and I can correctly uninstall it from here but only through a GUI
It is not listed in the registry under HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall
It is not listed in the registry under HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Windows/CurrentVersion/Uninstall
The executable is in C:\Users\Administrator\AppData\Local\Google\Chrome...
the installed setup.exe is also in C:\Users\Administrator\AppData\Local\Google\Chrome\Application\75.0.3770.80\Installer
Problems:
I can't use the setup.exe installer in this location because I can not find a way of running it silently. (It has a pop up asking if you want to delete browsing data)
Deleting the executable will not remove chrome as an installed program and will not work for me
I can not find where chrome is listed in the registry and am not sure how to search for it in regedit
Any ideas of how I can uninstall this chrome version?
I simply wish to install Visual Studio 2017 to compile a project.
Trying to install via the installer obtained from Microsoft fails after being unable to obtain the .opc file from aka.ms (found that after checking logs in %Temp%)
Moved to a full install version with all files and .opc file present. Installer still attempts to download from the web. Fails saying it is unable to download.
Tried running installed with --layout pointing toward the location of the offline files, same error.
Installed certificates from the certificates folder both in Personal and Trusted Root stores, no difference.
Tried starting CNG Key Isolation service, fails with error 1053
Microsoft support transferred me three times before saying the problem is on their end, so how, if one were to have no internet connection and evidently has all files required for install available, install this, if the installer stubbornly attempts to download from the web?
Is there a KB I am missing or some procedure I have to follow with the full installers?
In my case it is the network firewall blocking the downloading because the downloading involve not only main Microsoft visual studio site which is allowed in our network but also some url like https://aka.ms which is blocked by our firewall.the error is listed in c:\users\myusername\appdata\local\temp\dd_bootstrapper_xxx.log
It appears from what you have submitted you are attempting to download a offline copy of Visual Studio. It also appears that you are attempting to run the file originally downloaded to create the bootstrapper for the installation.
You want to instead launch the setup executable which is actually in the layout folder.
Hope this helps. ^^
Appears the cause for this was the service disclosure debug, disabling the debug, binding all services back into the svchost and after rebooting the service is working again. I have been able to install VS now.
I'm facing a typical Microsoft bug whereby I am unable to install Windows Azure Active Directory Module Found here Windows Azure AD for Powershell
Background:
I am Running Windows 7 with Service Pack 1.
Powershell 4.0 is currently installed.
Microsoft.Net Framework 3.5.1 is checked under programs and Features
Microsoft Online Services Sign-in Assistant Both Beta and non Beta versions were installed..PC rebooted and no luck with either of them.
I have read many posts online and none of them appeared to have helped.
Does anyone know how to overcome this annoying bug.
http://blogs.technet.com/b/tune_in_to_windows_intune/archive/2013/11/09/error-when-trying-to-install-windows-azure-active-directory-module-for-windows-powershell.aspx
http://social.msdn.microsoft.com/Forums/windowsazure/en-US/aef5669a-bc46-4c7a-9cbd-d0ed781e5190/waad-wont-install-says-signin-assistant-needs-to-be-installed-but-it-already-is?forum=WindowsAzureAD
I finally found a solution to this from Erik who posted on this site.
http://blogs.technet.com/b/tune_in_to_windows_intune/archive/2013/11/09/error-when-trying-to-install-windows-azure-active-directory-module-for-windows-powershell.aspx
Run the command prompt as an administrator by holding shift + right click on the command prompt icon, then Run as administrator.
At the command prompt
Change directories to where you AdministrationConfig-En.msi is installed.
In the command prompt type: msiexec /i AdministrationConfig-EN.msi
It will now install without the powershell warning.
Erik's commentary is that the powershell settings are only readable when privileges are elevated.
The beta version of the sign-in assistant which also needs to be installed prior to the Administrationconfig didn't help me but have helped others.
It was definitely a long and painful process.
There is a new beta version for the sign in assistant. Look up the new beta version and it will work. Just went through this about a week ago.
A String Value is "missing" in the registry. There are two potential locations in the Windows registry where PowerShell versions are stored, depending on what version or versions you have installed or possibly installed in the past.
Older version location, including Version 1.0 and 2.0:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1
Later versions location, including 5.0 and others:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3
Each location has a sub-key called PowerShellEngine that contains a string value called PowerShellVersion.
If this value is missing in the first key mentioned above, you will receive the installation error because the installer does not look the in the second key mentioned above for the PS version.
If the value is missing, simply add it with the data of 2.0
Now installation of the AADRM will work assuming you have PS 2.0 or later installed and assuming you are using the installer version 2.50 or later of the AADRM, which does not require the sign-in assistant to be installed.
2 files required for the MS DHTML control to work properly were removed from windows vista (and win7, 8 presumably) for security reasons.
These are the DHTMLED.ocx and TRIEdit.dll.
Microsoft now supply a downloadable msi file, dhtmled.msi, which will install and register the 2 components into the following directory:
%windir%\Program Files\Common Files\Microsoft Shared\dhtmled\
I would like to build this into an inno script.
Should I run the installer on my machine first to get hold of the ocx and dll files and have separate lines for each in the inno script or should I incorporate the msi file into the script?
Also what flags should I use to prevent installation on win xp or earlier and when the files are already present?
Thanks
See Replacing the DHTML Editing Control in Windows Vista and Beyond
For new applications, you can ship the installer as part of your product (with appropriate licensing) and chain to it from your own installer. The installer can be run silently and without adding an item to the installed-programs list in Windows. (For details, see the documentation for MsiExec.exe.)
However, we recommend that the installer allow the DHTML Editing Control to be added to the installed-programs list. In addition, when your application is uninstalled, do not uninstall the control; instead, allow customers to uninstall it separately if they want.
Note that this method of installation does not provide logo-compliant installation.
The method that is compliant would be to list this as a prerequisite that the user manually installs before running your installer.
I haven't seen anything the permits redistribution of the naked libraries under any circumstances.
I have been looking to develop an installer that installs my extension through Inno Setup. I want to launch the Adobe Extension Manager as a post install process in the [Run] section of the Inno Setup install process. Now, there can be multiple versions of Extension Manager installed on a machine, the latest version of Extension Manager is launched by default. I want to make sure that the product version chosen by the user during installation launches the corresponding Extension Manager. Eg., if a machine has Photoshop CS5, CS6 installed, and the user chooses Photoshop CS5, then the Extension Manager CS5 should be launched. For this I want the path to the application. I am unable to get the Extension Manager path from the registry.
Problem solved!
I was able to get the path of Extension Manager by the following,
RegQueryStringValue(HKCR, 'Applications\Adobe Extension Manager CS5.exe\shell\open\command', '', path);
where path is the output string.
Thanks!