How to automate installation process of any windows software application - automation

I want to automate the installation process of any windows .exe/application software.
For example: I have "npp.7.Installer.x64" .exe file and I want to install this .exe/application through any scripting or tool instead of manual process.
I had tried with "AutoIT" tool but I am unable to achieve the results.
Please suggest me a appropriate way. Thanks in advance.

I have write code in python command line with administration permission and write below lines:
app = Application().start(r"D:\npp.7.Installer.x64.exe")
Above code successfully pop the Installation window of notepad.

Related

Add-On Registration (ARD +Zip) files in SAP B1 through automation (DevOps)

I want to know about can we do Add-On Registration (ARD + Zip) files through automation or using DevOps Tools.
If you have any method then let me know or refer to an article.
The SDK tool for packaging lightweight add-ons can be run from the command line to produce an ARD+Zip (the same tool that can be run in GUI mode). Note however that if you have files in sub-folders, for some reason when run from the command line these don't get included in the zip (seems to be a bug).

Adding software setup to installer

I'm writing an installer for an application. Most of the installer is done and working, but I have on more step outstanding. I need some way to add a setup window to the installer, that will take user input like server address and port, etc. and write these to the relevant files for system start-up. This preferably done through a GUI of sorts inside the installer.
I've tried creating an executable file that runs after installation, but this does not always execute on different systems.
Is there a way to add a GUI to the installer itself that executes after the directory structures and files have been put into place?
Thanks in advance.
In general you should seriously consider doing this as a standalone app that runs when the app first runs and needs configuring. Then it's a program that runs in a user context and can be tested and debugged in the normal way. At least consider what the user is going to do if they want to change the server address or the port - will they need to uninstall your app and reinstall it just to change the server details or the port?
The GUI may not run correctly when started from the install for a number of reasons. It may be initiated with the system account if it's a deferred CA. It wasn't started from the interactive user shell, so it probably won't have any idea of a working directory. It's being run from an msiexec.exe process running in the system directory and maybe with a system account - that's not really the place to be doing your GUI configuration.
I assume you're using WiX, it doesn't say so in your question but it's tagged with WiX.
I would have a read of http://wix.tramontana.co.hu/tutorial/user-interface-revisited (or http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-dlgs-in-wix-3/ has a relatively easy to read example), you can add or edit any of the dialogue boxes in the installer, you'll need to download the source to get at the built in dialog, and it does require some "play" to get everything quite right but worth it to get a professional looking installer.

automate the loadui

I am using Windows OS. I went through the loadui website to understand the automation process. As I am very new with this software, I cant even understand how to run certain command. For example, there is command like this "loadUI-Agent-1_5_0.exe -c" need to be run in command line.
I try to paste it in command prompt, but it is not recognized. Anybody have any idea how to do that? It is very good if you guys can provide me link to learn from zero, where I can follow step by step to automate the load testing using loadui.
Thanks
You have to use loadui-cmd.bat, which can be found in the LoadUI installation directory.
You should also use the latest version of LoadUI which is 2.1.1.
Source: Getting Started with Automation from the LoadUI documentation.

How to attach to WWAHOST from Visual Studio 11

If I F5 a Windows 8 JavaScript app and look at the processes pane in VS11, I see that it's WWAHOST.exe that I'm attached to. Is it possible to attach to this after the fact using Debug | Attach to Process? I don't see it in the process list even when I show processes from all users. I see the same thing whether I run locally or in the Simulator. Thanks.
There are effectively two ways to do this. Delay starting the app and attaching the app. You will need to install the remote debugger from Microsoft. As of this writing, it is located on http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=28973
Detailed steps plus explanations are here.
Summary:
Install VS remote tools
On start menu, launch "Debuggable Package Manager" (powershell will start)
using powershell: get-appxpackage (to locate your package)
using powershell: enable-appxdebug PackageFullName
Launch application
Attach to the correct wwahost.exe for your application.
Debugging Topics Located here.

Installshield Run EXE then wait for completion before running another

I am using Installshield, and have had success in launching my exe install files (such as KLite) after all my files have transferred to their target destination.
My question is this:
I am currently able to launch all the install exe's necessary, but they all launch at the same time, which can be rather annoying and cluttering. I am using a "Custom Action" to launch each executable. I am trying different "In-Script Execution" properties to no avail. My "Return Processing" is set to Asynchronous(Waits for exit code), yet it still is giving me problems.
I'd like to have each one execute once the previous is completed.
Anyone have experience in this? It has to be possible...
Thanks,
-Kyle
You want Sync not ASync. BTW, I don't reccomend EXE CA's except in the rarest of situations. Primarily because they are out of process with very limited ability to report back success and 0 ability to write back to the Windows Installer Log and have very unprofessional flashing of DOS CMD windows.
Always try to use C++ / C# custom actions instead.
Also be sure to read the following:
Integration Hurdles for EXE Custom Actions
http://blogs.msdn.com/b/windows_installer_team/archive/2007/10/20/integration-hurdles-for-exe-custom-actions.aspx
If you must use an EXE be sure to use something like WiX QuiteCA ( you can wrap this up into a WiX merge module and consume it with your InstallShield Basic MSI project ) to help shield you from these problems and get improved logging.