Open Services panel

From ISXKB

Revision as of 22:43, 7 November 2007 by Markus (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

Introduction

Sometimes an installer would like to provide an option to open the Windows Services panel as a post-installation step.

On Windows 2000 and later this can be done easily. It is enough to just open the file 'services.msc'. To open the file it can be "run" with the 'shellexec' flag.

The script

A line like

Filename: {sys}\services.msc; WorkingDir: {sys}; Flags: shellexec postinstall; Description: Open the Services panel

in a [Run] section will do the trick.

Example

[Run]
Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall skipifsilent
Filename: {sys}\services.msc; WorkingDir: {sys}; Flags: shellexec postinstall; Description: Open the Services panel

This opens the Windows Services panel (example taken from Windows XP).

Restrictions

The Windows Services panel of Windows NT is implemented in a different way. The file 'services.msc' does not exist on operating systems before Windows 2000, hence this solution only works on Windows 2000 and newer.

Personal tools
Ads: