Jump to content
Sign in to follow this  
niceguy75

I want an Image to be displayed during installation of silent applications

Recommended Posts

niceguy75

Hi guys,

I have wrote some scripts for registries and installations of silent applications, I tried to run those scripts everything goes well but I see a CMD windows during the installation of silent applications and I want to replace that windows with an image. I have also wrote a script for displaying an image on the screen for say 40 second but I wish this image to be displayed till all the silent applications got insalled and then it closes by itself.

Here is the script for displaying image:

SplashImageOn("Please wait for few minutes", "C:\Users\Administrator\Pictures\oemlogo.bmp")
Sleep (40000)
SplashOff ( )

Secondly I have included a command in the my first script for running another script placed in windows folder but the first script running properly but it is not triggering the second scripts which is placed in windows folder.

This is my first script for registries and installing silent applications:

RegWrite("HKCR\Directory\Background\shell", "", "REG_SZ", "none")
RegWrite("HKCR\Directory\Background\shell\Programs and Features\command", "", "REG_SZ", "control appwiz.cpl")
RegWrite("HKCR\Directory\Background\shell", "", "REG_SZ", "none")
RegWrite("HKCR\Directory\Background\shell\Change Wallpaper\command", "", "REG_SZ", "control desk.cpl,,@desktop")
RegWrite("HKCR\Directory\Background\shell", "", "REG_SZ", "none")
RegWrite("HKCR\Directory\Background\shell\Task Manager\command", "", "REG_SZ", "taskmgr")
RegWrite("HKCR\*\shell\runas", "", "REG_SZ", "Take Ownership")
RegWrite("HKCR\*\shell\runas", "NoWorkingDirectory", "REG_SZ", "")
RegWrite("HKCR\*\shell\runas\command", "", "REG_SZ", "cmd.exe /c takeown /f ""%1"" && icacls ""%1"" /grant administrators:F")
RegWrite("HKCR\*\shell\runas\command", "IsolatedCommand", "REG_SZ", "cmd.exe /c takeown /f ""%1"" && icacls ""%1"" /grant administrators:F")
RegWrite("HKCR\Directory\shell\runas", "", "REG_SZ", "Take Ownership")
RegWrite("HKCR\Directory\shell\runas", "NoWorkingDirectory", "REG_SZ", "")
RegWrite("HKCR\Directory\shell\runas\command", "", "REG_SZ", "cmd.exe /c takeown /f ""%1"" /r /d y && icacls ""%1"" /grant administrators:F /t")
RegWrite("HKCR\Directory\shell\runas\command", "IsolatedCommand", "REG_SZ", "cmd.exe /c takeown /f ""%1"" /r /d y && icacls ""%1"" /grant administrators:F /t")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "HideFileExt", "REG_DWORD", "0")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment", "DEVMGR_SHOW_DETAILS", "REG_SZ", "1")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer", "link", "REG_BINARY", Binary("0x00000000"))
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons", "29", "REG_EXPAND_SZ", "%systemroot%\system32\shell32.dll,50")
RegWrite("HKCU\Control Panel\Desktop", "FontSmoothing", "REG_SZ", "2")
RegWrite("HKCU\Control Panel\Desktop", "FontSmoothingType", "REG_DWORD", "2")
RegWrite("HKCR\*\shell\runas", "", "REG_SZ", "Take Ownership")
RegWrite("HKCR\*\shell\runas", "NoWorkingDirectory", "REG_SZ", "")
RegWrite("HKCR\*\shell\runas\command", "", "REG_SZ", "cmd.exe /c takeown /f ""%1"" && icacls ""%1"" /grant administrators:F")
RegWrite("HKCR\*\shell\runas\command", "IsolatedCommand", "REG_SZ", "cmd.exe /c takeown /f ""%1"" && icacls ""%1"" /grant administrators:F")
RegWrite("HKCR\Directory\shell\runas", "", "REG_SZ", "Take Ownership")
RegWrite("HKCR\Directory\shell\runas", "NoWorkingDirectory", "REG_SZ", "")
RegWrite("HKCR\Directory\shell\runas\command", "", "REG_SZ", "cmd.exe /c takeown /f ""%1"" /r /d y && icacls ""%1"" /grant administrators:F /t")
RegWrite("HKCR\Directory\shell\runas\command", "IsolatedCommand", "REG_SZ", "cmd.exe /c takeown /f ""%1"" /r /d y && icacls ""%1"" /grant administrators:F /t")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "Encryptioncontextmenu", "REG_DWORD", "1")
RegWrite("HKCR\Folder\shell\Command Prompt\command", "", "REG_SZ", "cmd.exe /k pushd %L")
RegWrite("HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13}")
RegWrite("HKCU\Control Panel\Desktop", "UserPreferencesMask", "REG_BINARY", Binary("0xb0120180"))
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices", "", "REG_EXPAND_SZ", "Device Manager")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices", "SuppressionPolicy", "REG_DWORD", "1073741884")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices\command", "", "REG_EXPAND_SZ", "%windir%\system32\mmc.exe /s %SystemRoot%\system32\devmgmt.msc /s")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services", "", "REG_EXPAND_SZ", "Services")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services", "SuppressionPolicy", "REG_DWORD", "1073741884")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command", "", "REG_EXPAND_SZ", "%windir%\sys")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Edit Registry\command", "", "REG_SZ", "regedit.exe")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\msconfig", "", "REG_SZ", "MSCONFIG")
RegWrite("HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\msconfig\command", "", "REG_SZ", "msconfig.exe")
RegWrite("HKLM\SOFTWARE\Classes\Directory\shell\Notepad", "", "REG_SZ", "Notepad")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\ContentIndex", "FilterFilesWithUnknownExtensions", "REG_DWORD", "1")
RegWrite("HKCU\Software\Ahead\Nero - Burning Rom\Recorder", "ShowSingleRecorderSpeed", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "NotifyDownloadComplete", "REG_SZ", "no")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Download", "CheckExeSignatures", "REG_SZ", "no")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Download", "RunInvalidSignatures", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", "http://www.google.co.in/")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "Save_Session_History_On_Exit", "REG_SZ", "yes")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "ShowedCheckBrowser", "REG_SZ", "Yes")
RegWrite("HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "MaxConnectionsPerServer", "REG_DWORD", "20")
RegWrite("HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "MaxConnectionsPer1_0Server", "REG_DWORD", "20")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "MaxConnectionsPerServer", "REG_DWORD", "20")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "MaxConnectionsPer1_0Server", "REG_DWORD", "20")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "DisableScriptDebuggerIE", "REG_SZ", "yes")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "Error Dlg Displayed On Every Error", "REG_SZ", "no")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "UseThemes", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "SmoothScroll", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "Enable AutoImageResize", "REG_SZ", "yes")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyHttp1.1", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "WarnonBadCertRecving", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Player\Settings", "EnableDVDUI", "REG_SZ", "Yes")
RegWrite("HKLM\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer", "DisableAutoUpdate", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "AutoCopyCD", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "AutoEjectCD", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "AutoAddRemovable", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "AutoAddMusicToLibrary", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "CDRecordDRM", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "CDRecordMode", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "CDRecordMP3", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "CurrentDisplayView", "REG_SZ", "VizView")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "CurrentDisplayPreset", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "CurrentSettingsPreset", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "CurrentMetadataPreset", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "DisableMRU", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "ForceOnline", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "FullmodeTaskbar", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "LaunchIndex", "REG_DWORD", "3")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "LibraryHasBeenRun", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "Maximized", "REG_SZ", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "MP3RecordRate", "REG_DWORD", "192000")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "NowPlayingMetadata", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "NowPlayingPlaylist", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "NowPlayingQuickHide", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "NowPlayingSettings", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "SaveDRMMusic", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "ShowCaptions", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "ShowEffects", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "ShowFullScreenPlaylist", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "ShowTitles", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "ShrinkToFit", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "SilentAcquisition", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "StretchToFit", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "TitlebarMouseover", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UsageTracking", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UpgradeCheckFrequency", "REG_DWORD", "2")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserDisplayPreset", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserDisplayView", "REG_SZ", "VizView")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPDisplayPreset", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPDisplayView", "REG_SZ", "VizView")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPMetadataPreset", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPMetadataView", "REG_SZ", "MediaInfoView")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPSettingsPreset", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPSettingsView", "REG_SZ", "EQView")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPShowMetadata", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "UserWMPShowSettings", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "VizAutoSelect", "REG_DWORD", "1")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "WMARecordQuality", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "WMARecordRate", "REG_DWORD", "64000")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "XV11", "REG_SZ", "321")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "YV11", "REG_SZ", "323")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "WidthV11", "REG_SZ", "374")
RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HeightV11", "REG_SZ", "96")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\parameters", "AutoShareWks", "REG_DWORD", "0")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters", "AutoShareServer", "REG_DWORD", "0")
RegWrite("HKLM\SOFTWARE\Classes\Directory\shell\openNew", "", "REG_SZ", "Open In New &Window")
RegWrite("HKLM\SOFTWARE\Classes\Directory\shell\openNew\Command", "", "REG_SZ", "explorer %1")
RegWrite("HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder", "Attributes", "REG_BINARY", Binary("0x70100020"))
RegWrite("HKCR\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder", "CallForAttributes", "REG_DWORD", "64")
RegWrite("HKCR\*\shell\open", "", "REG_SZ", "Edit..")
RegWrite("HKCR\*\shell\open\command", "", "REG_SZ", "notepad.exe %1")
RegWrite("HKCR\.ocx", "", "REG_SZ", "ocxfile")
RegWrite("HKCR\ocxfile", "", "REG_SZ", "OCX")
RegWrite("HKCR\ocxfile\Shell\Register\command", "", "REG_SZ", "regsvr32.exe ""%1""")
RegWrite("HKCR\ocxfile\Shell\UnRegister\command", "", "REG_SZ", "regsvr32.exe /u ""%1""")
RegWrite("HKCR\.dll", "Content Type", "REG_SZ", "application/x-msdownload")
RegWrite("HKCR\.dll", "", "REG_SZ", "dllfile")
RegWrite("HKCR\dllfile", "", "REG_SZ", "Application Extension")
RegWrite("HKCR\dllfile\Shell\Register\command", "", "REG_SZ", "regsvr32.exe ""%1""")
RegWrite("HKCR\dllfile\Shell\UnRegister\command", "", "REG_SZ", "regsvr32.exe /u ""%1""")
RegWrite("HKCR\*\shell", "", "REG_SZ", """notepad.exe %1""")
RegWrite("HKCR\*\shell\open", "", "REG_SZ", "Open &With Notepad")
RegWrite("HKCR\*\shell\open\command", "", "REG_SZ", "notepad.exe %1")
RegWrite("HKCR\.cmd\ShellNew", "NullFile", "REG_SZ", "")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Search\Preferences", "SystemFolders", "REG_DWORD", "1")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control", "WaitToKillServiceTimeout", "REG_SZ", "4000")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nfo\OpenWithList", "a", "REG_SZ", "NOTEPAD.EXE")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nfo\OpenWithList", "MRUList", "REG_SZ", "a")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nfo\UserChoice", "Progid", "REG_SZ", "Applications\notepad.exe")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "PersistBrowsers", "REG_DWORD", "1")
RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Run", "WindowsWelcomeCenter")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "REG_DWORD", "0")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update", "AUOptions", "REG_DWORD", "1")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update", "IncludeRecommendedUpdates", "REG_DWORD", "0")
RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update", "SetupWizardLaunchTime")
RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update", "BalloonTime")
RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update", "BalloonType")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{98D99750-0B8A-4c59-9151-589053683D73}")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0000", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0001", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0002", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0003", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0004", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0005", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0006", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0007", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0008", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0009", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0010", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0011", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0012", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0013", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0014", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0015", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0016", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0017", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0018", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0019", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0020", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0021", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0022", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0023", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0024", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0025", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0026", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0027", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0028", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0029", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0030", "PnPCapabilities", "REG_DWORD", "24")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{645FF040-5081-101B-9F08-00AA002F954E}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{59031a47-3f72-44a7-89c5-5595fe6b30ee}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{645FF040-5081-101B-9F08-00AA002F954E}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{59031a47-3f72-44a7-89c5-5595fe6b30ee}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}", "REG_DWORD", "0")
RegWrite("HKCR\lnkfile", "", "REG_SZ", "Shortcut")
RegWrite("HKCR\lnkfile", "IsShortcut", "REG_SZ", "")
RegWrite("HKCU\Software\Microsoft\Windows\Curre ntVersion\Explorer\ControlPanel", "RecentView", "REG_DWORD", "0")
RegWrite("HKCR\Folder\shell\Command Prompt\command", "", "REG_SZ", "cmd.exe /k pushd %L")
RegWrite("HKCR\AllFilesystemObjects\shellex\Con textMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13}")
RegWrite("HKCU\Control Panel\Desktop", "UserPreferencesMask", "REG_BINARY", Binary("0xb0120180"))
RegWrite("HKCU\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer", "NoResolveTrack", "REG_DWORD", "1")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\Curr entVersion\policies\system", "verbosestatus", "REG_DWORD", "1")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Contro l\ContentIndex", "FilterFilesWithUnknownExtensions", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\Curre ntVersion\Explorer\Advanced", "Start_LargeMFUIcons", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\Curre ntVersion\Explorer\Advanced", "Start_AdminToolsRoot", "REG_DWORD", "1")
RegWrite("HKCU\Control Panel\Sound", "beep", "REG_SZ", "no")
RegWrite("HKCU\Control Panel\Desktop", "ScreenSaveActive", "REG_SZ", "0")
RegWrite("HKCU\Control Panel\Desktop", "SCRNSAVE.EXE", "REG_SZ", "")
RegWrite("HKU\.DEFAULT\Control Panel\Desktop", "ScreenSaveActive", "REG_SZ", "0")
RegWrite("HKU\.DEFAULT\Control Panel\Desktop", "SCRNSAVE.EXE", "REG_SZ", "")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\System", "ConsentPromptBehaviorAdmin", "REG_DWORD", "0")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\System", "EnableLUA", "REG_DWORD", "1")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\System", "ConsentPromptBehaviorUser", "REG_DWORD", "0")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\System", "EnableLUA", "REG_DWORD", "1")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "", "REG_SZ", "")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Manufacturer", "REG_SZ", "krishi_4k & nice_guy75")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Model", "REG_SZ", "Windows 7 x86 ARC")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Logo", "REG_SZ", "C:\Windows\system32\oemlogo.bmp")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "SupportPhone", "REG_SZ", "www.newage-os.com")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "SupportURL", "REG_SZ", "www.newage-os.com")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "SupportHours", "REG_SZ", "24 Hours")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{645FF040-5081-101B-9F08-00AA002F954E}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{59031a47-3f72-44a7-89c5-5595fe6b30ee}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{645FF040-5081-101B-9F08-00AA002F954E}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{59031a47-3f72-44a7-89c5-5595fe6b30ee}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}", "REG_DWORD", "0")
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}", "REG_DWORD", "0")

