Jump to content

Another unattended setup type


scankurban

Recommended Posts

:) Normally unattended setups are using batch script files.I found another method with wise 9.02

All files are in the $oem$\$1\install\ directory and copying all files to harddisk when setup process.Think,if you are using dvd and you want add big files (like msoffice) your auto setup.No longer need to copy all files when you want to install.Just one file(130-500 kb.) copying to harddisk.When this file is execute,its executing timely other installations.Or only one batch script executing for all other setups without copy.Thats all

Note:All files are must stored %CDROM%\I386\program (program can be change)

This is a sample wise script for Partiton Magic;

Document Type: WSE

item: Global

Version=9.02

Title= Installation

Title French= Installation

Flags=11000100

Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Copy Default=1

Japanese Font Name=MS Gothic

Japanese Font Size=9

Progress Bar DLL=%_WISE_%\Progress\WizWin32a.DLL

Start Gradient=0 0 0

End Gradient=192 192 192

Windows Flags=00000100000000010010110000000000

Log Pathname=%MAINDIR%\INSTALL.LOG

Message Font=MS Sans Serif

Font Size=8

Pages Modified=00001000011000100000000100000010

Extra Pages=00000000000000000000000000010000

Disk Label=Default

Disk Filename=SETUP

Patch Flags=0000000000000001

Patch Threshold=85

Patch Memory=4000

MIF PDF Version=1.0

MIF SMS Version=2.0

FTP Cluster Size=20

Per-User Version ID=1

Dialogs Version=7

Crystal Format=10111100101100000010001001001001

Crystal Destination=00000000000000000000000000001011

Step View=Properties

Variable Name1=_SYS_

Variable Default1=C:\WINDOWS\system32

Variable Flags1=00001000

Variable Name2=_WIN_

Variable Default2=C:\WINDOWS

Variable Flags2=00001000

Variable Name3=_WISE_

Variable Default3=C:\Program Files\Wise Installation System

Variable Flags3=00001000

Variable Name4=_INIT_WINDOW_

Variable Default4=HIDE

Variable Flags4=00001000

end

item: Remark

Text=If you do not want Rem statements to appear when you create a new installation,

end

item: Remark

Text=open Empty Project.wse from the Template folder in the Wise application

end

item: Remark

Text=directory, delete the Rem statements, and select Save from the File menu.

end

item: Open/Close INSTALL.LOG

Flags=00000001

end

item: Remark

end

item: Remark

Text=If the destination system does not have a writable Windows\System directory, system files will be written to the Windows\ directory

end

item: Check if File/Dir Exists

Pathname=%SYS%

Flags=10000100

end

item: Set Variable

Variable=SYS

Value=%WIN%

end

item: End Block

end

item: Remark

end

item: Remark

Text=APPTITLE is the application title of the installation

end

item: Set Variable

Variable=APPTITLE

Flags=10000000

end

item: Remark

end

item: Remark

Text=GROUP is the variable that holds the Program Files Group that shortcuts will be placed on the Windows Start Menu

end

item: Set Variable

Variable=GROUP

Flags=10000000

end

item: Remark

end

item: Remark

Text=DISABLED variable is initialized for backward compatability

end

item: Set Variable

Variable=DISABLED

Value=!

end

item: Remark

end

item: Remark

Text=MAINDIR is the variable that holds the default destination directory

end

item: Set Variable

Variable=MAINDIR

Flags=10000000

end

item: Remark

end

item: Remark

Text=USERNAME is the variable that holds the Windows Logon name

end

item: Get System Information

Variable=USERNAME

Flags=00010001

end

item: Remark

end

item: Remark

Text=This IF/THEN/ELSE blocks reads the default Program Files and Common directories from the registry

end

item: Check Configuration

Flags=10111011

end

item: Get Registry Key Value

Variable=COMMON

Key=SOFTWARE\Microsoft\Windows\CurrentVersion

Default=C:\Program Files\Common Files

Value Name=CommonFilesDir

Flags=00000100

end

item: Get Registry Key Value

