radix Posted February 26, 2009 Posted February 26, 2009 (edited) License is stored in #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: myName Raxco PerfectDisk Professional 10 Build 100 x86 & x64 Application site: [url="http://www.raxco.com/"]http://www.raxco.com/[/url] Script Function: Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hereOpt("TrayIconDebug", 1); Installation folder$InstallLocation = @ProgramFilesDir & "\Raxco\PerfectDisk2008\"; License key hash$LicenseKey = "0xffffffffffffffffffffffffffffffff"; Create Desktop icon$DesktopIcon = 1$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{7B738CD9-D107-48C7-8E65-2E6639A39C8D}", "InstallLocation")If FileExists($PreviousInstallation & "\PerfectDisk.exe") Then MsgBox(0x40010, @ScriptName, "Please uninstall previous version of PerfectDisk before using this script", 4) ExitEndIfIf @OSArch = "X86" Then ; Installer file name $Installer = "PerfectDisk_x86.msi" ; Run the installer If $DesktopIcon = 0 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x86\" & $Installer & '"' & " /qb! /norestart") ElseIf $DesktopIcon = 1 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x86\" & $Installer & '"' & " /qb! /norestart INSTALL_DESKTOP_ICON=1") EndIf Sleep(2000) ; Settings RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0", "ShowSplashScreen", "REG_DWORD", 0) RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0\Preferences", "Exit On Close", "REG_SZ", "true") RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowExternalHardDrives", "REG_DWORD", 1) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowFlashDrives", "REG_DWORD", 1) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "EnableDebug", "REG_DWORD", 0) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "License", "REG_BINARY", $LicenseKey) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "LogSettings", "REG_BINARY", "0x0f00000001000000020000000000020000000000") RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "PDManageLayoutIni", "REG_DWORD", 2) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "Wizard", "REG_DWORD", 15) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0\AutoUpdSettings", "Auto_Check", "REG_SZ", "No") RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDEngine", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDEngine", "Start", "REG_DWORD", 3)EndIfIf @OSArch = "X64" Then ; Installer file name $Installer = "PerfectDisk_x64.msi" ; Run the installer If $DesktopIcon = 0 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x64\" & $Installer & '"' & " /qb! /norestart") ElseIf $DesktopIcon = 1 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x64\" & $Installer & '"' & " /qb! /norestart INSTALL_DESKTOP_ICON=1") EndIf Sleep(2000) ; Settings RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0", "ShowSplashScreen", "REG_DWORD", 0) RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0\Preferences", "Exit On Close", "REG_SZ", "true") RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowExternalHardDrives", "REG_DWORD", 1) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowFlashDrives", "REG_DWORD", 1) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "EnableDebug", "REG_DWORD", 0) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "License", "REG_BINARY", $LicenseKey) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "LogSettings", "REG_BINARY", "0x0f00000001000000020000000000020000000000") RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "PDManageLayoutIni", "REG_DWORD", 2) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "Wizard", "REG_DWORD", 15) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0\AutoUpdSettings", "Auto_Check", "REG_SZ", "No") RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDEngine", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDEngine", "Start", "REG_DWORD", 3)EndIfFunc OnAutoItStart() ; One script instance only If WinExists(@ScriptName & '_Interpreter') Then Exit AutoItWinSetTitle(@ScriptName & '_Interpreter')EndFuncInstallation process will made a nice progress bar Edited February 26, 2009 by radix
Raoul90 Posted February 26, 2009 Posted February 26, 2009 License is stored in #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.0.0 Author: myName Raxco PerfectDisk Professional 10 Build 100 x86 & x64 Application site: [url="http://www.raxco.com/"]http://www.raxco.com/[/url] Script Function: Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hereOpt("TrayIconDebug", 1); Installation folder$InstallLocation = @ProgramFilesDir & "\Raxco\PerfectDisk2008\"; License key hash$LicenseKey = "0xffffffffffffffffffffffffffffffff"; Create Desktop icon$DesktopIcon = 1$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{7B738CD9-D107-48C7-8E65-2E6639A39C8D}", "InstallLocation")If FileExists($PreviousInstallation & "\PerfectDisk.exe") Then MsgBox(0x40010, @ScriptName, "Please uninstall previous version of PerfectDisk before using this script", 4) ExitEndIfIf @OSArch = "X86" Then ; Installer file name $Installer = "PerfectDisk_x86.msi" ; Run the installer If $DesktopIcon = 0 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x86\" & $Installer & '"' & " /qb! /norestart") ElseIf $DesktopIcon = 1 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x86\" & $Installer & '"' & " /qb! /norestart INSTALL_DESKTOP_ICON=1") EndIf Sleep(2000) ; Settings RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0", "ShowSplashScreen", "REG_DWORD", 0) RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0\Preferences", "Exit On Close", "REG_SZ", "true") RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowExternalHardDrives", "REG_DWORD", 1) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowFlashDrives", "REG_DWORD", 1) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "EnableDebug", "REG_DWORD", 0) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "License", "REG_BINARY", $LicenseKey) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "LogSettings", "REG_BINARY", "0x0f00000001000000020000000000020000000000") RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "PDManageLayoutIni", "REG_DWORD", 2) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0", "Wizard", "REG_DWORD", 15) RegWrite("HKLM\SOFTWARE\Raxco\PerfectDisk\10.0\AutoUpdSettings", "Auto_Check", "REG_SZ", "No") RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDEngine", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDEngine", "Start", "REG_DWORD", 3)EndIfIf @OSArch = "X64" Then ; Installer file name $Installer = "PerfectDisk_x64.msi" ; Run the installer If $DesktopIcon = 0 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x64\" & $Installer & '"' & " /qb! /norestart") ElseIf $DesktopIcon = 1 Then RunWait("msiexec.exe" & " /i" & ' "' & @ScriptDir & "\x64\" & $Installer & '"' & " /qb! /norestart INSTALL_DESKTOP_ICON=1") EndIf Sleep(2000) ; Settings RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0", "ShowSplashScreen", "REG_DWORD", 0) RegWrite("HKCU\SOFTWARE\Raxco\PerfectDisk\10.0\Preferences", "Exit On Close", "REG_SZ", "true") RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowExternalHardDrives", "REG_DWORD", 1) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "AllowFlashDrives", "REG_DWORD", 1) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "EnableDebug", "REG_DWORD", 0) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "License", "REG_BINARY", $LicenseKey) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "LogSettings", "REG_BINARY", "0x0f00000001000000020000000000020000000000") RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "PDManageLayoutIni", "REG_DWORD", 2) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0", "Wizard", "REG_DWORD", 15) RegWrite("HKLM64\SOFTWARE\Raxco\PerfectDisk\10.0\AutoUpdSettings", "Auto_Check", "REG_SZ", "No") RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\ControlSet001\Services\PDEngine", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDAgent", "Start", "REG_DWORD", 3) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\PDEngine", "Start", "REG_DWORD", 3)EndIfFunc OnAutoItStart() ; One script instance only If WinExists(@ScriptName & '_Interpreter') Then Exit AutoItWinSetTitle(@ScriptName & '_Interpreter')EndFuncInstallation process will made a nice progress bar Thanks man, i completly missed the "License" point. Thanks!
ricktendo Posted February 26, 2009 Posted February 26, 2009 (edited) PD10 all you need to do is edit program files\Raxco\PerfectDisk10\Config.ini to add your registration in addition to other settings## This configuration file for PerfectDisk allows you to configure certain features # of PerfectDisk on installation. The file is only used during installation. # During installation the information contained in this file is formatted and copied# into the registry.## Usage:# 1. Use Config.ini# 2. If any invalid parameters are specified, no values will be set, and # this configuration file will be ignored.# 3. If a value is left blank, the Default value will be used.# 4. To use this file you must set 'Enabled' value under [Config.ini] section to 1. # By default this value is set to 0 and Config.ini is ignored during the installation.[Config.ini]#Set this value to 1 to enable configuration with Config.ini file.Enabled=0[AutoUpdate]# Install Options are:# Notify: 1# Always Install: 2# Never Check: 3InstallOption=1# path to web/ftp server containing the PD10EN.ini# URL must start with http:// or ftp://# paths supported at Raxco are:# Url=http://update.raxco.com/pub/download/PD100/English/x86# Url=ftp://update3.raxco.com/pub/download/PD100/English/x86Url=http://update.raxco.com/pub/download/PD100/English/x86# Proxy serverFtpProxyServer=# user name and password for the proxy serverUsername=Password=# ini file name. This value should not be edited unless you are # hosting AutoUpdate on your own server.VersionIniFileName=PD10b100EN.ini# Auto Update check Frequency# EVERY WEEK = 1# EVERY 2 WEEKS = 2# EVERY 3 WEEKS = 3# EVERY 4 WEEKS = 4Frequency=2# Day of the week to check for an update.# Random=0, Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7# Default = 0DayOfTheWeek=0# Format is HH# AutoUpdate will check the specified URL site for an update hourly only.# Allowable values are NULL which is random or any hour from 00, 01, 02, ... to 23# Default NULLTime=NULL[Schedules]# indicate the number of schedules to create on install.# If 1, the [Schedule1] section will be read.# If 2, the [Schedule1] and [Schedule2] section will be read. You can create as # many schedule sections as you need.# Default = 0 NumberOfSchedules=0[Schedule1]# Default = MyScheduleScheduleName="MySchedule"# Comma delimited list of volumes. # ALLDRIVES will select all volumes# Acceptable formats C:, C:\, Path to Mountpoint followed by a back slash "\"# Example: C:,H:\MyMountPoint\# Do not insert spaces between items# Default = ALLDRIVESVolumeList=ALLDRIVES# Parallel = 0# Series = 1# AutoDetect = 2# Default = 1Series=1# Do not perform online defrag pass = 0# Perform online defrag pass = 1# Default = 1Online=1# Do not perform offline defrag pass = 0# Perform offline defrag pass = 1# Default = 0Offline=0# Do not perform free space clean = 0# Empty Recycle Bin only = 1# Clean Temporary Files only = 2# Empty Recycle Bin and Temporary Files = 3# Default = 0ReclaimFreeSpace=0# SmartPlacement = 0# Defrag without SmartPlacement = 1# Consolidate Free Space = 2# Default = 0DefragStrategy=0# Do not OverrideDriveProperties = 0# OverrideDriveProperties = 1# Default = 0OverrideDriveProperties=0# Do not defragment Directories during an offline defrag pass = 0# Defragment Directories during an offline defrag pass = 1# Default = 0OfflineDefragDirectories=0# Do not defragment System Files during an offline defrag pass = 0# Defragment System Files during an offline defrag pass = 1# Default = 0OfflineDefragSystemFiles=0# Do not defragment the Pagefile during an offline defrag pass = 0# Defragment the Pagefile during an offline defrag pass = 1# Default = 0OfflineDefragPagefile=0# One Time = 1# Daily = 2# Weekly = 3# Screen Saver = 4# Full Auto = 5# Analyze = 6# Default = 2 (DAILY)Type=2# If Type = 2 (DAILY) allowable values are 1 to 31# If Type = 3 (WEEKLY) allowable values are 1 to 52# If Type = 6 (ANALYZE) allowable values are 1 to 31# Default = 1Frequency=1# Format is HH:MM:SS# If you create a one time schedule in the past, the schedule will never run.# Default - 23:00:00StartTime=23:00:00# Format is MM/DD/YYYY# If left blank, the start date will be set to the current date.# If you create a one time schedule in the past, the schedule will never run.# Default: empty (use current date)StartDate=# maximum duration for the schedule in hours. Format is an integer.# Default = 0MaxDuration=0# Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7# Default = 1 (Sunday)# Weekly schedule allow multiple days to be selected. Comma delimited for multiple daysDayOfTheWeek = 1# The inverval in days between runs for Screen Saver or Full Auto schedules.# Defaullt - 5ScheduleInterval = 5# The user activity timeout in minutes for Full Auto schedule.# Default - 5ActivityTimeout = 5# The list of comma separated important processes for Full Auto schedule. # The Full Auto schedule will not run if one of these processes are running.# Default - the empty stringImportantProcesses =[Schedule2]ScheduleName=VolumeList=Series=1Online=1Offline=0ReclaimFreeSpace=0DefragStrategy=1OverrideDriveProperties=0OfflineDefragDirectories=0OfflineDefragSystemFiles=0OfflineDefragPagefile=0Type=2Frequency=1StartTime=23:00:00StartDate=MaxDuration=0DayOfTheWeek=1ScheduleInterval=ActivityTimeout=ImportantProcesses=[DriveProperties]# Drive Property Settings will be applied to all drives. # This configuration file does not support different settings on different drives# Integer between 1 and 999. Must be greater than FrequentlyModifiedAge# Default = 60RarelyModifiedAge=60# Integer between 1 and 999. Must be less than RarelyModifiedAge# Default = 30FrequentlyModifiedAge=30# Do not aggressively pack free space = 0# Aggressively pack free space = 1# Default = 0AgressiveFreeSpaceConsolidation=0# Fragmentation Threshold# Integer 0 to 100# Default = 0DefragThreshold=0# Do not Defragment Directories during offline passes = 0# Defragment Directories during offline passes = 1# Default = 0OfflineDefragDirectories=0# Do not defragment System Files during offline passes = 0# Defragment System Files during offline passes = 1# Default = 1OfflineDefragSystemFiles=1# Do not defragment the Pagefile during offline passes = 0# Defragment the Pagefile during offline passes = 1# Default = 0OfflineDefragPagefile=0# Do not perform an Offline defrag pass at every reboot = 0# Perform an Offline defrag pass at every reboot = 1# Default = 0DefragEveryReboot=0# Exclude files from the defragmentation pass (comma-delimited list).# This is list of files and/or directories, the location of these must be preserved.# Directories is excluded recursevely.ExcludeFiles=[AdvancedSettings]# Let PerfectDisk manage the boot files = 0# Let PerfectDisk manage all files listed in Layout.ini (XP and Vista Only) = 1# Let Windows manage the layout.ini files (XP and Vista Only) = 2# Do not place boot files for optimum boot speed = 3# Default = 0BootFileOptimizationType=0# Do not log to the Application Event Log = 0# Log to the Application Event Log = 1# Default = 1LogToEventLog=1# Do not log to PerfectDisk log file = 0# Log to PerfectDisk log file = 1# Default = 1LogToPDLog=1# Do not stop defrag passes when on battery = 0# Stop Defrag passes when on battery = 1# Default = 1StopDefragIfBattery=1# Start Defrag passes when on battery = 0# Do not start defrag passes when on battery = 1# Default = 1DoNotStartDefragIfBattery=1# Reschedule missed schedules using the periodicity (daily, weekly) and start time = 0# Run missed schedules when computer restarts = 1# Default = 0RunMissedSchedulesWhenComputerStarts=0# Automatically adjust StealthPatrol schedule thresholds# Default = 0AutoAdjustThresholds=0# Kernel mode CPU threshold for StealthPatrol schedule (in %)# Default = 10KernelTimeThreshold=10## User mode CPU threshold for StealthPatrol schedule (in %)# Default = 10UserTimeThreshold=10## IO activity threshold for StealthPatrol schedule (in bytes/second)# Default = 80000IoThreshold=80000# Kernel mode CPU threshold of for StealthPatrol schedule # for the client in a virtual environment, measured on the host computer(in %)# Default = 10VmHostKernelTimeThreshold=10## User mode CPU threshold for StealthPatrol schedule # for the client in a virtual environment, measured on the host computer(in %)# Default = 10VmHostUserTimeThreshold=10## IO activity threshold for StealthPatrol schedule# for the client in a virtual environment, measured on the host computer (in bytes/second)# Default = 80000VmHostIoThreshold=80000# Do not wake computer from Hibernate/Standby to run a scheduled defrag pass = 0# Wake computer from Hibernate/Standby to run a scheduled defrag pass = 1# Default = 0WakeComputerFromHibernateToRunSchedule=0# Allow Defragging USB/Firewire connected hard drives = 1# Do not allow defragging USB/Firewire connected hard drives = 0# Default = 0DefragRemovableHardDrives=0# Allow Defragging Flash drives = 1# Do not allow defragging Flash drives = 0# Default = 0DefragFlash=0# CPU Priority Idle = 0# CPU Priority Normal = 1# CPU Priority Above Normal = 2# Default = 1CPUPriority=1# Throttle Disk I/O = 1# Do Not Throttle Disk I/O = 0# Default = 0IOThrottling=0[ManageFromConsole]# Use management from PerfectDisk Command Center using TCP/IP via dedicated port.# If this value is set to 0, PerfectDisk local client will use DCOM management only.# If this value is in range 10..65535, PerfectDisk local client will use management using TCP/IP via this port.ManageOnPort=0[Firewall]# When PerfectDisk is used in a managed network run windows XP Service Pack 2, Vista or Windows 2003 Server, # the built in firewall needs to be configured to allow PerfectDisk to communicate# through the firewall. This requires:# Opening PORT 135 (RPC)# Opening PORT 445 (DCOM)# Opening PORT, mentioned in section ManageFromConsole, ManageOnPort value.# Turning on REMOTEADMIN (authorizing remote administration)# Allow File and Print Sharing (used for credential validation)# Adding PDAgent.exe, PDEngine.exe and PDEnginePS.dll to the allowable binaries list.# Default = 0# Configure the firewall = 1# Do not configure firewall = 0ConfigureFirewall=0[UserInterface]# Control UI close button behavior. # Close PerfectDisk when exiting = 0# Minimize to system tray when exiting = 1# Default = 1AllowTrayIcon =1# Allow to have free space management tab in the PerfectDisk user interface. If this value is set to 0, # free space management tab will be removed from the application.# Default = 1AllowFreeSpace=1# Allow to access the Advanced property page.# Default = 1AllowAdvanceConfiguration=1# Allow SplashScreen to Show.# Default = 1AllowSplashScreen=1# Allow Welcome Wizard to Show.# Default = 1AllowWelcomeWizard=1[License]# Allow inputing a license key on install# LicenseKey = NNN-NNNNNNN-NNNNNN-NNNN# where NNN-NNNNNNN-NNNNNN-NNNN is a valid license key.# default = nullLicenseKey=NULL Edited February 26, 2009 by ricktendo64
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now