Jump to content

Geej

Member
  • Posts

    635
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Singapore

Everything posted by Geej

  1. Geej

    sp*.cab

    I think you have a modified HF script .The code you post in line 3431 does not have this command. The full command is in line 3425 where the full code is IF EXIST SOURCE\I386\SP%SP%.CAB ( DEL/Q/F SOURCESS\I386\SP*.CAB&MD WORK\SPUP&EXPAND SOURCE\I386\SP%SP%.CAB -F:* WORK\SPUP XCOPY/DEHY WORK\SPUP SOURCESS\I386\DRIVER ECHO Merged extracted driver packages into one folder ECHO>WORK\TXTSDATA.TXT DriverCabName=DRIVER.CAB FINDSTR/VBI "DriverC SP1.CAB SP2.CAB SP3.CAB SP4.CAB SP5.CAB" SOURCESS\I386\TXTSETUP.SIF>TXTSETUP.SIF MOVE/Y TXTSETUP.SIF SOURCESS\I386 IF EXIST SOURCESS\I386\DOSNET.INF ( FINDSTR/VI "\,SP1.CAB \,SP2.CAB \,SP3.CAB SP4.CAB SP5.CAB" SOURCESS\I386\DOSNET.INF>DOSNET.INF MOVE/Y DOSNET.INF SOURCESS\I386 ) ) Looking at it, it will only delete if ----> IF EXIST SOURCE\I386\SP%SP%.CAB <----- I'm using hfslip-1.7.10_beta_J.cmd
  2. Geej

    sp*.cab

    I never have to modify HFscript if using this addon, made by ricktendo64 Cheers
  3. I have an autoit code for this too Note: _SelfDelete func was not mine. It was shared in autoit forum. ;uninstall.au3 If ProcessExists ("ProgramName.exe") then ProcessClose ("ProgramName.exe") FileDelete ("ProgramName.exe") Call ("_SelfDelete") Func _SelfDelete($iDelay = 0) Local $sCmdFile FileDelete(@TempDir & "\rem.bat") $sCmdFile = 'ping -n ' & $iDelay & '127.0.0.1 > nul' & @CRLF _ & ':loop' & @CRLF _ & 'del "' & @ScriptFullPath & '"' & @CRLF _ & 'if exist "' & @ScriptFullPath & '" goto loop' & @CRLF _ & 'del ' & @TempDir & '\rem.bat' FileWrite(@TempDir & "\rem.bat", $sCmdFile) Run(@TempDir & "\rem.bat", @TempDir, @SW_HIDE) EndFunc
  4. Thanks again. Tried your revised code in C:\Program Files\Vol Ctrl\New Folder\WOWL.cmd I launch your script directly in windows explorer with Line 24 as RD/S/Q "%~dp0" : Can delete all files and sub folder except New Folder where WOWL.cmd resides. It is left with an empty folder. Any other way to remove this New Folder? (where the script resides) The initial blocking/checking codes looks good, thanks. (I run under XP, English) Oh, yes. Something come to my mind. Possible to check whether script has admin right as well? Regarding making script more universal, currently I have no idea how to do that. I will just set it manually if need to, lol jaclaz, thanks for the link but I see most of the discussion are self-deleting the executing file, not current folder where the executing file resides.
  5. Thanks for looking into my script. I think I did not fully explain what is the purpose of the script. I tried your code (in VM) in the following places (I called your code as WOWL.cmd) (Attach is my code as Selfremovefolder.cmd) C:\WOWL.cmd or even D:\WOWL.cmd (as long as it is at root drive, not necessarily Systemrootdrive only ) C:\Program Files\WOWL.cmd C:\WINDOWS\WOWL.cmd C:\WINDOWS\Web\Wallpaper\WOWL.cmd They are greeted with Do you wish to uninstall AppnameXYZ ? [Y|N]: Which is what I do not wish it to show. They should be prompt with a cautious message and exit the script. As my intended script is to remove directory which WOWL.cmd resides, plus all sub folder under it, running under Windows folder can be dangerous and I wish to block it. The only condition(s) it will run is when is runs from some non-critical windows locations such as C:\Program Files\dummyfolder1\WOWL.cmd (which will remove dummyfolder1 folder after WOWL.cmd is run) C:\Program Files\dummyfolder1\dummyfolder2\WOWL.cmd (which will remove dummyfolder2 folder after WOWL.cmd is run) C:\dummytest5\WOWL.cmd (which will remove dummytest5 folder after WOWL.cmd is run) I attached a working script (not polished code) Selfremovefolder.cmd containing the actual code to remove the current folder where Selfremovefolder.cmd resides. Kinda dangerous code. Just have to be careful. That is why I need another pair or more eyes to help to check that there is no potential/unknown bugs which I may have overlook. Selfremovefolder.cmd can be tested against C:\, C:\program files, C:\windows or sub folder of C:\windows like C:\WINDOWS\Web\Wallpaper Can also create dummy folder in %programfiles% to see actual deletion BTW, I tried googling for 'self remove folder cmd script' phase and doesn't seem to turn up any leads. Selfremovefolder.cmd
  6. I'm thinking of creating a cmd template script to self delete current folder after uninstalling application. I would like to add some blocking code just in case it is launch from %programfiles%, %windir% or %windir% sub folder. I figure out some basic code and thought if anyone here can help to polish the code a bit. :: Uninstall cmd template with self-delete current folder @echo off Title Ensure current folder is not directly in %ProgramFiles%, %Windir% or %windir% sub directory If "%~dp0"=="%programfiles%\" Echo You are directly in %~dp0 folder! Exit now!&&pause&&Exit Goto Winfoldercheck Goto Rootcheck :Winfoldercheck Set Cdir=%~dp0 Set cdir=%Cdir:~,10% If %cdir%==%windir% Echo You are at %~dp0 folder! Exit now!&&pause&&exit :Rootcheck Set Rootdir=%~dp0 Set Rootdir1=%Rootdir:~3,1% REM Echo 4th character is %Rootdir1% If errorlevel 1 Echo You are at %~dp0 root folder! Exit now!&&pause&&exit cls Set Progname=AppnameXYZ Title Uninstall %Progname% set /P Reply=Do you wish to uninstall %Progname%? [y/n]: &&echo. If %Reply%==n echo You have cancelled uninstall %Progname%, bye.&&Echo.&&pause&&Exit If %Reply%==N echo You have cancelled uninstall %Progname%, bye.&&Echo.&&pause&&Exit If %Reply%==y Goto selfremoveRD If %Reply%==Y Goto selfremoveRD If not %Reply%==Y echo You have entered an invalid key, bye.&&Echo.&&pause&&Exit :selfremoveRD cls Echo You have selected ^"%Reply%^" to uninstall %Progname%. Echo Removing application and this folder....(simulation only)&&Echo. pause :exit
  7. Updated to µTorrent 2.2 Beta (build 22187)
  8. Read the help file that comes with Autoit (AutoIt3.chm). All basic helps are all in there. On the left of help manual, nav to this section of the help file: Autoit,Tutorials,WinZip Installation. This will give you an idea how to create your own installation script using click ...click...click.....until installation completed
  9. In XP, you can try to look at this location HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Network Connections\Command I have Added Add/Remove Programs added like this to My Computer Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command] @="control appwiz.cpl"
  10. Geej

    problem restarting

    Hi Cosmin3 Try this. Install EUupdate.exe manually (On VM or actual host PC), allow reboot. After reboot, go to C:\WINDOWS\Fonts and copy off these files to other locations: arial.ttf arialbd.ttf arialbi.ttf ariali.ttf times.ttf timesbd.ttf timesbi.ttf timesi.ttf trebuc.ttf trebucbd.ttf trebucbi.ttf trebucit.ttf verdana.ttf verdanab.ttf verdanai.ttf verdanaz.ttf Then SFX it for T13 installation. Fonts should be registered since it is just an update of the same font name. Check that it exist: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
  11. I don't understand your question. Maybe I'm wrong but I think it is impossible/not practical to put incredmail inside the Firefox. Why do that? Otherwise, please state your question clearer. Regards
  12. Updated to µTorrent 2.2 Beta (build 21738)
  13. You can define your default theme in your WINNT.SIF ...Source...\HFEXPERT\APPREPLACEMENT\Winnt.sif In WINNT.SIF, If theme is not from MS, need patched UXTHEME.DLL. Some reference over here
  14. Since you did not provide any download url for Incredmail, I build the package base on this installer: Source URL: IncrediMail 2 Build 4697 (English Version) Freeware Default package is : Silent installation via svcpack.inf with all shortcuts removed except Start Menu (Msi installer) Does not includes Personal informations such as email address, messages, contacts etc as I do not use this software. (hence unable to test further) You can (from the way I learnt about this installation...) try to import your settings which is store in: 1) HKEY_CURRENT_USER\Software\IncrediMail 2) Your email data :These files are located in: C:\Documents and Settings\{useranme}\Local Settings\Application Data\IM\ Others: Does not requires autoit to install as far as I know. You cannot decompile your AutoIt compiled scripts unless it was compiled with AutoIt 3.2.5.1 or earlier.(source) In future if you ask for autoit help, provide some sample script so that members here can help. Asking for free script generally is frown upon, including Autoit Forum. IncrediMail2_Addon_Freeware.cab Size: 19.16 Mb (20,009,982 bytes) MD5: 05540DE13BCF4B06A1070458BE52CBC6 (Host for 7 days only or earlier) Tested ok on my HFSLIP via svcpack with XP Sp3, English platform only. You should test in nlite on VM at your end too.
  15. Homepage ******** About this addon package ************************ Foxit Reader comes with the following characteristics: No ASK toolbar No Foxit Search Bar Only 1 Start Menu shortcut Removed Add Banner in foxit reader window. Associate as default PDF file handler English Only Orange Skin as default Included plugins: Firefox Plugin, Eastern Asian Language Support & Foxit Spell Checker. To view PDF web addres in browser, navigate to this address in IE/Firefox/Opera/SeaMonkey/Pale Moon: http://www.foxitsoftware.com/products/reader/require/Reader_Datasheet.pdf(You should be able to view the pdf file within it's browser, instead of prompt to download or open with Foxit Reader) FoxitReader502718_ENU_Inf_Addon.cab Size: 14.3 Mb (14,499,342 bytes) MD5: 65DDAA5FA778E393692FCCCA69FCDE49
  16. Updated to µTorrent 2.0.3 (build 20664)
  17. The best way to understand is to look at some live application that uses RunOnceEx method. Sample here:
  18. Try adding a button on IE using this tool: CustomizeIE v1.01 Then customise the registry setting it creates.
  19. Hi MajorDisaster Have u try CMDLINES.TXT at T12? (importing .reg setting at T12) I think importing .reg at T12, will apply settings to all users Quoted below : Hence you only need batch files and .reg files. I think does not requires .vbs files to run this at T12
  20. Do you know how to use Winrar, write simple batch file, use archiver tool such as 7-zip /TUzip? If yes, I can assemble something for you to edit /create shortcut by integrating at svcpack (T13) (similar to program addon)
  21. This is an interesting autoit code! Guess what, I found it, using registry tweak only! Need to Slipstream at T13... Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Colors] ;"Background"="58 110 165" ; default blue "Background"="192 220 122" ;greenish [HKEY_CURRENT_USER\Control Panel\Desktop] "Wallpaper"=""
×
×
  • Create New...