Variable=PROGRAM_FILES

Key=SOFTWARE\Microsoft\Windows\CurrentVersion

Default=C:\Program Files

Value Name=ProgramFilesDir

Flags=00000100

end

item: Set Variable

Variable=MAINDIR

Value=%PROGRAM_FILES%\%MAINDIR%

Flags=00001100

end

item: Set Variable

Variable=EXPLORER

Value=1

end

item: Else Statement

end

item: Set Variable

Variable=MAINDIR

Value=C:\%MAINDIR%

Flags=00001100

end

item: End Block

end

item: Remark

end

item: Remark

Text=BACKUP is the variable that holds the path that all backup files will be copied to when overwritten

end

item: Set Variable

Variable=BACKUP

Value=%MAINDIR%\BACKUP

Flags=10000000

end

item: Remark

end

item: Remark

Text=DOBACKUP determines if a backup will be performed. The possible values are A (do backup) or B (do not do backup)

end

item: Set Variable

Variable=DOBACKUP

Value=B

Flags=10000000

end

item: Remark

end

item: Remark

Text=If COMPONENTS are enabled, the COMPONENTS variable is initialized with possible selections

end

item: Set Variable

Variable=COMPONENTS

Flags=10000000

end

item: Remark

end

item: Remark

Text=BRANDING determines if the installation will be branded with a name and company. By default, this is written to the INST directory (installation media).

end

item: Set Variable

Variable=BRANDING

Value=0

end

item: If/While Statement

Variable=BRANDING

Value=1

end

item: Read INI Value

Variable=NAME

Pathname=%INST%\CUSTDATA.INI

Section=Registration

Item=Name

end

item: Read INI Value

Variable=COMPANY

Pathname=%INST%\CUSTDATA.INI

Section=Registration

Item=Company

end

item: If/While Statement

Variable=NAME

end

item: Set Variable

Variable=DOBRAND

Value=1

end

item: Get System Information

Variable=NAME

Flags=00000110

end

item: Get System Information

Variable=COMPANY

Flags=00000111

end

item: End Block

end

item: End Block

end

item: Remark

end

item: Remark

Text=The Wizard Loop contains the dialog screens that the user sees in the installation

end

item: Remark

Text=If you would like to change the graphic on the dialog boxes, you need to change it by double-clicking on the Wizard Loop line and change the bitmap path.

end

item: Wizard Block

Direction Variable=DIRECTION

Display Variable=DISPLAY

Bitmap Pathname=%_WISE_%\Dialogs\Template\TopImage.bmp

X Position=0

Y Position=0

Filler Color=8421376

Flags=00000001

end

item: Remark

Text=If you need to change the size of your Custom Dialogs, you need only change the "Welcome" screen.

end

item: Remark

Text=It's size is the template for all following dialogs within the Wizard Loop.

end

item: Remark

Text=This reinitialized the BACKUP directory so that it reflects the change the user made to MAINDIR

end

item: If/While Statement

Variable=DISPLAY

Value=Select Destination Directory

end

item: Set Variable

Variable=BACKUP

Value=%MAINDIR%\BACKUP

end

item: End Block

end

item: End Block

end

item: Remark

end

item: Remark

Text=When the BACKUP feature is enabled, the BACKUPDIR is initialized

end

item: If/While Statement

Variable=DOBACKUP

Value=A

end

item: Set Variable

Variable=BACKUPDIR

Value=%BACKUP%

end

item: End Block

end

item: Remark

end

item: Remark

Text=The BRANDING information is written to the INI file on the installation media.

end

item: If/While Statement

Variable=BRANDING

Value=1

end

item: If/While Statement

Variable=DOBRAND

Value=1

end

item: Edit INI File

Pathname=%INST%\CUSTDATA.INI

Settings=[Registration]

Settings=NAME=%NAME%

Settings=COMPANY=%COMPANY%

Settings=

end

item: End Block

end

item: End Block

end

item: Remark

end

item: Remark

Text=Begin writing to the INSTALL.LOG