runwait("2.exe")
RunWait("4.exe")
RunWait("7-Zip-v9.13.exe")
RunWait("AFP_silent.exe")
RunWait("AR.exe")
RunWait("file.sfx.exe")
RunWait("Hidden.sfx.exe")
RunWait("JRE6u20_silent.exe")
RunWait("Micro.exe")
RunWait("wrar39b5.exe")


RunWait("C:\Windows\ARC2.exe")

See the last line of this file it should run another script which I have placed in windows folder but second script is not running during the installtion. Please suggest a solution.

My second script goes like this:

FileDelete( "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\ARC1.exe")
FileDelete("C:\Windows\Install")


RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{98D99750-0B8A-4c59-9151-589053683D73}")

Shutdown(3)
Exit

Please help me guys I am a newbie as far as Autoit scripts are concerned it is just 6th day of my learning.

Share this post


Link to post
Share on other sites
l3ill

Well the answer to the first question should be fairly simple:

Put the SplashImageOff at the end of the script where you want it to disappear and use the "always on top" attribute to cover up your other goings on.

As for the other I believe I heard somewhere that multitasking in AutoIT is impossible or not recommended. Maybe someone else will have more input.

Good Luck!

Share this post


Link to post
Share on other sites
martin

You need to add some extra code to tell you what is going wrong. Your script can tell you more than we can :idea:

