Use following script to set default printer
On Error Resume Next
Const HKCU = &H80000001
dim osh, var
dim regval, Sh, keyname
Dim objReg
Dim strcomputer
strcomputer="."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Windows"
objReg.EnumValues HKCU, strKeyPath, arrSubKeys, arTypes
var="0"
For Each subkey In arrSubKeys
keyname = strkeypath & "\" & subkey
if (keyname = strkeypath & "\" & "Device") then
var="1"
end If
Next
if var="0" then
objReg.SetStringValue HKCU, strKeyPath, "Device", "FACSys Fax Printer,winspool,Ne00:"
end if
Set oSH = nothing
Tuesday, 19 June 2012
Application Packaging Training - July 2012 Batch
Application Packaging Training new batch is scheduled to start on 30th June 2012. For further visit www.apprepack.in or contact me on Arjun@Apprepack.in
Application Packaging Training - July 2012 Batch
New batch of Application Packaging Training starting from 30th June 2012.
Duration: 1 Month
Interested candidates can visit www.apprepack.in for more information or email us on contact@apprepack.in
-> We also deliver training on Microsoft App-V, SCCM 2007, AdminStudio, Installshield, Wise Package Studio
Sunday, 17 June 2012
MSI -Installation Procedure Tables Group
The tables in the Installation Procedure group control tasks performed during the installation by standard actions and custom actions.
Some of the tables in this group control a high level action by providing a sequence of actions. Each of the following sequence tables controls a portion of a high level action.
- The InstallUISequence table
- The InstallExecuteSequence table
- The AdminUISequence table
- The AdminExecuteSequence table
- The AdvtUISequence table
- The AdvtExecuteSequence table
MSI - Program Information Tables Group
The Program Information Tables group contain important information that used throughout the installation.
- The Property table provides a means to specify all of the
properties of an installation.
- The Binary table holds the binary data for items such as bitmaps,
animations, and icons. The binary table is also used to store data for
custom actions. This table can contain a bitmap for a billboard, the icon
for your program, or the executable form of a custom action.
- The Error table is used to look up error message formatting
templates when processing errors with an error code set. This is for the
usual case where there is no formatting template set. The installer has
its own error processing mechanism. Errors are passed as records.
- Shortcut table the shortcut table holds the information the
application needs to create Shortcuts on the user's computer.
- The ReserveCost table contains the disk space necessary for each component to work properly.
MSI - Locator Tables Group
The Locator Tables group is used to locate files and applications. To search for a file, first determine the file signature and then locate the file. The Locator tables are used to search the registry, installer configuration data, directory tree, or .ini files for the unique signature of a file. The file signature can then be checked in the Signature table to ascertain that a particular file is really the file being sought and not another file with the same name. If a record in a locator table does not contain a key into the Signature table, then the record refers to a directory and not a file.
The component controlling a file is found in the File table through the external key to the Component table. The installer resolves the location of a file through the Component table because every file belongs to one component. The location of a component is found through an external key in the Component table to the Directory table.
The location of an application is found by searching for files that make up the application. The installer also provides two tables for searching for previous versions of an application: the AppSearch table and the CCPSearch table.
The following tables make up the Locator tables group and are used to determine the file signature.
- The RegLocator table holds the information needed to search for a
file or directory in the registry.
- The IniLocator table holds the information needed to search for a
.ini file. The .ini file must be present in the default Microsoft®
Windows® directory.
- The CompLocator table holds the information needed to search for a
file or a directory using the installer's configuration data.
- The DrLocator table holds the information needed to search for a
file or directory in the directory tree.
- The AppSearch table contains the properties that must be set to
the search result of a corresponding file signature.
- The CCPSearch table contains the list of file signatures, at least one of which needs to be present on a user's computer for the Compliance Checking Program (CCP).
MSI - System Tables Group
The tables of the system tables group track the tables and columns of the installation database.
- The _Tables table tracks all the tables in the database. This
includes tables that you may have created for your own custom actions.
Query this table to find out if a table exists.
- The _Columns table tracks columns in the installation database.
Temporary columns are currently not tracked by this table. Query this
table to find out if a given column exists.
- The _Streams table lists embedded OLE data streams.
- The _Storages table lists embedded OLE data storages.
- The _Validation table. The _Validation table tracks the types and allowed ranges of every column in the database. The _Validation table is used during the database validation process to ensure that all columns are accounted for and have the correct values. This table is not shipped with the installer database.
Subscribe to:
Comments (Atom)