end

item: Open/Close INSTALL.LOG

end

item: Remark

end

item: Remark

Text=Check free disk space calculates free disk space as well as component sizes.

end

item: Remark

Text=It should be located before all Install File actions.

end

item: Check Disk Space

Component=COMPONENTS

end

item: Remark

end

item: Remark

Text=This include script allows uninstall support

end

item: Remark

end

item: Remark

Text=The following two lines reset COMMON and MAINDIR to short filesnames. This is for backwards compatibility.

end

item: Set Variable

Variable=COMMON

Value=%COMMON%

Flags=00010100

end

item: Set Variable

Variable=MAINDIR

Value=%MAINDIR%

Flags=00010100

end

item: Remark

end

item: Remark

Text=This IF/THEN/ELSE reads the correct registry entries for shortcut/icon placement

end

item: Check Configuration

Flags=10111011

end

item: Get Registry Key Value

Variable=STARTUPDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%WIN%\Start Menu\Programs\StartUp

Value Name=StartUp

Flags=00000010

end

item: Get Registry Key Value

Variable=DESKTOPDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%WIN%\Desktop

Value Name=Desktop

Flags=00000010

end

item: Get Registry Key Value

Variable=STARTMENUDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%WIN%\Start Menu

Value Name=Start Menu

Flags=00000010

end

item: Get Registry Key Value

Variable=GROUPDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%WIN%\Start Menu\Programs

Value Name=Programs

Flags=00000010

end

item: Get Registry Key Value

Variable=CSTARTUPDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%STARTUPDIR%

Value Name=Common Startup

Flags=00000100

end

item: Get Registry Key Value

Variable=CDESKTOPDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%DESKTOPDIR%

Value Name=Common Desktop

Flags=00000100

end

item: Get Registry Key Value

Variable=CSTARTMENUDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%STARTMENUDIR%

Value Name=Common Start Menu

Flags=00000100

end

item: Get Registry Key Value

Variable=CGROUPDIR

Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Default=%GROUPDIR%

Value Name=Common Programs

Flags=00000100

end

item: Set Variable

Variable=CGROUP_SAVE

Value=%GROUP%

end

item: Set Variable

Variable=GROUP

Value=%GROUPDIR%\%GROUP%

end

item: Else Statement

end

item: End Block

end

item: Remark

end

item: Remark

Text=All OCX/DLL/EXE files that are self-registered

end

item: Self-Register OCXs/DLLs

Description=Updating System Configuration, Please Wait...

end

item: Get Registry Key Value

Variable=SETUP_PATH

Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion

Default=D:\I386

Value Name=SourcePath

Flags=00000100

end

item: Set Variable

Variable=SETUP_PATH

Value=%SETUP_PATH%\

Flags=00001100

end

item: Custom Script Item

Filename=Display Progress Message.wse

Variable Name1=_CENTER_

Variable Value1=AB

Variable Name2=_WIDTH_

Variable Value2=400

Variable Name3=_MSG_TITLE_

Variable Value3=Partition Magic Kurulumu

Variable Name4=HELPFILE

Variable Value4=C:\Program Files\Wise for Windows Installer\HELP\Express.chm

Variable Name5=_OPTION_

Variable Value5=B

Variable Name6=_HEIGHT_

Variable Value6=80

Variable Name7=_MSG_TEXT_

Variable Value7=Partition Magic 8.01 Kuruluyor

Variable Name8=_Y_POS_

Variable Name9=_X_POS_

end

item: Execute Program

Pathname=%SETUP_PATH%\PROGRAM\pqmagic.exe

Command Line=/s

Default Directory=%SETUP_PATH%\PROGRAM\

Flags=00000010

end

item: Remark

end

item: Remark

Text=This Wizard Loop finalizes the install

end

item: New Event

Name=Cancel

end

item: Remark

Text=This include script supports a rollback to preinstallation state if the user chooses to cancel before the installation is complete.

end

You can change marked lines from wise main script editor window.

Link to comment
Share on other sites


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...