Thursday, June 28, 2012

Inno Setup Command to Siliently Install vcredist

From the command line:
vcredist_x86.exe /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
In an Inno Setup script:
[Files]
Source: {src}\bin\vcredist_x86.exe; DestDir: {app}\bin\;

[Run]
Filename: {app}\bin\vcredist_x86.exe; Parameters: "/q:a /c:""VCREDI~3.EXE /q:a /c:""""msiexec /i vcredist.msi /qn"""" """; WorkingDir: {app}\bin; StatusMsg: Installing Micosoft's C/C++ runtime ...
References

Wednesday, June 20, 2012

Concatenate Multiple Files on the Windows Command Line


If the files are small in size, and you have a small number of them:
type file1.txt > out.txt
type file2.txt >> out.txt
type file3.txt >> out.txt
If you have a large number of large files, this might be a better option:
copy /b file1.dat+file2.dat+file3.dat out.dat /b
or:
copy /b *.dat out.dat /b