I am writing an Inno setup kit where I need to install various updates like Service Pack 3 for XP, DotNet Framework 4 and etc.
My problem is I want to make a generic kit which will take any exe and run it in silent mode i.e. unattended installation. I am aware of different flags that will do these for e.g. for SP3 /quiet and for DotNet framework /q. I would like to know how can I make my inno setup kit a generic one so that whatever exe I pass, it should install it in silent mode.
Related
I want to run a c++ application written in vs2017 in Ubuntu 16.04. I've installed Wine version 3.0.3 as well as Winetricks version 20140817. When trying to run the application using 'wine app_name.exe' command, i get an error saying
002e:err:module:import_dll Library mfc140u.dll (which is needed by L"path_to_my_application_library") not found
I tried to install mfc140u via Winetrichs GUI using 'Install a Windows DLL or component' option but it seems not to be listed anywhere on the list of the available packages. Does anyone know how to make it available?
Make sure you are using the most up-to-date version of Wine (currently Wine 4). You can check by running:
wine --version
If you need to upgrade Wine, check out the instructions here.
That dll is a part of Visual C++ redistributable. You'll need to install it so the application will work. Instructions are here.
I don't use Wine, so there could be additional steps, but in the interest of helping:
I believe you need the appropriate version of the VC++ redistributable (Visual Studio C++ runtime). You need to install the version that the application you try to run was compiled with. Just start with the latest one and install and then install older versions if need be. MSDN Forums.
Download
vc_redist.x64.exe
from
https://www.microsoft.com/en-us/download/details.aspx?id=48145
from console run
wine uninstaller
uninstall any existing runtime version, then select "install" and browse for the vc_redist.x64.exe file, accept. Execute your Windows appplication
I am installing .Net framework 4.6 as prerequisite using installshield.
After it is installed it restarts the system. I want to avoid the restart.
How can I achieve this ?
I used Note it, fail to resume if the machine is rebooted, and reboot after the installation from Behavior Tab under installshield.
you can remove the return value from the Application to run Tab and be sure to specify the /norestart parameter on the command line.
that way your installer should not be able to detect if a reboot is required.
I have a prepackaged NSIS installer exe which I want to make fully silent or an unattended installer. I used switches like : /S and /NCRC /S but still when I run it, still windows show up asking to click NEXT ACCEPT ....
Is there any other solution for this?
Please help I'm new and just want to have an unattended installer from that prepackaged software.
Passing the /S switch (CASE sensitive!) is not enough: you need to write the installer to be really silent.
Do you have sources (scripts) for your installer? What you need is to
Detect silent mode (IfSilent)
Update MessageBox with /SD parameter to let installer know what button to 'click' in silent mode
Solve your Sections
Check this example and made appropriate changes: http://nsis.sourceforge.net/Examples/silent.nsi
I have written windows service in VC++ that download files from server as per received file list in XML. File list contains 1) .net framework setup .exe package name 2) msi package name.
Requirement is to install these files in background, here I could perform silent installation for .msi package using msiexec and CreateProcess but for .exe package (ie. for .net framework installer) I can't do it using CreateProcess in background. How I can perform .exe installation in background within windows service application.
Most exe installs allow a silent installation, but have own and different parameters. You have to read their documentation and/or google.
Every .NET framework has slightly different parameters, but some work with "/q /norestart" for example.
E.g. google for "Aaron Stebner's WebLog".
My Windows application runs under Wine, but the installation is a bit of a headache for laymen, and the wrappers I've seen online (PlayOnLinux, Wine Doors) require even more packages to be installed. Is there a way to make a package that will install Wine if the user needs it to be installed, install the application and shortcuts, all with minimal user hassle?
I don't believe there's any pre-made way to do this, but you could probably make a Debian package pretty easily that would depend on Wine, copy an MSI onto the machine, then run Wine's msiexec /i /q as the post-install script
Edit: Make sure to think about the uninstall case too! I.e. in the pre-uninstall script, run msiexec again as well.
You can bundle Wine -- that's what Picasa does -- or you can just make your package list Wine as a dependency; then the user's package manager will automatically install Wine for the user when they install your package.
Ideally your Linux package wouldn't run the Windows installer, but rather have all the files already unpacked.
The trick is to arrange for the files your package installs in /usr to show up in each user's .wine directory. You can look at how Picasa does this, but really the Wine community needs to document how to do this much better.
As always, ask at winehq.org if you need more info.
If you'd like to target the Mac OS, you can use WineBottler:
http://winebottler.kronenberg.org/
This project exists just for bundling Wine into a native Mac .app bundle in a way that's fairly hidden from the user.
Answer is simple:
Create Elf installer.
Pack Elf installer onto Exe installer resources.
Exe installer should unpack Elf installer on startup.
Exe installer must tries to run Elf installer after unpack (system call or some think).
If operation fail, we do normal install.
If operation didn't fail, we close Exe installer.