Jump to content

MHz

Member
  • Posts

    1,691
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Everything posted by MHz

  1. MCT, What is the entry level and recommendations for this installer ? I have XP Pro and I do not have msinet.ocx in the system directory. The other runtime files are not native to a XP install either when you compare with the I386 source directory. I highly doubt that it is a waste of space when the runtime files are needed.
  2. I made a VBScript for CCleaner v1.26, just to pass some time. Set WshShell = WScript.CreateObject ("WScript.Shell") Run "CCleaner v1.26.exe" WinWaitActive "Installer Language" ' Language Prompt Send "{ENTER}" WinWaitActive "CCleaner v1.26 Setup" ' Welcome Send "{ENTER}" WinWaitActive "CCleaner v1.26 Setup" ' Licence Agreement Send "{ENTER}" WinWaitActive "CCleaner v1.26 Setup" ' Choose Install Location Send "{ENTER}" WinWaitActive "CCleaner v1.26 Setup" ' Install Options Send " {DOWN 2} {DOWN} {DOWN} {ENTER}" WinWaitActive "CCleaner v1.26 Setup" ' Installing Sleep 3000 WinWaitActive "CCleaner v1.26 Setup" ' Completing Send "{ENTER}" Set WshShell = Nothing WScript.Quit ' Exit Sub Run(file) file = chr(34) & file & chr(34) WshShell.Run file End Sub Sub WinWaitActive(text) Do : WScript.Sleep 250 : Loop Until WshShell.AppActivate(text) End Sub Sub Send(text) WshShell.Sendkeys text End Sub Sub Sleep(amount) WScript.Sleep amount End Sub The length of the Sleep 3000 is crucial for success as the window titles are all the same (except for the 1st). This makes it differcult to monitor the installing window itself as for the same title also.
  3. I think so too. For the question of where the actual working directory is when executing a file from the registry, I received this result with executing this code. MsgBox(0, 'WorkingDir is ...', @WorkingDir) The return was C:\ If you had you script within the systemdrive path then your original code may have worked. Nothing better though of being explicit with the fullpath though.
  4. Download page Nice thought, but that is only Save As PDF, as compared to show As PDF within the browser. If not mistaken, I believe that the original post wants to Save a Hmtl page directy to PDF is the question in which a simple extension cannot do. That is what Adobe Acrobat Pro can do. I use PDFCreator, but seems incapable of doings this, and it is 20 MBs in size..
  5. This is a nice open source console which communicates to the hidden dos console to operate. Looks appealing to view. It can be included to the rightclick via included inf.
  6. Yep, that is what I use and works . Adaware v6.181 was that last version of Adaware pro 6 that I know of and that was released about some 3-4 years ago .
  7. Untested, but you should add a backslash infront of each internal double quote of the quoted command. REG ADD %KEY%\010 /V 2 /D "\"%systemdrive%\Install\Applications\NAV2005\NAVSETUP.EXE\" /O REBOOT=ReallySuppress /QB" /f As for registration, sorry, I use free Avast4Home instead for home pc.
  8. Did you even look at the thread title or the 1st thread ? You do realize that your limited switchless installers are possibly big eula breakers. Telling people to search rather then help with their real problem is a tad rude. Repacking was not the request of the thread creation.
  9. Some here just want a one line with /S without any windows shown at all. Good luck to them as I am glad to use other methods. I do not understand what is so clearer about a Wsh script ? Atleast say it is more native to the OS and then I may believe you some more. Wsh scripts are fine to me for some things, but looking at those Sleeps to control the flow looks so blind and unreliable. Seriously, 18.5 seconds before a (blind) Send ? If I did that with Sleeps and Sends in AutoIt, then I would perhaps not even bother with using it. Amongst the AutoIt standard install is a Dll called AutoItX3.dll. This Dll can help assist other languages. An 85 Kb Dll to make Wsh into a reliable install automator is a good investment IMHO. Example VBS with AutoItX3 Set oAutoIt = WScript.CreateObject("AutoItX3.Control") oAutoIt.Run "DivXCreate.exe" oAutoIt.WinWait "Language selection", "Please select the language" oAutoIt.ControlClick "Language selection", "Please select the language", "Button1" oAutoIt.WinWait "DivX Create Bundle", "Welcome" oAutoIt.ControlClick "DivX Create Bundle", "Welcome", "Button2" oAutoIt.WinWait "DivX Create Bundle", "License Agreement" oAutoIt.ControlCommand "DivX Create Bundle", "License Agreement", "Button4", "Check", "" oAutoIt.ControlClick "DivX Create Bundle", "License Agreement", "Button2" oAutoIt.WinWait "DivX Create Bundle", "Choose Components" oAutoIt.ControlClick "DivX Create Bundle", "Choose Components", "Button2" oAutoIt.WinWait "DivX Create Bundle", "Selecting an installation folder" oAutoIt.ControlClick "DivX Create Bundle", "Selecting an installation folder", "Button2" oAutoIt.WinWait "DivX Create Bundle", "Free! Google Toolbar" oAutoIt.ControlCommand "DivX Create Bundle", "Free! Google Toolbar", "Button4", "UnCheck", "" oAutoIt.ControlClick "DivX Create Bundle", "Free! Google Toolbar", "Button2" oAutoIt.WinWait "DivX Create Bundle", "Free! Google Desktop" oAutoIt.ControlClick "DivX Create Bundle", "Free! Google Desktop", "Button5" oAutoIt.ControlClick "DivX Create Bundle", "Free! Google Desktop", "Button2" oAutoIt.WinWait "DivX Create Bundle", "Installation Complete" oAutoIt.ControlClick "DivX Create Bundle", "Installation Complete", "Button2" Set oAutoIt = Nothing It will reliably wait for each window and clicks the buttons and checkboxes directly without any need to be active. @BoardBabe Easy to take out the working directory which is the shortcut directory. ; Remove shortcuts. If _MainShortcut('DivX Codec\Decoder Configuration Utility.lnk') Then DirRemove(@WorkingDir, 1); <---- remove shortcut directory _Desktop('DivX Converter.lnk') _Desktop('DivX Movies.lnk') _Desktop('DivX Player.lnk') EndIf The _MainShortcut() function changes the working directory as does the _Desktop() and the _QuickLaunch() functions also.
  10. Thanks for the reply on whether it was hidden. I can see on the last window that the last 2 Button numbers have reversed. That may explain why the readme checkbox was not unchecked as the script was clicking on the finish button instead. The ControlClick() with the "Static2" looks like a possible unneeded click while recording ? AutoItMacroGenerator can record a nice install script, quick and easy sometimes. Glad you have a working solution, seco.
  11. This install script is quite different to what I normally see. I can understand the possible failure that can happen as for the selection of functions and how they are used. I am not going to try to patch up this script to make it work as it needs a concept change to ensure success. When using functions that require active windows, then you have to ensure the windows will in fact be active. Take note of the comments. ; Commented useless Opt() functions. Opt("WinWaitDelay", 200) ;~ Opt("WinTitleMatchMode", 1) Opt("WinDetectHiddenText", 1) ;~ Opt("MouseCoordMode", 0) ;~ Opt("ExpandEnvStrings", 1) Opt("WinSearchChildren", 1) Opt("WinTextMatchMode", 2) Opt("TrayIconDebug", 1) Run("BLSSETUP.EXE") ; If the window does not appear then the script will wait forever so ProcessClose() and Exit will never happen. Add a timeout parameter to make useful. If Not WinWait("Setup - SpywareBlaster") Then ProcessClose("BLSSETUP.EXE") Exit EndIf ; Just activates the window. No check to insure that the window will be active for Send(). i.e. use WinWaitActive() or even a loop to check. If Not WinActive("Setup - SpywareBlaster") Then WinActivate("Setup - SpywareBlaster") EndIf Send("!n") ; All following Do loops use WinGetText() which can operate with non active windows also which can make the following Send() functions fail as Send() needs active windows to send to. Do $text = WinGetText("Setup - SpywareBlaster", "License Agreement") Until StringInStr($text, "I &accept the agreement") Send("!a") Sleep(100) Send("!n") Sleep(100) Do $text = WinGetText("Setup - SpywareBlaster", "Information") Until StringInStr($text, "Please read the following important information") Send("!n") Do $text = WinGetText("Setup - SpywareBlaster", "Select Destination Location") Until StringInStr($text, "Setup will install SpywareBlaster into the following folder.") Send("!n") Do $text = WinGetText("Setup - SpywareBlaster", "Select Additional Tasks") Until StringInStr($text, "Which additional tasks should be performed?") Send("!n") Do $text = WinGetText("Setup - SpywareBlaster", "Ready to Install") Until StringInStr($text, "Click Install to continue with the installation") Send("!i") Do $text = WinGetText("Setup - SpywareBlaster", "Completing the SpywareBlaster Setup Wizard") Until StringInStr($text, "Setup has finished installing SpywareBlaster") Sleep(100) Send("{SPACE}") Sleep(100) Send("!f") ExitIf you need help with better function selection then just ask.
  12. @Yzöwl Thanks for defining the /A switch. Nice to know it has that capability. @yoz7120 Well that file hosting was awfully short . Uploaded to a different host, hopefully for a longer period this time.
  13. agreed. it is meant for global wildcards. * Hmm, you lost me here. /A is for specifing an Attribute. If you do not not want to specify an attribute then why use /A ? i.e /A:H for hidden files. Perhaps your using /A when you do not need to ?
  14. Nice Yzöwl, but the new Help.exe in DllCache would be useless ? You made me review my batch and realize my 2nd line is perhaps useless as the 3rd line overwrites anyway without prompt. I think yours should be to delete 1st in dllcache then overwrite with the 2nd but you forgot the /y so you may get the prompt ? Your examples of DOS helps to expand my knowledge, thanks.
  15. Virtual machines use your host drivers to communicate with your hardware. Internally, the driver installation cannot detect the NIC as the VM does not use drivers internally except for the VMWare drivers, which are perhaps more like a driver wrapper, which you install after the OS is installed. If you install nVidia or ATI graphic drivers then you get the same as it will not detect your physical hardware. You need to think virtual...
  16. You have not mentioned it yet, but I am guessing that the checkbox maybe hidden. If so then you may need to send in the mouse to do it for you. ; Use AutoIt Info Tool and set it to window coord mode. ; Get the x & y coords of the checkbox and replace the 5's below. Opt('MouseCoordMode', 0) MouseClick('left', 5, 5) ; You could also add a processclose at the end of install, as a backup ? If ProcessExists('notepad.exe') Then ProcessClose('notepad.exe')
  17. MHz

    CMenu

    Your RunOnceEx command looks fine. The windows are automated and have a 5 second timeout for the wait. If you have a window idle for more then 5 seconds then it is fair to say that the automation has failed to deal with the window and manual assistance maybe needed. There is a very small chance that failure can happen for an unknown reason. Heh, lightning normally does not strike the same spot twice so your next install should be a success.
  18. This is a DVD install and not RIS so you have to learn the differences. This is quoted from Ref.chm for the [unattended] section of Unattended.txt (Winnt.sif):
  19. From the missing quotes in your 2nd example, I hope your not using notepad ? A free useful editor is here if needed, that will help you avoid making such mistakes. See if AutoIt Info Tool shows you if the control is hidden. The editor above has AutoItMacroGenerator in it. Start AutoItMacroGenerator in recording mode and click the checkbox and see the line it records. Sometimes 2 controls occupy the same space and 1 maybe hidden. You could then be trying to uncheck the wrong control which is hidden. ControlCommand() can also be used to un/check checkboxes as example below. WinWait("Adobe Photoshop CS2 - Setup", "The InstallShield Wizard has successfully installed Adobe Photoshop CS2.") ControlCommand("Adobe Photoshop CS2 - Setup", "The InstallShield Wizard has successfully installed Adobe Photoshop CS2.", "Button3", "UnCheck", "") ControlClick("Adobe Photoshop CS2 - Setup", "The InstallShield Wizard has successfully installed Adobe Photoshop CS2.", "Button4")
  20. Did you read through the 1st post ? The 1st post states that the command that you show will fail. And do you know why, I will tell you since you did not do a Start /? as I stated in my last post. The parameter that has the 1st set of double quotes is the title for XP OSes and above. To use Start /Wait you would have to do this: start /wait "" "%CDROM%\common\alcohol\setup.msi" /qb Reboot=ReallySuppress else have no spaces and use no quotes. Or you can do it the correct way with running msiexec directly.
  21. I don't unstand the problem. I always registered UltraISO through "HKCU\Software\EasyBoot Systems\UltraISO" key without problem. It has worked for each version for as long as I can remember.
  22. Start /? will tell you why. Not even sure why you are using Start /Wait as without waits by default anyway. This is what I would simply use. msiexec /i %CDROM%\common\alcohol\setup.msi /qb Reboot=ReallySuppress
  23. Have a look at ComputerType in [unattended] section in Winnt.sif as noted in Ref.chm. It has the mention of ACPI and HAL layer.
  24. The highlighted text parameter can be easily obtained from the Window Info Tool. Example:
  25. Run("RUNDLL32 SHELL32.DLL,Control_RunDLL intl.cpl,@0,2") ; Tick Checkbox to apply all setting... WinWait("Regional and Language Options", "Apply all settings to the current user account and to the &default user profile") ControlClick("Regional and Language Options", "Apply all settings", 1054) ; Messagebox of confirmation. WinWait("Change Default User Settings") ControlClick("Change Default User Settings", "", 2) ; Wait for window to enable again to apply changes and then click ok. While Not BitAND(WinGetState("Regional and Language Options", "Apply all settings"), 4) Sleep(10) WEnd ControlClick("Regional and Language Options", "Apply all settings", 12321) ControlClick("Regional and Language Options", "Apply all settings", 1) Check your ControlIDs are ok and this should work fine. I get a different ControlID number for the checkbox but maybe the language or version of the OS may make the difference ?
×
×
  • Create New...