Jump to content
Sign in to follow this  
bpollina

Scripted install?

Recommended Posts

Hi!

We like this so much that we've added it to our standard install suite for home users' machines we work on.

Is there a way to script the install so we can create a batch file or something we can put in the registry under RUNONCE that would automate the install?

Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Guest thirsch

Installer is Inno based setup.

You may probably safe a inf-file with option "setup.exe /SAVEINF="c:\cdburnerxp.inf" and later use this inf-file with /VERYSILENT /LOADINF= for silent install.

I prefer to install with mor options, this for example is my install string:

/SILENT /NORESTART /GROUP="Tools (CDRW)" /COMPONENTS="main,nmsaccess,lang,lang\france,lang\germany" /TASKS="desktopicon\common,!desktopicon\user,fileassoc"

Here is some more info about inno setup params, that my be of value for you:

This is an Inno Setup installer.

--> home site for mor info: < http://www.jrsoftware.org/isinfo.php >

(you may unpack an investigate with innounp.exe

--> home site for mor info: < http://innounp.sourceforge.net/ >

Silent switches are: /SILENT or /VERYSILENT

Additional switches are:

/SP-

Disables the "This will install... Do you wish to continue?" prompt at the beginning of Setup.

/SUPPRESSMSGBOXES

Instructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' and '/VERYSILENT'.

/LOG

Causes Setup to create a log file in the user's TEMP directory detailing file installation and [Run] actions taken during the installation process.

/LOG="filename"

Same as /LOG, except it allows you to specify a fixed path/filename to use for the log file.

/NOCANCEL

Prevents the user from cancelling during the installation process.

/NORESTART

Instructs Setup not to reboot even if it's necessary.

/SAVEINF="filename"

Instructs Setup to save installation settings to the specified file.

/LOADINF="filename"

Instructs Setup to load the settings from the specified file after having checked the command line.

/DIR="x:\dirname"

Overrides the default directory name displayed on the Select Destination Location wizard page.

/GROUP="folder name "

Overrides the default folder name displayed on the Select Start Menu Folder wizard page.

If the [setup] section directive DisableProgramGroupPage was set to yes, this command line parameter is ignored.

/NOICONS

Instructs Setup to initially check the Don't create any icons check box on the Select Start Menu Folder wizard page.

/COMPONENTS="comma separated list of component names"

Overrides the default components settings.

See Components line in Uninstall info in registry after install to get an idea of valid component strings

as they are often undocumented

/TASKS="comma separated list of task names "

Specifies a list of tasks that should be initially selected or deselected.

To deselect a task, prefix its name with a "!" character.

Only the specified tasks (and their children) will be selected; the rest will be deselected.

Use the /MERGETASKS parameter instead if you want to keep the default set of tasks and only select/deselect some of them.

Examples:

Deselect all tasks, then select the "desktopicon" and "fileassoc" tasks:

/TASKS="desktopicon,fileassoc"

Deselect all tasks, then select a parent task item, but exclude one of its children:

/TASKS="parent,!parent\child"

Available Tasks: -> try to find out by inspecting UninstallString or use UniversalExtractor

/MERGETASKS="comma separated list of task names "

Like the /TASKS parameter, except the specified tasks will be merged with the set of tasks

that would have otherwise been selected by default.

See Components/Task line in Uninstall info in registry after install to get an idea of valid component strings

as they are often undocumented

have fun

Thomas

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.