Jump to content

MHz

Member
  • Posts

    1,691
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Everything posted by MHz

  1. cmd /C RD /S /Q %systemdrive%\installWell, I cannot fault this. It does work, as tested. I would possibly consider timing as the issue. Re-adding a entry into reononceex maybe failing? And an entry into runonce, which happens a split second after runonceex, maybe too early also. Something is still running? Which folder, or what file, would be a good clue. My last entry is an Autoit script, that is executed from the run key, waits for a program to launch, does some startmenu cleaning, that is not available in runonceex, deletes the run key, then deletes itself. Anyway, try to put this at the end of your autoit file. I would assume it is on the HDD also? This will delete the autoit file, then delete the install folder, by a created temporary batch file. The batch file loops with goto, until the items do not exist no more. Func OnAutoItExit() Local $cmdfile FileDelete(@TempDir & "\Scratch.bat") $cmdfile = ':loop' & @CRLF _ & 'del "' & @ScriptFullPath & '"' & @CRLF _ & 'if exist "' & @ScriptFullPath & '" goto loop' & @CRLF _ & ':folder' & @CRLF _ & 'rd /s /q %systemdrive%\Install' & @CRLF _ & 'if exist %systemdrive%\install goto folder' & @CRLF _ & 'del ' & @TempDir & '\Scratch.bat' FileWrite(@TempDir & "\Scratch.bat", $cmdfile) Run(@TempDir & "\Scratch.bat", @TempDir, @SW_HIDE) EndFunc
  2. MHz

    CMenu

    I will look into it. Do you know of a small program that uses it?
  3. %UserProfile%\Start Menu\Programs\Accessories\Program Compatibility Wizard.lnk Takeshi is correct. There is no shell folders in start menu\programs. So scanning the registry would come up with nothing. Just create a script to remove them.
  4. Setup your start menu settings, how you want it, then run this. reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" %systemdrive%\DesktopSettings.regthe reg file created, will contain the start menu settings.
  5. Trick question? Autoit can can do silent installations as well. AutoIt installs everything for UACD. I can manage everything with it. I can clean up the startmenu efficiently, test events, so it will do if true. All workings that related to a particular install, can be placed within the one script. AutoIt can make environment variables available instantly, without reboot. I could just fill up the page with reasons of why AutoIt is so much better to use. You can use dos and batch scripts, to do the task. You will need third party commandline tools to help fill the problems encountered. Some installers will be almost impossible to accomplish with using this method. Now, which is easier to use overall. I would have to say AutoIt. If you are not used to using both, Dos or AutoIt, then it will be hard either way. Manage what? It does manage better. Alot of posts I see, is not being able to do something by batch script, which can be done by AutoIt. If you mean that you have not put in effort to learn how to use AutoIt, then that is your demise. Overall, If you put effort in to learn any programming language, then you will benefit with using computers. That being stated, everyone should have atleast the simple knowledge of passing a Dos commandline. Your choice, MALEADt
  6. Your %systemdrive% variable will not expand, as it is in a "Reg_sz" key. Use "Reg_Expand_sz" instead.
  7. Why both? The script that I have shown, does the dbx files (that is your emails) Compile it, and run it with YourCompiledName.exe /backup. You will see all the files that it can backup. Remove the dbx files, if you do not want to restore them. To restore, just use YourCompiledName.exe /restore
  8. It will backup your address book, restore registry settings. Everything works from the current directory, that it is executed from. Keep it all in one folder.
  9. I would assume it is the same as the later versions, Installshield. It is archived then PackageName.exe /s /sms /f2"c:\ProgramName.log" else unpacked setup.exe /s /a /s /sms /f2"c:\ProgramName.log" If your not installing from CD, you could leave out the /f2... switch
  10. Attachment??? What does cmdow @/HID in the title, refer to???
  11. MHz

    Software to..

    You have run Active Delete, and you think you can recover space by cleansing the deleted contents. Only way to get more drive space, is to backup and delete some more, or buy another HDD. Or is security your issue? If so, just google. Some good freeware out there, that does a permanent deletion.
  12. Simply 100% AutoIt. If $CMDLine[0] = 1 Then If $CMDLine[1] = '/backup' Then RunWait('Reg.exe export "HKCU\Identities" Indentities.reg', @ScriptDir, @SW_HIDE) RunWait('Reg.exe export "HKCU\Software\Microsoft\Internet Account Manager" Internet_Account_Manager.reg"', @ScriptDir, @SW_HIDE) RunWait('Reg.exe export "HKCU\Software\Microsoft\Outlook Express" Outlook_Express.reg"', @ScriptDir, @SW_HIDE) RunWait('Reg.exe export "HKCU\Software\Microsoft\WAB\WAB4" AddressBook.reg"', @ScriptDir, @SW_HIDE) $user_id = RegRead('HKCU\Identities', 'Default User ID') $store_root = RegRead('HKCU\Identities\' & $user_id & '\Software\Microsoft\Outlook Express\5.0', 'Store Root') $store_root = StringReplace($store_root, '%userprofile%', '') FileChangeDir(@UserProfileDir & $store_root) FileCopy('*.dbx', @ScriptDir & '\') $wab_file = RegRead('HKCU\Software\Microsoft\WAB\WAB4\Wab File Name', '') FileCopy($wab_file, @ScriptDir & '\') ElseIf $CMDLine[1] = '/restore' Then RegDelete('HKCU\Identities') If Not @error Then RunWait('Reg.exe import Indentities.reg', @ScriptDir, @SW_HIDE) EndIf RegDelete('HKCU\Software\Microsoft\Internet Account Manager') If Not @error Then RunWait('Reg.exe import Internet_Account_Manager.reg', @ScriptDir, @SW_HIDE) EndIf RegDelete('HKCU\Software\Microsoft\Outlook Express') If Not @error Then RunWait('Reg.exe import Outlook_Express.reg', @ScriptDir, @SW_HIDE) EndIf RegDelete('HKCU\Software\Microsoft\WAB\WAB4') If Not @error Then RunWait('Reg.exe import AddressBook.reg', @ScriptDir, @SW_HIDE) EndIf EndIf $user_id = RegRead('HKCU\Identities', 'Default User ID') $store_root = RegRead('HKCU\Identities\' & $user_id & '\Software\Microsoft\Outlook Express\5.0', 'Store Root') $store_root = StringReplace($store_root, '%userprofile%', '') DirCreate(@UserProfileDir & $store_root) FileCopy(@ScriptDir & '\*.dbx', @UserProfileDir & $store_root, 1) $wab_file = RegRead('HKCU\Software\Microsoft\WAB\WAB4\Wab File Name', '') $count = StringInStr($wab_file, '\', 0, -1) $wab_file = StringLeft($wab_file, $count) FileCopy(@ScriptDir & '\*.wab', $wab_file, 1) EndIf This will do the registry entries, *.dbx files and address book, saved and restored from the current run directory. Accepts /backup, to backup files to current directory. Accepts /restore, to restore reg files, *.dbx files and the address book. Just compile it with AutoIt, and use the switches, as mentioned.
  13. MHz

    CMenu

    Thanks and you are so true. Timesaving is an important concept. The more you save, the more you can commit, to do more. Or spend more precious time with family and friends.
  14. MHz

    CMenu

    Take a close look at Identify Installer, when it shows you the switches. You may see descriptions like this: (All switches MUST be upper case. No inverted comma's) Some installers are case sensitive. NSIS likes uppercase only. It should do most. No promises on 100% success, as depends on who created the thing. Never an installer, authored the same. The parameters sent the installer are generic. Notify the program creator, and complain.
  15. MHz

    CMenu

    Superb, enjoy it.
  16. Basic of a root kit here. There some root-kits around, that make almost no pc safe. They are very advanced hacking tools.
  17. With a registry file tweak Windows Registry Editor Version 5.00 ; Windows Media Player 1st Run Disable ; ==================================== [HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences] "AcceptedPrivacyStatement"=dword:00000001 "FirstRun"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer] "GroupPrivacyAcceptance"=dword:00000001
  18. yes and yes. Major types like Installshield, Wise, NSIS..etc have standard switches to suit each of their type. How do you think Identify Installer come up with switches. They are standard, for their type.
  19. 1. The icon, some installer have a standard icon type, to that installer type. 2. File properties. Look in the version tab for clues. 3. But I just right click and use Identify Installer in CMenu.
  20. That hotfix was released 5 months ago. You may need to install them in their correct time of release? The hotfix does display the intregrate switch...
  21. Windows Media Player 8. The others win the ugly looks trophy.
  22. Tried firefox for a month, and was glad to uninstall it. Lots of invalid claims for a browser that has bugs, little support for numerous items. The extensions do not help with what is sacrificed by using it. Suggestions of using it, are of no help to anyone. I stopped using a hosts file when it was getting to 3-5Mbs. It slows things down too much. I would rather see the ads, rather then wait longer, for the hosts file to be read, each time. If you do use it. Keep to your own entries, and keep it small. You only need to block the sites, that hinder your own browsing habits. An interesting program is Hostsman, that will help to easily manage the Hosts file. edit: added hostsman reference.
  23. MHz

    CMenu

    Updated to version 1.5. Please see 1st post for information and download link. Lots more incrediable features added.
  24. 1. Identify Installer, is one of the inbuilt features of CMenu. 2. Even better. 3. As of version 1.5 - Improved detection rates. As USSF is missing some known installers. - Ability to list, unpack, admin installs, record installs, silent installs, create AutoIt scripts...all from the Identify Installer window. - Rightclick, for fast results. For more benefits. Check it out for yourself. Any further questions, will only be answered, in the CMenu topic. I do not want to hijack Zosters thread.
  25. You maybe right RogueSpear. It is a strange program to navigate. I tried some VBScript sendkeys, but kept getting mixed results. I did not have much like with AutoIt to directly operate the controls. Using the mouse, as you stated, may do this for you. AutoIt can work by screen, window or client window coordinates. So this is could be achieved. urie supplies a link the a customized version of Scite, which has all the onboard tools to help. Check the AU3Recorder in the tools menu. AutoIt Download page (Scite4AutoIt3 link is also on the page, just look down the page) You may want to look at this sometime. If you are good with VBScript, then the Com features would of some interest? AutoIt Beta Download page (this has Com, ActiveX, and latest additions, Scite4AutoIt3 can support both release and beta versions installed, at the same time) You can use VBScript as your primary language, but nothing wrong with a little AutoIt, to fill the gaps.
×
×
  • Create New...