Jump to content

Learning: how to set config in batch?


Recommended Posts

Posted

Hi,

Learning how to do Application installs in my uA using Batch from the guide. I have read the guide and have learnt all about how to specifiy the switches, and can determine what the switches are from this forum.

What I cant find information about is how to setup the silent install, for things such as specifying the information most installs ask for, such as name, org, serial etc. Is there a page with common apps and what prompts they ask for? Or do I need to install and just take notes?

Also a lot of my apps have config files or other files that have my settings that i would need to port over as well during the uA how would i go about finding this information as well?

Thanks


Posted

Hi. :)

If your installer is a Windows Installer Package (.msi), its easy. Because msi's fully support command-line, or you can use an MST, or if you want, you can edit the msi itself.

As for the settings of the program, most settings are stored in the registry, and in the programs configuration files (ini files). Sometimes, the software has files with weird extensions, that can be opened with notepad.

Posted

Another util to download (and install) is 7-zip. It lets you right-click and extract (or try to) ANY file! So you don't have to rename SFX files to .zip or run them and try to find the temp folder before it gets deleted a minute later.

Using that to bust open installers lets you look at what might be copied (not always helpful but a good route).

Also in some of these installers you'll find a nonstandard .CAB file like data1.cab....

To open those up, (and look at .ini and other cool stuff mentioned above, but bound up in that .cab) head on over to http://www.myplc.com/sony/i6comp_howto.htm and grab yourself a copy of "i6comp" Unzip it and (burried in a subfolder) copy "i6comp.exe" and put it in a folder in your "path".

I chose \Windows\System32

Then create a file called "i6.bat" and fill it with the following...

mkdir data
cd data
@echo off
i6comp x ..\data1.cab

Put that in a folder in your path. I chose \Windows

Not sure why I chose those two folders, but they work for me. :unsure:

Then open a command prompt whereever you have one of those nonstandard .CABs, just type i6 and it will (well obvious from above) use the i6comp command and extract data1.cab's contents to the data sub folder.

Note: you might want to have "open command window here" powertoy / reg hack installed. (Very handy for the above procedure).

Using those two tools (7zip and i6comp) has helped me explore installers without actually installing. Also you might want to do some searching for msiexec.exe's command line options (hint: /a) for getting inside of .msi files....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...