Jump to content

MHz

Member
  • Posts

    1,691
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Australia

Everything posted by MHz

  1. MHz

    CMenu

    Sorry, additional links will be supplied with version 1.5. This will be released very shortly. I am just performing some last minute touches.
  2. It Just ran the script, with no selection box <{POST_SNAPBACK}> You did not set the cleanmgr into registry. Ay first you need to record the settings to registry. cleanmgr.exe /dc /sageset:1 This is saved setting number 1, by using the /sageset: parameter. /d is the chosen drive letter, c in this case. When run, a window will open with checkboxes for each area to cleanup. When user selected are checked, and ok is pressed, then it is recorded in registry. Then you just need to set this command, to run from Task Manager. cleanmgr /sagerun:1 That will run it at the set time by Taskmanager. Automatic junk cleanup. No need for an extra program, as it would be more unneeded junk to the harddrive.
  3. Why do you need to go into the temp directory, in the first place? You can just use the /a switch, on the installer. The installer will unpack, to a location, of your choice. As for tempory files, programs may read and write, from that location. So needlessly removing files, can upset them. This is why the temp folder is hidden from the users sight.
  4. IniReadSection reads the whole section into an array. $strTest[0][0] is the number of keys in your array. To access the information, you use a For Next loop, as you display. $strTest[$i][0] outputs the key name, in the loop. $strTest[$i][1] outputs the value, in the loop. But you are using the equals sign, to make a direct compare of key to value. Sample test.ini [section] key1=value1 key2=value2 key3=value3 Sample code $var = IniReadSection("test.ini", "section") If @error Then MsgBox(4096, "", "Error occured, probably no INI file.") Else For $i = 1 To $var[0][0] MsgBox(0, 'Key', $var[$i][0]) MsgBox(0, 'Value', $var[$i][1]) Next EndIf MsgBox(0, 'Count', $var[0][0] & ' keys read') This should show in msgboxes sequence: key1 value1 key2 value2 key3 value3 3 keys read This makes for very quick retrieval of reading ini files. And accessing the arrays, to quickly process the information. Now how you want to use this 2 dimension array, is up to you. Here is a snippet of code, of processing the information, for a treeviewitem. $file = @ScriptDir & "\tree2.ini" $group = IniReadSection($file, "TLR") If @error Then MsgBox(4096, "", "Error occured, probably no INI file.") Else For $a = 1 To $group[0][0] $group[$a][0] = GUICtrlCreateTreeViewitem (StringTrimLeft($group[$a][1], 6), $treeview) $sub = IniReadSection($file, $group[$a][1]) For $h = 1 To $sub[0][0] $sub[$a][0] = GUICtrlCreateTreeViewitem (StringTrimLeft($sub[$h][1], 6), $group[$a][0]) Next Next EndIf
  5. You could just use TaskManager and Cleanupmgr.exe? Why look anywhere else?
  6. Sometimes. Some programs make constant use of the temp directory. Though, I do manual tidy up, of empty folders etc.
  7. Looks very good Sixpack. I would probably remove the *.dbx, from the FileCopy() function. I tried earlier with the reg entries to Virtual PC. Seems like the ID should be replaced with the one in registry. Perhaps a StringReplace, on the reg files, but the entries still seem to work. Busy with CMenu project, currently. Will look into this later. You can also use that program, to get the files? Edit: On second look. FileCopy($value & '*.dbx', @ScriptDir & '\mail\', 1) That looks better? The reg entry also contains a trialing backslash.
  8. Hi SixPack, Always nice to see a friend. The script does not make reg files. It's purpose is to locate the store folders from registry, and copy the *.dbx files there. The 40kb backup program, that I supplied a link to, copies the *dbx and exports the reg files, to a chosen folder. So then you can script the process. Given time. I maybe able to create a full solution. Should do the address book too? @Oleg_II That link looks like a good option.
  9. I reviewed your batch. This is what I finished with. cmdow @ /HID @echo off :: Start >> set AUPSM="%ALLUSERSPROFILE%\Start Menu" del "%AUPSM%\New Office Document.lnk" del "%AUPSM%\Open Office Document.lnk" del "%AUPSM%\Set Program Access and Defaults.lnk" del "%AUPSM%\Windows Catalog.lnk" del "%AUPSM%\Windows Update.lnk" :: Start >> Programs >> set UPSMP="%USERPROFILE%\Start Menu\Programs" del "%UPSMP%\Remote Assistance.lnk" :: Start >> Programs >> Accessories >> set AUPSMPA="%ALLUSERSPROFILE%\Start Menu\Programs\Accessories" rd /s /q "%AUPSMPA%\System Tools" rd /s /q "%AUPSMPA%\Communications" set UPSMPA="%USERPROFILE%\Start Menu\Programs\Accessories" del "%UPSMPA%\Tour Windows XP.lnk" del "%UPSMPA%\Program Compatability Wizard.lnk" del "%UPSMPA%\Synchronize.lnk" del "%UPSMPA%\Command Prompt.lnk" DEL "%systemroot%\*.bmp" DEL "%systemroot%\system32\dllcache\*.scr" DEL "%systemroot%\system32\*.scr" RD /S /Q %systemdrive%\I386\$OEM$\ RD /S /Q %systemdrive%\install\ RD /S /Q %systemdrive%\Logfiles\ net user aspnet /delete shutdown.exe -r -f -t 5 -c "Windows will now restart...." EXIT The guys are correct, that you are are choosing the wrong profile directories.
  10. It would be easier to perform an Admin install setup.exe /a If you want a better installer indentifier, try CMenu.
  11. MHz

    CMenu

    I can see the issue. You are working for those separators. I have noticed if you double them up. They may then show up. It will just take a little manipulation, to get the result that you want. The OS seems to make the rules for the main branch of the contextmenu. Edit: When I say double them up, I mean like so: --- Separator --- Separator So 2 entries are next to one another.
  12. MHz

    CMenu

    Certainly could be. I would not like it to be separate items, but a complete file modifier window, that is launched. This may take alittle time to implement, if to be added. Tests are proving well. Identify Installer will also handle unpacking, admin, and silent installs. Still need to tidy up and change the helpfile to reflect any changes made. It should not be too much longer for next release. Maybe end of the week? Currently, no new items added to the context menu list.
  13. MHz

    CMenu

    The program is the installer, the uninstaller and the main program. So it does not use a third party installer. The AutoIt entries should not be present, if you have not got AutoIt installed. This is so non AutoIt users do not have to see unrequired entries, that will not be used. In the support folder, you will see a batch file called RegExport.bat. If you execute it, it will export the key, with all your CMenu items in it. It will be a reg file, that you can import back in. Before adding it back in. Use CMenu /clear, to remove the existing entries. Thus your saved entries, will be returned, once you execute the bat file.
  14. MHz

    CMenu

    To add a separator: In the editor, just select the separator, with the item button. Then click ok. On the main editor window, you can see up and down buttons. That can move your items, up or down the order. It should work, that easy. Highlight and move up or down. Glad you are finding it useful.
  15. The program is not automated. It just digs out the files and the registry entries for you. It can put them back in. But you want to script it, to go back in. That is what the 4 lines of AutoIt script does. It copies the dbx file to your email store folder. Then you just enter the reg entries, that the little program created.
  16. Yes. Here is some AutoIt code, to find the Store Root $key = RegRead('HKEY_CURRENT_USER\Identities', 'Default User ID') $value = RegRead('HKEY_CURRENT_USER\Identities\' & $key & '\Software\Microsoft\Outlook Express\5.0', 'Store Root') MsgBox(0, 'Distination to copy files', $value); Display the result. Here is a nice little 40 kb app, that helps to backup the files, for you here. Edit: This script should do the task. Have this next to the folder called mail. Execute it, and it will copy all the *.dbx files to the users store folder. Opt('ExpandEnvStrings', 1) $key = RegRead('HKEY_CURRENT_USER\Identities', 'Default User ID') $value = RegRead('HKEY_CURRENT_USER\Identities\' & $key & '\Software\Microsoft\Outlook Express\5.0', 'Store Root') FileCopy(@ScriptDir & '\mail\*.dbx', $value, 1) The backup program above, also creates reg files. Just use regedit /s to import them into the registry.
  17. You may need to use UPHClean Service to help you solve the problem. It can log the offender, and unload the registry, before shutdown.
  18. Check here. An AutoIt script, that does Files and Settings wizard. Hopefully, it should be SP2 ok.
  19. Hi Siginet, Nice little program, you have created. I have started it up, for a look. I notice that someone cannot operate the program without closing the helpfile first. Perhaps you could change this? Also, when browsing for a folder, the gui remains enabled. This allows guigetmsg to continue adding to the stack. I will let you know of other issues, when I get to do some packing.
  20. Authentication is a requirement for upgrade versions. Only solution, is to buy a full version.
  21. You have nVidia 77.72 drivers. Well, check the tip here. nVidia seems to make some bad versions at times.
  22. Congrats. You have got a 25 post count of spam. for this thread. Unbelievable effort.
  23. Video playback has alot to do with video drivers. Are you using nVidia or ATI? Version of driver? Codecs can conflict. I would assume that the mega pack would have divx support already? xvid also, can decode divx.
  24. MHz

    CMenu

    Thanks for the script. I may add innounp directly to Identify Installer. That will innounp, with no Dos box. and info available in the ISetup.hlp file if you wanted to update your Inno_Setup.txt <{POST_SNAPBACK}> Priceless information. I will update. Will be added and noted for Inno Setup 5.1.4 and above. Also empty /COMPONENTS= is not default components now, instead no components. That could be nasty change, to installations. Thanks benners.
  25. MHz

    CMenu

    I can see a purpose to add this. I will work on the addition of Innounp.exe. I will consider further additions as well.
×
×
  • Create New...