How do you install Firefox XPI plugin programmatically in Windows 8? - windows-8

I have created an NSIS installer to install a USB fingerprint reader software and associated Firefox plugin.
I can install the Firefox XPI plugin I created in WinXP and win7 64 and 32 respectively like this:
WriteRegStr HKLM SOFTWARE\Wow6432Node\Mozilla\Firefox\Extensions "PSK_plugin#companyname.com" "$INSTDIR\psk.xpi"
WriteRegStr HKLM Software\Mozilla\Firefox\Extensions "PSK_plugin#companyname.com" "$INSTDIR\psk.xpi"
However, the above doesn't work in Windows 8.
Here is the Mozilla link where I discovered the above registry keys. It doesn't include one for Windows 8: https://developer.mozilla.org/en-US/docs/Adding_Extensions_using_the_Windows_Registry

Related

How to automatically uninstall DirectX 9?

I am putting together a WiX installer that includes silently installing DirectX 9:
dxsetup.exe /silent
How do I tell WiX how to un-install DirectX? Is there another switch on the command line?
I need to be able to configure the installer to un-install DirectX automatically, else users complain if they can't uninstall.
For the DirectX End-User Runtime (aka DirectSetup or DXSETUP), it has long been recommended that you don't even try to uninstall it.
In any case, on most versions of Windows you can't 'uninstall' DirectX and running DXSETUP doesn't actually "Install DirectX" either as it's built into the OS. It can only be updated by installing a new version of the OS, installing a Service Pack, or applying a Windows Update. This applies to all versions of Windows starting with Windows XP Service Pack 2, Windows Server 2003 Service Pack 1, and Windows XP x64 Edition.
DXSETUP is still useful for deploying stuff like legacy D3DX9, D3DX10, D3DX11, XACTEngine, XAudio 2.7, XInput 1.3, D3DCompile #43 or earlier, etc. It just doesn't ever install "DirectX".
See No So Direct Setup. If after reading this article you still think you need to run DXSETUP as part of your deployment, you should pick up the latest version of DXSETUP to avoid some potential issues, and trim it down to just those CABs you actually use in your application.

Enable offline 'NetFx3' feature in Windows 8.1 OS

I am creating a installer with 'Windows 8.1' OS for my applications. I am using MSBUILD. By default 'Windows 8.1' OS contains .NET framework 4.5. But I need .NET framework 3.5 to run my applications.
First I install Windows OS using WinPE and then my applications on Windows - without user interfere.
I tried to enable 'NetFx3' feature (adding 'selection name="NetFx3" state="true"' in answer file) in windows image using Window SIM but as per Microsoft website it needs internet connection. I tried and it fails.
After windows install if I run DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs then it works fine on offline computer.
My other option is to run batch file with this command after windows install.
But I will prefer to install .NET framework through windows install. So my question is, how to make 'NetFx3' feature enabled in ISO itself (without internet connection), so that .NET framework 3.5 get installed during windows installation?
Thank you!
After some trial and errors, I found the solution -
First I mounted iso file in Build\WindowsMount directory.
Remember to use latest dism 6.3.x from Windows 8.1 ADK.
An finally enable feature using this command dism /image:Build\WindowsMount /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:Source\Windows\sxs
And finally save image.
Try followings
Add NET Framework 3.5 Features from "Windows Feature" in control panel
Run following command in command prompt as Administrator
dism /online /enable-feature /featurename:NetFx3
/source:d:\sources\sxs
Then try re-installing the sql again. It works for me. Check here more detail article

Win and Mac installers from Win

Is it possible to create installers for both Windows and Mac from Windows?
Will the *.air file and/or the *.fla be read in Mac if created in Windows?
.air installers will work on any desktop platform that has AIR installed (AIR is supported for sure on Mac and Windows). So you can create on one platform and run on all. The FLA is your project file and is not actually your application.
You can also create an exe installer using Windows or a .app file using OS X. These do not require that AIR be installed, I believe. However, you may not create an exe on OS X or a .app on Windows.

redistributable offline .NET Framework 3.5 installer for Windows 8

Our company was testing our product (compiled for .NET Framework 3.5) on Windows 8. We have discovered that there is no .NET Framework 3.5 on Windows 8 and there are two possibilities to resolve this issue:
online installation
install from Windows 8 installation DVD or ISO
But, we need to have redistributable offline installer for everyone without internet and without Windows installation DVD.
Is there a way how to resolve this issue?
Thanks.
UPDATE:
This should apply to Windows 10 as well.
Try this command:
Dism.exe /online /enable-feature /featurename:NetFX3 /Source:I:\Sources\sxs /LimitAccess
I: partition of your Windows DVD.
Looks like you need the package from the installation media if you're you're offline (located at D:\sources\sxs) You could copy this to each machine that you require .NET 3.5 on (so technically you only need the installation media once to get the package) and get each machine to run the command:
Dism.exe /online /enable-feature /featurename:NetFX3 /All
/Source:c:\dotnet35 /LimitAccess
There's a guide on MSDN.
After several month without real solution for this problem, I suppose that the best solution is to upgrade the application to .NET framework 4.0, which is supported by Windows 8, Windows 10 and Windows 2012 Server by default and it is still available as offline installation for Windows XP.
You don't have to copy everything to C:\dotnet35. Usually all the files are already copied to the folder C:\Windows\WinSxS. Then the command becomes (assuming Windows was installed to C:):
"Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:C:\Windows\WinSxS /LimitAccess"
If not you can also point the command to the DVD directly. Then the command becomes (assuming DVD is mounted to D:):
"Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess".
Microsoft .NET framework 3.5 can be installed on windows 10 without having installation media. The file you need is called microsoft-windows-netfx3-ondemand-package.cab. Just google it and you will get the download links.
After downloading it, copy that file to C:\dotnet35 and run the following command.
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:c:\dotnet35 /LimitAccess
Tested and worked in Windows 10 without any issue.

LUA patching an application not installed from 'removable media' (XP)

There is a limitation with LUA (non-administrative) patching an application on XP when the original installation was not done from removable media (when using Windows Installer 3). This limitation has apparently been removed in Windows Installer 4
For such an installed application, would upgrading Windows Installer to v4 permit me to LUA-patch the application? Or does the fact that the app was originally installed using Installer v3 limit me?