Jump to content

radix

Member
  • Posts

    755
  • Joined

  • Last visited

  • Donations

    $0.00 
  • Country

    Romania

Everything posted by radix

  1. AutoIt approach: #Include <Array.au3> #Include <File.au3> ; Check if Mozilla Firefox x86 version is installed If @OSArch = "X86" Then $MozillaFirefoxCurrentVersion = RegRead("HKLM\SOFTWARE\Mozilla\Mozilla Firefox", "CurrentVersion") $MozillaFirefoxInstallDirectory = RegRead("HKLM\SOFTWARE\Mozilla\Mozilla Firefox\" & $MozillaFirefoxCurrentVersion & "\Main", "Install Directory") EndIf If @OSArch = "X64" Then $MozillaFirefoxCurrentVersion = RegRead("HKLM\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox", "CurrentVersion") $MozillaFirefoxInstallDirectory = RegRead("HKLM\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\" & $MozillaFirefoxCurrentVersion & "\Main", "Install Directory") EndIf $MozillaFirefoxExecutableFile = FileExists($MozillaFirefoxInstallDirectory & "\firefox.exe") If $MozillaFirefoxExecutableFile = 0 Then MsgBox(0x40010, @ScriptName, "Mozilla Firefox is not installed! Please install it and then run this script!", 4) Exit EndIf ; Find Mozilla Firefox profile folder If FileExists(@AppDataDir & "\Mozilla\Firefox\profiles.ini") Then $Mozilla_Firefox_profile_folder = IniRead(@AppDataDir & "\Mozilla\Firefox\profiles.ini", "Profile0", "Path", "") $Mozilla_Firefox_profile_folder = StringReplace($Mozilla_Firefox_profile_folder, "/", "\") EndIf ; EDIT MOZILLA FIREFOX PREFERENCES FILE $InputFile = @AppDataDir & "\Mozilla\Firefox\" & $Mozilla_Firefox_profile_folder & "\prefs.js" ; String to find $StringToFind = '"browser.startup.homepage"' ; New home page address $HomePageAddress = "" ; write the desired home page address (inside quotes), for example: http://www.google.com/ ; Delete the current home page address Global $Array _FileReadToArray ($InputFile, $Array) $Array = _DeleteHomePageAddress ($Array, $StringToFind) _FileWriteFromArray ($InputFile, $Array, 1) ; Write a new home page address $File = FileOpen($InputFile, 257) ; UTF8 encoding without BOM FileWriteLine($File, 'user_pref("browser.startup.homepage", ' & '"' & $HomePageAddress & '"' & ');') FileClose($File) Func _DeleteHomePageAddress ($Array, $StringToFind) Local $Item For $Element In $Array If StringInstr ($Element, $StringToFind) <> 0 Then _ArrayDelete ($Array, $Item) Else $Item+=1 EndIf Next Return ($Array) EndFunc
  2. I've thought about using the script during windows installation (in this case another instance will run the compiled file and it's easy to copy and run from the reg files folder). Regarding the switch: it's tested and working.
  3. Ashampoo Burning Studio 10.0.10 AutoIt script
  4. Copy au3 file or compiled in the folder where reg files are located #Include <File.au3> #Include <Array.au3> $RegList = _FileListToArray(@ScriptDir, "*.reg", 1) If IsArray($RegList) Then For $i = 1 to $RegList[0] RunWait('regedit.exe' & ' /s' & ' "' & $RegList[$i] & '"') Next EndIf
  5. Thanks for the guide. I've remembered that you had a thread for Winamp custom installer in the past (can't find it right now). Do you plan to work again on it ? Edit: here 4 years have passed...
  6. It works. Thanks. I found a vbs script which can move all files (more than one level recursive) from a folder to another folder (can be the same folder too). Dim objFSO, ofolder, objStream Set objShell = CreateObject("WScript.Shell") Set objFSO = CreateObject("scripting.filesystemobject") Set objNet = CreateObject("WScript.NetWork") Set FSO = CreateObject("Scripting.FileSystemObject") '=====Source folder===== SPath = "C:\Source\" ShowSubfolders FSO.GetFolder(spath) Sub ShowSubFolders(Folder) For Each Subfolder in Folder.SubFolders CheckFolder(subfolder) ShowSubFolders Subfolder Next End Sub Sub CheckFolder(objCurrentFolder) Dim strTempL, strTempR, strSearchL, strSearchR, objNewFolder, objFile Const OverwriteExisting = TRUE For Each objFile In objCurrentFolder.Files FileName = objFile '=====Destination folder===== objFSO.MoveFile FileName, "C:\Destination\" Next End Sub
  7. I have a cmd script who can move all files from subdirs of current dir into current dir. This script work only if subdirs don't have spaces in their names. @echo off for /f "tokens=5* skip=2" %%i in ('dir ^| findstr "DIR" ') do ( move %%i\*.* . ) Can you help with a vbs script if cmd can't do this task ? I can do this easy with AutoIt recursively in subfolders. It's for someone who don't want suspicious exe files
  8. In the manual file (BWMeter.chm) in Installation & Uninstallation section is stated that: Unattended setup: if you want to install BWMeter automatically, without user interface, please include the installation path as a command line parameter. Also, any file included in the command line will be copied to the installation path by the setup program. Here is an example: BMSetup.exe "C:\Program Files\BWMeter" License.dlc This command line will install BWMeter to the default installation path and copy the license file "License.dlc" to the installation path. "License.dlc" must be in the same folder as "BMSetup.exe" so that the setup program can find it. After unattended setup, a text file "BMSetup.log" will be created. It contains the result of the installation. Sorry for bumping a 5 year old thread.
  9. wazzup man ?

  10. Ashampoo Burning Studio 10.0.7 AutoIt script
  11. Ashampoo Burning Studio 10.0.10 Ashampoo_Burning_Studio_10.0.10.au3
  12. Ashampoo Burning Studio 6.80 Free Ashampoo_Burning_Studio_6.80_Free.au3
  13. I've downloaded the trial from here, extract kavkis.msi from executable, using 7-Zip and install with this: kavkis.msi /qb! /norestart No popup occur. Tested in Windows XP with SP3.
  14. Select the files to add in a sfx archive, right click on selection->WinRAR->Add to archive...->check Create sfx archive->Advanced->SFX Options->in path to extract fill with %APPDATA%, click OK, click OK. Also you can adjust compression if necessary.
  15. Load .msi file in Microsoft Orca and in LaunchCondition Table Drop Row the next Condition: NOT(UILevel<5) Install with /qn /norestart switches.
  16. This is already supported, but requires accurate PEiD detection. If you can provide examples that fail I should be able to update the PEiD custom signature for better detection. Now they works.
  17. Thanks for the report and code. However, I don't have any .imz files to test and validate this. Can you (or anyone else) please provide a couple examples? U.E. 1.6.1 can extract files from .imz and .ima image files, but can't extract files from winimage sfx archives (upx compressed). I've uploaded an example: http://www.filefacto...b/n/wwwwwww.exe or http://hotfile.com/d...wwwwww.exe.html
  18. I can use WinZip because it can't be freely redistributed. If you can provide some example files, though, I'll look for an alternative way to support the files. WinZIP sfx example: http://download.winz...om/wzipse40.exe Tried already with winrar, 7-zip and Universal Extractor 1.6.1. Thanks for the update. Edit: 7-Zip 9.13 beta works with winzip sfx archives.
  19. I don't use the internal 7-zip sfx module commands. Why don't you use a batch file to install all those msi files? ;!@Install@!UTF-8! InstallPath="%temp%\\WindowsLive" RunProgram="hidcon:Install.cmd" Delete="%temp%\\WindowsLive" GUIMode="2" ;!@InstallEnd@!
  20. If you insist to unpack those cab files, install InstallShield, and use InstallShield Cabinet File Viewer (open from start menu). Extract a file from a cabinet file


×
×
  • Create New...