how I install a batch script in windows startup? - batch-processing

I have a batch script which upload and download only new files. I converted the script from .bat to .exe, my question:
I don't want to press the .exe every time i want to excute the program, i want to install the .exe like a software in windows and even after booting it will still do the job, like adding it to startup or registry.
How I can install my exe using batch script into windows?.
Thanks.

You don't really need a batch script. You can place a shortcut (w/params) in the Windows "Startup" folder. See http://www.ehow.com/how_6148318_change-windows-startup-folder.html on how to find and place stuff in your startup folder.

Related

How to automate installation process of any windows software application

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.

Is there an alternative for Autorun.inf for a CD or DVD in Windows 7/8/8.1/10? I can't make it work in Win10

Most of what I have found on this topic is really for Autorun.inf files for USB sticks.
Many folks say that feature was dropped for USB sticks when Win7 and later versions of Windows came along but it was kept for CDs and DVDs.
I have used the standard Autorun.inf code that I could find in several places on the Internet, but it does not work for the CDs that I have burned.
I can open a disk and look at the files on the disk and click on my .exe file and it launches and runs fine.
My Autorun.inf file just will not execute it when the CD is first loaded and run on my computer which is running Win10.
Is anyone still successful with running Autorun.inf files on CDs or DVDs on computers with Windows 7/8/8.1/10?
If so, how is the Autorun.inf file configured?
All I want to do is launch a .exe file that is in the root directory of the CD or DVD.
Is it required to have the line of code to specify where the icon can be found?
I am including that code but I wonder if it is required as well.

Trying to create standalone Sikuli application

I want to be able to distribute my Sikuli script and allow the end user to run the script without installing Sikuli, my only problem at this point is not knowing what dependencies Sikuli needs to run (besides JAVA). With this knowledge I simply want to create a zip file for my user's machines that they can unzip into a folder and run the script.
Assuming you are using SikuliX as a command line script and not the IDE(IDE should probably work same way too. but I have not much experience with it) , you can simply copy the whole SikuliX folder to another PC and it will usually work straight away. As you mentioned yourself, the only requirement is Java.

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.

How to require / add a dependency to Mono with PackageMaker or MonoMac?

I'm building an application which is made of four .app packages: a launcher, a client, a server manager and a runtime.
The launcher's .app is distributed in a .pkg file generated by MonoMac's packaging option. The other .app files are downloaded/auto-updated as ZIP by the launcher.
Bundling a copy of Mono within every single one of those .app files would be a waste of bandwidth / diskspace, but even more than that, I have a Mono server .exe file which is cross-platform and as such doesn't come in an .app bundle nor should pack any platform-specific DLLs. So bundling a private copy of Mono isn't an option.
Is there a way for me to create a .pkg file which has a dependency/requirement on a globally-installed Mono?
I see PackageMaker has a Requirements pane which can run scripts but I have no idea how to properly check whether Mono has been installed without relying on some hardcoded paths and stuff like that.
I'd like to have the installer check whether Mono is installed and if it isn't, install it (or, failing that, display a message with a link to the Mono website for instance).
I ended up switching to Packages which is a pretty neat tool.
I added a pre-install requirement of type "Shell script returns true". My shell script just checks for the "mono" executable using the "which" command:
#!/bin/bash
which mono
$(exit $?)
When the script returns false, I configured Packages to spit out an informative error message with a link to download Mono (for lack of a way to trigger download / installation of Mono).