Instead of

RunWait("C:\Windows\ARC2.exe")

I would prefer something like

ConsoleWrite("Run ARC next" & @CRLF);so we know the script actually gets this far
$arc2path = @WindowsDir & "\ARC2.exe";not all PCs use C:\Windows
if not FileExists($arc2path) then 
 msgbox(262144,"Error","Cannot find " & $arc2path)
Else
    runwait($arc2path)
    if @error then msgbox(262144,"Error","Could not run " & $arc2path)
EndIf

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
niceguy75

Thanks to both of you. My most of the problems are already solved except for one. I manage to get the image on the screen during the installation of silent applications, but apart from that image a cmd window is also opening I have also tried "cmd /c" command but not helpimg me.

Please suggest a solution of this problem as well.

Share this post


Link to post
Share on other sites
l3ill

You might go with a full screen splash image along with my tip from above to hide the silent install windows.

Otherwise if you are writing your own silent installs you can use "WinSetState"/"@SW_HIDE",not sure if this works on a dos(cmd) window though.

Share this post


Link to post
Share on other sites
ProgAndy

There is an optional parameter for RunWait to hide windows (Does not work in all cases)

RunWait(@ScriptDir & "\app.exe", @ScriptDir, @SW_HIDE)
Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites
l3ill

There is an optional parameter for RunWait to hide windows (Does not work in all cases)

RunWait(@ScriptDir & "\app.exe", @ScriptDir, @SW_HIDE)

And on the same page the answer I was personally looking for:

Function RunWaitTo run DOS commands, try [i]RunWait(@ComSpec & " /c " & "commandName") ; don't forget " " before "/c"[/i]

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.