Content Type
Profiles
Forums
Events
Everything posted by MHz
-
Get Tools.cab from here.
-
Post error, sorry.
-
Strange how you get full window title in VMWare, but the usual folder title in windows. But, just use an Opt() to sort this script. ("WinTitleMatchMode", 2) This will allow substring title recognition, rather then from the start of the title.
-
C++ Beginner Needs Help
MHz replied to Highor's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Bloodshed software for a good free IDE. -
Maxthon is installed with a inno setup installer. The /D= switch is Inno setup only. If you have only these Inno setup installers on your CD, then fine, but the other installer types will not give you these options. So using anything other then %ProgramFiles%, would be almost impossible to succeed with. You could try in the winnt.sif, to add this entry [source reference] You can change the default location of Program Files using this entry. Replace the drive letter and folder name as appropriate. Your installers would point to this entry, when installed. Good luck.
-
Code for you, BoardBabe. AutoItSetOption("WinTitleMatchMode", 1) Run("setup.exe") ; Suppres Dialog - "To avoid restarting your system after installation..." If WinWait("Adobe Illustrator CS Setup", "To avoid restarting your system", 30) Then WinActivate("Adobe Illustrator CS Setup", "To avoid restarting your system") Send('{ENTER}') EndIf ; Suppres Dialog - "QuickTime 6 is required..." If WinWait("Adobe Illustrator CS Setup", "QuickTime 6 is required ", 90) Then WinActivate("Adobe Illustrator CS Setup", "QuickTime 6 is required ") Send('{ENTER}') EndIfThough, I would expect a silent switch to be used, or more windows to process ? It would start the setup.exe for you. I do not know the Adobe installer, so cannot answer fully to it's usage.
-
REQ: Help activating a window with autoit
MHz replied to Swimming_Bird's topic in Application Installs
Run ( "setup.exe" ) WinWait ("Mathematica 5.1 Setup" , "Installation Folder" ) ControlClick ("Mathematica 5.1 Setup","B&rowse...","Button6") Winwait ("Choose Folder","Please choose the installation folder.") ControlSend ("Choose Folder" , "" ,"Edit1" , @ProgramFilesDir & "\Mathematica 5.1") ControlClick ("Choose Folder","OK","Button1") WinWait ("Mathematica 5.1 Setup" , "Installation Folder" ) ControlClick ("Mathematica 5.1 Setup","I&nstall","Button1") ;================================================= WinWait ("Mathematica 5.1 Setup" , "&Enter license information now" ) ControlClick ("Mathematica 5.1 Setup","&Finish","Button2") WinWait ("Personalize Mathematica" , "Net&work License" ) ControlSend ("Personalize Mathematica" , "" , "Edit3" , "xxxxx-xxxx" ) ControlClick ("Personalize Mathematica" , "OK" , "Button4") Winwait ("Personalize Mathematica" , "&MathID" ) ControlSend ("Personalize Mathematica" , "" , "Edit1" ,"xxxx-xxxxx-xxxxx" ) ControlSend ("Personalize Mathematica" , "" , "Edit2" ,"xxxx-xxx-xxx" ) ControlClick ("Personalize Mathematica", "OK" , "Button2") ProcessClose ( "Mathematica.exe" ); <-- Seems very abrupt ending ? Activating windows should not be needed. All the Control* functions will operate on inactive windows. Windows needed only to be active for functions like Send(). -
There is no default action, when you use the right button on the mouse, to drag. This is consistent.
-
Many thanks. ForceDelete seems to work for me (tested from commandline). I get folders that just will not delete. Often, I can create a new empty folder, come back to it later, and it does not delete, weird behaviour . Unlocker gives no handles to the folder.
-
I would not trust, judging by the icon. Inno normally uses the old 9x installer icon, that alot of installers used it, and some still do. The new style icon, is used for msi's and alot of other exe installers. Pity for the program. It claims no locked handles, yet removing the files or folders, is still denied. ****, will need to find another solution.
-
You can get the uninstall string from the registry. MyUninstaller can display the strings for you easily. It is a standalone executable. Download here. Nirsoft have some very handy programs to use.
-
At a guess, with little info that you supplied. Perhaps when you compile your script, it has a name similar to the executable that you are launching ? It could be executing itself, over and over ? To prevent this, if I have an installer called "setup program.exe", I will call the compiled au3 "_setup program.exe". The underscore is unique, to the filename read. Using underscores, instead of spaces, can assist with spaces in filenames that maybe the root cause of this issue.
-
REQ Virtual CloneDrive 5111 silent method
MHz replied to Astalavista's topic in Application Installs
I suspect that may not be a problem with your winnt.sif entry for unsigned drivers? Though, this Au3 script will check for it. It will close the reboot dialog as well. Sort the code with the comments showing arrows. _SetupVirtualCloneDrive5.au3 -
REQ Virtual CloneDrive 5111 silent method
MHz replied to Astalavista's topic in Application Installs
It is a NSIS installer. Use /S to install. Look out for the unsigned driver window + the reboot dialog, that will popup. -
Do RunOnceEx. You will learn more, with this method, then the GuiRunOnce method. It does batch scripts, as well as registry methods. Autoit can be also used for any or all of it, whether using gui or silent. Autoit with silent installs, can cope with any issue, like popup windows etc with ease. And do not use the $OEM$ for your installers, it is a waste, install them from cd, using the cd letter find command, in the help guide. Once you have done an unattended like this. You will have learnt some good basic knowledge. Then you could use one of the 3rd party utilities to make another disk, for other reasons.
-
I have experienced this before. It was caused by a registry cleaner. It took out the associations for the open entries in one sweep. It kept backups, and I was able to restore them by clicking on the batch file, which the registry cleaner had in it's backup folder.
-
Eject CD with just the necessary code. $driveArray = DriveGetDrive('CDROM') If Not CDTray($driveArray[1], 'open') Then Shutdown(6) Au3 aficionados benefit from learning more. B)
-
Run 2+ Application Installs At Once?...
MHz replied to SCSI6's topic in Unattended Windows 2000/XP/2003
You must lots of money? To have your P4 OCed, running at full load for 20-30 mins. Yet alone the heads on the roms and HDDs, jumping around frantically, to get the data from different software at once. This allows for corruption to happen too easily also. If your at a LAN, and attempt to do this, what happens when the PC dies from this excessive load that has been placed on it. If I smell something burning, I'll be thinking of ya. -
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall I would monitor them here. The uninstall keys are here when installed, and removed upon uninstall. Seems the most suitable to myself, to choose.
-
AutoIT Find Drive Letter of VirtualCloneDrive
MHz replied to cardguy1000's topic in Application Installs
My _FindCD function. Can find a file in the root of the CD, or can search by CD name. Edit: Added small change to msgbox operation. FindCD.au3 -
Just run your programs to remove the pest, then delete all files in your prefetch. Check the programs starting with the system, for any suspicious items. Then you should, with any luck, be ok. I have had a similar problem like this. The virus would keep coming back. The virus would reappear after a reboot, as the prefetch was respawning it. I set my prefetch to boot only now. Saves these problems from re-occurring.
-
Try ISTool to help you with the inno setup scripts. It is a nice addition to inno setup.
-
Oh, I made a typo. Should be .msi. Use the start /wait. Should be: %cdrom%\Software\Alcohol\1952802\start /wait msiexec /i setup.msi /QN /norestart
-
If you have bad sectors, then reformat would be needed. As I have stated, no writing, before recovery. You could try a chkdsk without repair, and see what it brings up. Do it from dos, so you get the switches right for read only operation. If you know anyone experienced with HDD recovery, I would certainly ask them, for help. System restore, maybe on for that drive as well, which could be a concern? Good luck with any success.
-
Regular expressions are still in beta. You can close the active window, by just using "" instead of giving a title. Also, WinGetHandle() is an option as well, instead of the title. You could change the Opt() setting for window text to 2. Then you can pick a substring, witch can be part of the name of the folder only. I would not close the explorer process, while running Autoit scripts. This is a brutal method for a simple problem. This could affect the outcome of your script, unless you insert some code to handle this process. Asking a window to close, is better then killing a main system process.