Monday, October 29, 2012

Create slackware USB installation from windows

Format at least 4 GB flash drive in fat32 file system.
Set name to USBSLACKINS

Download Slackware iso file:
32-bit: ftp://ftp.slackware.com/pub/slackware-iso/slackware-14.2-iso/slackware-14.2-install-dvd.iso
64-bit: ftp://ftp.slackware.com/pub/slackware-iso/slackware64-14.2-iso/slackware64-14.2-install-dvd.iso

Download usbboot.img:
64-bit: ftp://ftp.slackware.com/pub/slackware/slackware64-14.2/usb-and-pxe-installers/usbboot.img
32-bit: ftp://ftp.slackware.com/pub/slackware/slackware-14.2/usb-and-pxe-installers/usbboot.img

Using 7-zip, extract usbboot.img content to %usbroot%:\boot\syslinux.
Delete file ldlininux.sys in %usbroot%:\boot\syslinux.

Download https://dl.dropbox.com/u/93475097/syslinux.exe to %usbroot%:\boot\syslinux

Open command prompt, enter syslinux directory where syslinux.exe is located and run command:
syslinux.exe -m -a -d /boot/syslinux f:
f: is drive letter for usb drive.
(if usb device is portable HDD with fat32 partition use syslinux.exe -m -a -f -d /boot/syslinux f:)

All done. Now you can Install slackware from USB.

Related links:
http://alien.slackbook.org/blog/welcome-windows-user/

Friday, October 26, 2012

Batch file array

Executes one command
@set array=computer_names.txt
for /f "tokens=*" %%a in ('type "%array%"') do psexec \\%%a systeminfo > %%a.log
Executes more commands
@set array=computer_names.txt
for /f "tokens=*" %%a in ('type "%array%"') do (
echo connecting to computer %%a
psexec \\%%a systeminfo > %%a.log
)

Monday, October 22, 2012

Sunday, October 21, 2012

Picasa 3 silent install-uninstall, detection rule

To install Picasa 3 automaticly use switch /S /L. This is case sensitive.
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k=Picasa 3
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if not !errorlevel!==0 (
echo Picasa
"%~dp0picasa39-setup.exe" /S /L
) else echo Picasa already installed
endlocal

silent-uninstall.cmd
@echo off
setlocal EnableDelayedExpansion
set path=%path%;%~dp0
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set n=Picasa 3
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%n%" > nul 2>&1
if !errorlevel!==0 for /f delims^=^"^ tokens^=2 %%a in ('^
reg query "%sw%\%x%%u%\%n%" /v UninstallString ^|
find "UninstallString"') do (
start /wait "" "%%a" /S
)
endlocal

Force 3.9 version:
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k=Picasa 3
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if !errorlevel!==0 reg query "%sw%\%x%%u%\%k%" /v DisplayVersion | findstr "3.9"
if not !errorlevel!==0 (
echo Picasa
"%~dp0picasa39-setup.exe" /S /L
) else echo Picasa already installed
endlocal

For remote installation using http://live.sysinternals.com/Tools/psexec.exe
psexec -c \\computer_name picasa39-setup.exe /S /L

Related files:
http://dl.google.com/picasa/picasa38-setup.exe
http://dl.google.com/picasa/picasa39-setup.exe

Friday, October 12, 2012

Deploy Adobe Reader 9

Save all these files http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.5.0/en_US/AdbeRdr950_en_US.msi
http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.5.1/misc/AdbeRdrUpd951_all_incr.msp
http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.5.2/misc/AdbeRdrUpd952_all_incr.msp
http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.5.3/misc/AdbeRdrUpd953_all_incr.msp
http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.5.4/misc/AdbeRdrUpd954_all_incr.msp
http://ardownload.adobe.com/pub/adobe/reader/win/9.x/9.5.5/misc/AdbeRdrUpd955_all_incr.msp

Use 7-zip to extract setup.exe from AdbeRdr950_en_US.exe or download directly:
https://dl.dropboxusercontent.com/u/20008754/9/setup.exe

Create setup.ini with content:
[Startup]
RequireOS=Windows 2000
RequireMSI=3.0
RequireIE=6.0.2600.0
CmdLine=/spb /rs

[Product]
msi=AdbeRdr950_en_US.msi
CmdLine=EULA_ACCEPT=YES
PATCH="AdbeRdrUpd951_all_incr.msp;AdbeRdrUpd952_all_incr.msp;AdbeRdrUpd953_all_incr.msp;AdbeRdrUpd954_all_incr.msp;AdbeRdrUpd955_all_incr.msp"

[Windows 2000]
PlatformID=2
MajorVersion=5
ServicePackMajor=4

[MSI Updater]
Path=http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.0/misc/WindowsInstaller-KB893803-v2-x86.exe
Now run the setup.exe and be happy ;)