Install4j - How can I install the MSVC++ Redistributable Binary if needed? - install4j

I'm wondering if there's some way to use my install4j utility to handle installing the MSVC++ redistributable libraries if they are not already on the client machine?
Is there anyone who has an example of how they did that to save me from re-inventing the wheel?

You can use the "Run executable or batch file" action to run an external installer.
Most installers have an "unattended" mode that does not require user interaction. Activating unattended mode for the MSVC++ redistributable package varies from version to version, for 2010/2012 and 2013 the required arguments are
/passive /norestart
For 2015, the arguments are
/install /passive /norestart
In the editor of the "Arguments" property, make sure to put each argument on a new line.

Related

Is it possible to select the architecture of an execute in Command Prompt?

I have SweetHome 3D.exe that include both x86 and x64 in the same installer.
During the process you have a place where you can select which architecture you want x86 or x64.
My problem came in silent mode where it doesn't ask and install x86 by default. Does anybody have an idea which command I need to add to be in x64. This is working, but it miss me the architecture selection option to add:
sweethome3d.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /LANG=french

Installing any exe without having manual intervention using powershell

How could i install any ".exe" without having any user action, means wherever the user interaction needed it should continue with the default selection (eg: license agreement) using powershell
any reference or links will help
[Discussed Below: Mostly wanted to install visual studio and visual studio related update]
If you are talking about Visual studio, and Microsoft product in general, you should look for unattended installation for example : How to: Create and Run an Unattended Installation of Visual Studio.
For Visual Studio below command works:
Start-Process -FilePath "C:\Installs\VS2013\vspremium.exe" -ArgumentList "/adminfile C:\Installs\VS2013\AdminDeployment.xml /passive /norestart" -Wait -NoNewWindow -PassThru
Also in the AdminDeployment.xml file you can make NoWeb="yes", it works otherwise as well.
<BundleCustomizations TargetDir="default" NoWeb="yes"/>

Silent MSI Popup

I am running a silent install of an msi driver install, at the end it has a popup that requires the user to hit "OK". I am unable to see this during silent mode or passive mode, is there a way in powershell that I can execute this and force it to pass-through? Anyway to hit "ok" to this without showing the user it is running will be the best option.
PowerShell simply invokes the installation process. The Windows Installer service is responsible for interpreting the MSI file and handling installation correctly. If Windows Installer is preventing the window from being displayed, then PowerShell won't be able to see it either.
Make sure you're calling msiexec.exe correctly:
msiexec /i <path to MSI> /q /l*v "$env:TEMP\install.log"
That runs it quietly (use /qb for just a simple, passive dialog-based install). If it still pops up a dialog, you need to contact the owner of the MSI package and have them fix it. They're breaking the Windows Installer guidelines and there's really no good workaround for it.

How to Create an MSI which runs in passive mode using WIX?

How can I create an MSI using WIX that can run in passive mode?
If I double click on the msi it should launch in passive mode. This should be equivalent of running MSI package with /passive or /qb!- command line option. This is required to start the MSI installation from another application.
Is there any way of embedding command line options into MSI package?
Please post ideas that would help?
Just don't use UIRef to include any UI: If the .msi package doesn't have dialogs in it, MSI will run it with basic UI (the equivalent of /qb-).

Running MSI installers silently

I am having 3 files -
Alky for Applications.msi ( which make Vista Apps work on XP)
Windows VIsta sidebar.exe ( Which make that VIsta sidebar work on XP)
3.Gadget Extractor.msi ( A part of number 2)
I just want to have all the setups installed by just instlaling one. One of my freind told me that the MSI packages may be silently installed using /qb switch
the .exe I got there is NSIS setup which may be silently installed using /S switch.
SO I am a total n00b in software developing ,so pls suggest me what to do
The simplest solution is to create a batch file and put these commands in it to launch the installers:
msiexec /i "C:\Users\ZippyV\Desktop\Alky for Applications.msi" /quiet
"C:\Users\ZippyV\Desktop\Windows VIsta sidebar.exe" /s
msiexec /i "C:\Users\ZippyV\Desktop\Gadget Extractor.msi" /quiet
Change the extension of the batch file to .cmd and put all the files in the same directory.
EDIT: make sure to specify the full path to your installers and use quotes around them. To run the file, just click it.