Content Type
Profiles
Forums
Events
Posts posted by radix
-
-
Instead of moving the script or the reg files around to get everything in @ScriptDir
You are better of to use FileChangDir()
#Include <File.au3>
#Include <Array.au3>
$sPath = "c:\somepath\containing\regfiles"
FileChangeDir($sPath)
$RegList = _FileListToArray($sPath, "*.reg", 1)
If IsArray($RegList) Then
For $i = 1 to $RegList[0]
RunWait('regedit.exe' & ' /s' & ' "' & $RegList[$i] & '"')
Next
EndIfAlso I can't remember if it's okay to put the "/s" switch after the file name or not (for RegEdit) but if it is then instead of RunWait() use ShellExecuteWait()
ShellExecuteWait($RegList[$i], "/s")
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.
0 -
-
how would a folder with more then one reg file be applied useing autoit
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
EndIf0 -
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...
0 -
-
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 Sub0 -
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
0 -
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.
0 -
Unlocker 1.9.2
0 -
-
Ashampoo Burning Studio 10.0.10
0 -
This script should do the trick.
0 -
Ashampoo Burning Studio 6.80 Free
0 -
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.
0 -
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.
0 -
You should look here.
0 -
Load .msi file in Microsoft Orca and in LaunchCondition Table Drop Row the next Condition: NOT(UILevel<5)
Install with /qn /norestart switches.
0 -
Extract cab sfx from Microsoft, using internal switches:
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.
0 -
Universal Extractor 1.6 incorrectly identifies self extracting disk image files (.imz) as 7z archives adding the following to check7z() corrects the issue and allows these files to be expanded.
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
0 -
And another one: support for extracting zip sfx archive (only WinZip can extract this type).
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.
0 -
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@!0 -
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
Extract a file from a cabinet fileThe Extract File from Media option allows you to decompress a file contained in your cabinet. To extract a file:- From the View menu, select Components, or click the Display Components button on the toolbar.
- Double-click the File Groups icon.
- Double-click the folder that contains the file you want to extract.
- In the right pane, select the name of the file you wish to extract.
- From the Tools menu, select Extract File, or click the Extract File from Media button on the toolbar,or double-click the selected file name.
- A Save dialog box appears. Browse to the folder in which you wish to save the file.
- Click Save. Components may be password protected. Follow the previous link for more information
0 -
@radix
Just interested, do these .msi installers include that crappy "optional" security scan software?
No. It's clean.
0 -
so..what is the real command to silent install?
Download the msi installer(s) from my previous post and run installation with
/qn /norestart
parameters.
0
Need This Script
in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Posted
AutoIt approach: