scankurban Posted September 22, 2003 Share Posted September 22, 2003 Normally unattended setups are using batch script files.I found another method with wise 9.02All 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 allNote:All files are must stored %CDROM%\I386\program (program can be change)This is a sample wise script for Partiton Magic;Document Type: WSEitem: 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=00001000enditem: Remark Text=If you do not want Rem statements to appear when you create a new installation,enditem: Remark Text=open Empty Project.wse from the Template folder in the Wise applicationenditem: Remark Text=directory, delete the Rem statements, and select Save from the File menu.enditem: Open/Close INSTALL.LOG Flags=00000001enditem: Remarkenditem: Remark Text=If the destination system does not have a writable Windows\System directory, system files will be written to the Windows\ directoryenditem: Check if File/Dir Exists Pathname=%SYS% Flags=10000100enditem: Set Variable Variable=SYS Value=%WIN%enditem: End Blockenditem: Remarkenditem: Remark Text=APPTITLE is the application title of the installationenditem: Set Variable Variable=APPTITLE Flags=10000000enditem: Remarkenditem: Remark Text=GROUP is the variable that holds the Program Files Group that shortcuts will be placed on the Windows Start Menuenditem: Set Variable Variable=GROUP Flags=10000000enditem: Remarkenditem: Remark Text=DISABLED variable is initialized for backward compatabilityenditem: Set Variable Variable=DISABLED Value=!enditem: Remarkenditem: Remark Text=MAINDIR is the variable that holds the default destination directoryenditem: Set Variable Variable=MAINDIR Flags=10000000enditem: Remarkenditem: Remark Text=USERNAME is the variable that holds the Windows Logon nameenditem: Get System Information Variable=USERNAME Flags=00010001enditem: Remarkenditem: Remark Text=This IF/THEN/ELSE blocks reads the default Program Files and Common directories from the registryenditem: Check Configuration Flags=10111011enditem: Get Registry Key Value Variable=COMMON Key=SOFTWARE\Microsoft\Windows\CurrentVersion Default=C:\Program Files\Common Files Value Name=CommonFilesDir Flags=00000100enditem: Get Registry Key Value Variable=PROGRAM_FILES Key=SOFTWARE\Microsoft\Windows\CurrentVersion Default=C:\Program Files Value Name=ProgramFilesDir Flags=00000100enditem: Set Variable Variable=MAINDIR Value=%PROGRAM_FILES%\%MAINDIR% Flags=00001100enditem: Set Variable Variable=EXPLORER Value=1enditem: Else Statementenditem: Set Variable Variable=MAINDIR Value=C:\%MAINDIR% Flags=00001100enditem: End Blockenditem: Remarkenditem: Remark Text=BACKUP is the variable that holds the path that all backup files will be copied to when overwrittenenditem: Set Variable Variable=BACKUP Value=%MAINDIR%\BACKUP Flags=10000000enditem: Remarkenditem: Remark Text=DOBACKUP determines if a backup will be performed. The possible values are A (do backup) or B (do not do backup)enditem: Set Variable Variable=DOBACKUP Value=B Flags=10000000enditem: Remarkenditem: Remark Text=If COMPONENTS are enabled, the COMPONENTS variable is initialized with possible selectionsenditem: Set Variable Variable=COMPONENTS Flags=10000000enditem: Remarkenditem: 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).enditem: Set Variable Variable=BRANDING Value=0enditem: If/While Statement Variable=BRANDING Value=1enditem: Read INI Value Variable=NAME Pathname=%INST%\CUSTDATA.INI Section=Registration Item=Nameenditem: Read INI Value Variable=COMPANY Pathname=%INST%\CUSTDATA.INI Section=Registration Item=Companyenditem: If/While Statement Variable=NAMEenditem: Set Variable Variable=DOBRAND Value=1enditem: Get System Information Variable=NAME Flags=00000110enditem: Get System Information Variable=COMPANY Flags=00000111enditem: End Blockenditem: End Blockenditem: Remarkenditem: Remark Text=The Wizard Loop contains the dialog screens that the user sees in the installationenditem: 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.enditem: 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=00000001enditem: Remark Text=If you need to change the size of your Custom Dialogs, you need only change the "Welcome" screen. enditem: Remark Text=It's size is the template for all following dialogs within the Wizard Loop.enditem: Remark Text=This reinitialized the BACKUP directory so that it reflects the change the user made to MAINDIRenditem: If/While Statement Variable=DISPLAY Value=Select Destination Directoryenditem: Set Variable Variable=BACKUP Value=%MAINDIR%\BACKUPenditem: End Blockenditem: End Blockenditem: Remarkenditem: Remark Text=When the BACKUP feature is enabled, the BACKUPDIR is initializedenditem: If/While Statement Variable=DOBACKUP Value=Aenditem: Set Variable Variable=BACKUPDIR Value=%BACKUP%enditem: End Blockenditem: Remarkenditem: Remark Text=The BRANDING information is written to the INI file on the installation media.enditem: If/While Statement Variable=BRANDING Value=1enditem: If/While Statement Variable=DOBRAND Value=1enditem: Edit INI File Pathname=%INST%\CUSTDATA.INI Settings=[Registration] Settings=NAME=%NAME% Settings=COMPANY=%COMPANY% Settings=enditem: End Blockenditem: End Blockenditem: Remarkenditem: Remark Text=Begin writing to the INSTALL.LOG enditem: Open/Close INSTALL.LOGenditem: Remarkenditem: Remark Text=Check free disk space calculates free disk space as well as component sizes.enditem: Remark Text=It should be located before all Install File actions.enditem: Check Disk Space Component=COMPONENTSenditem: Remarkenditem: Remark Text=This include script allows uninstall supportenditem: Remarkenditem: Remark Text=The following two lines reset COMMON and MAINDIR to short filesnames. This is for backwards compatibility.enditem: Set Variable Variable=COMMON Value=%COMMON% Flags=00010100enditem: Set Variable Variable=MAINDIR Value=%MAINDIR% Flags=00010100enditem: Remarkenditem: Remark Text=This IF/THEN/ELSE reads the correct registry entries for shortcut/icon placementenditem: Check Configuration Flags=10111011enditem: Get Registry Key Value Variable=STARTUPDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%WIN%\Start Menu\Programs\StartUp Value Name=StartUp Flags=00000010enditem: Get Registry Key Value Variable=DESKTOPDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%WIN%\Desktop Value Name=Desktop Flags=00000010enditem: Get Registry Key Value Variable=STARTMENUDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%WIN%\Start Menu Value Name=Start Menu Flags=00000010enditem: Get Registry Key Value Variable=GROUPDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%WIN%\Start Menu\Programs Value Name=Programs Flags=00000010enditem: Get Registry Key Value Variable=CSTARTUPDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%STARTUPDIR% Value Name=Common Startup Flags=00000100enditem: Get Registry Key Value Variable=CDESKTOPDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%DESKTOPDIR% Value Name=Common Desktop Flags=00000100enditem: Get Registry Key Value Variable=CSTARTMENUDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%STARTMENUDIR% Value Name=Common Start Menu Flags=00000100enditem: Get Registry Key Value Variable=CGROUPDIR Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Default=%GROUPDIR% Value Name=Common Programs Flags=00000100enditem: Set Variable Variable=CGROUP_SAVE Value=%GROUP%enditem: Set Variable Variable=GROUP Value=%GROUPDIR%\%GROUP%enditem: Else Statementenditem: End Blockenditem: Remarkenditem: Remark Text=All OCX/DLL/EXE files that are self-registeredenditem: Self-Register OCXs/DLLs Description=Updating System Configuration, Please Wait...enditem: Get Registry Key Value Variable=SETUP_PATH Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion Default=D:\I386 Value Name=SourcePath Flags=00000100enditem: Set Variable Variable=SETUP_PATH Value=%SETUP_PATH%\ Flags=00001100enditem: 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_enditem: Execute Program Pathname=%SETUP_PATH%\PROGRAM\pqmagic.exe Command Line=/s Default Directory=%SETUP_PATH%\PROGRAM\ Flags=00000010enditem: Remarkenditem: Remark Text=This Wizard Loop finalizes the install enditem: New Event Name=Cancelenditem: Remark Text=This include script supports a rollback to preinstallation state if the user chooses to cancel before the installation is complete.endYou can change marked lines from wise main script editor window. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now