Monday, December 31, 2012

Display inactive icons in current user profile, EnableAutoTray

To display inactive icons in current user profile add to user start up script:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 0 /f
To hide inactive icons in current user profile add to user start up script:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 1 /f

Sunday, December 30, 2012

Meow

ClearPageFileAtShutdown

This option can be useful to set up before you clone operating system:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v ClearPageFileAtShutdown /t REG_DWORD /d 1 /f
To remove this option delete this key:
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v ClearPageFileAtShutdown /f

Saturday, December 29, 2012

KB2686509, The following updates were not installed

Some updates were not installed
The following updates were not installed

This happens on servers where you have set IgnoreRemoteKeyboardLayout option.
To fix this on a modern style use this patch:
https://dl.dropbox.com/u/93473910/HotFix4KB2686509.zip
df4cce64dfa43c393310e7f567f157e6
9bfee90fa96ffdf157ef748ff4e632e5203ca264
It lets you save existing keyboard layout to reg file, then install KB2686509 update and at the end you can restore your old keyboard layout.
I gues you can not use this patch and simply delete this key on server side:
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v IgnoreRemoteKeyboardLayout /f
Never try without patch. It is now your turn to try it out ;)

IgnoreRemoteKeyboardLayout

IgnoreRemoteKeyboardLayout is used when you set keyboard layout in server side and want to ignore layout what have you locally. To ignore keyboard locally, please run on the server side:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v IgnoreRemoteKeyboardLayout /t REG_DWORD /d 1 /f

To remove this option delete this key on server side:
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v IgnoreRemoteKeyboardLayout /f

0x80072EFE

Stop windows update service, remove windows update cache, remove all policy setting if it exist, refresh windows update redirection, start windows update service. All in the code above:
net stop wuauserv
rd %systemroot%\SoftwareDistribution /Q /S
reg delete "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /f
SC sdshow wuauserv
SC sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
wuauclt.exe /detectnow
Turn off antivirus and check if proxy settings are correct to you. Playing with proxy settings is very important.
You better do all possibilities an remember: "It is okay to fail as long as you keep trying!"

Friday, December 28, 2012

Remove command and bookmark bar and force to show menu bar, Internet Explorer

For old people it is useful to hide command and favorites bar and force to show menu bar. So it can be easier to find:
"File -> Print"; "Tools -> Internet Options"; "Help -> About"

Actually this is very clear view.
The code for user logon script:
reg add "HKCU\Software\Microsoft\Internet Explorer\LinksBar" /v Enabled /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v AlwaysShowMenus /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Internet Explorer\CommandBar" /v CommandBarEnabled /t REG_DWORD /d 0 /f

New login screen experience

When you start windows and the log in screen appears, you are surrounded by welcome screen wallpaper :o Are you scared? No? I bet you are :) You can also change this wallpaper.
First you have to find a new wallpaper and open it with mspaint. Re-save this wallpaper on you desktop as an BMP image and name it welcome.bmp. Move this file to C:\Windows\Web\Wallpapers\.
If you have Windows XP you can save it right away in this folder.

Wallpaper is saved, now run these commands:
reg add "HKU\.DEFAULT\Control Panel\Desktop" /v Wallpaper /t reg_sz /d %systemroot%\Web\Wallpaper\welcome.bmp /f
reg add "HKU\.DEFAULT\Control Panel\Desktop" /v WallpaperStyle /t reg_sz /d 2 /f
WallpaperStyle values can be:
2 - stretched to screen.
0 - centered in the middle of screen

If you want remove this future then replace wallpaper key with none.
reg add "HKU\.DEFAULT\Control Panel\Desktop" /v Wallpaper /t reg_sz /d "" /f

pre scroll word wrap style css html

Add these attributes to pre tag if you want to wrap content:
style="overflow: scroll; word-wrap: normal;"
If pre content is very high, then you can also limit height:
style="height: 112px; overflow: scroll; word-wrap: normal;"

NoFileAssociate


To disable file association add to registry:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\policies\Explorer" /v NoFileAssociate /t REG_DWORD /d 1 /f
To enable file association add to registry:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\policies\Explorer" /v NoFileAssociate /t REG_DWORD /d 0 /f
To set windows default state you can delete this key:
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\policies\Explorer" /v NoFileAssociate /f

Check if file exists, Linux

Simply bach comand
test -f /etc/hosts
This is same
[ -f /etc/hosts]
This is one-linear. Returns true and false:
[ -f /etc/hosts ] && echo "Found" || echo "Not found"
As a batch file:
#!/bin/bash
file="/etc/hosts"
if [ -f "$file" ]
then
 echo "$file found."
else
 echo "$file not found."
fi

Thursday, December 27, 2012

Image to data URI

You can implement small images directly in html.
Small size image like gif or png with size not larger than 24kb.

The point is that you do not need to attach additional files to html file.
Image is embed directly in html code.

Here is online service that can convert images into base 64 data URIs
http://websemantics.co.uk/online_tools/image_to_data_uri_convertor/

For example if you convert , it looks like:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAABOWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjarZGxSsNQFIa/G0XFoVYI4uBwJ1FQbNXBjElbiiBYq0OSrUlDldIk3NyqfQhHtw4u7j6Bk6PgoPgEvoHi1MEhSHASwW/6zs/hcOAHo2LXnYZRhkGsVbvpSNfz5ewTM0wBQCfMUrvVOgCIkzjiJwI+XxEAz5t23WnwN+bDVGlgAmx3oywEUQH6FzrVIMaAGfRTDeIOMNVJuwbiASj1cn8BSkHub0BJuZ4P4gMwe67ngzEHmEHuK4Cpo0sNUEvSkTrrnWpZtSxL2t0kiOTxKNPRIJP7cZioNFEdHXWB/D8AFvPFdtORa1XL2lvnn3E9X+b2foQAxNJjkRWEQ3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XDy6vMwWujBUzMwM8TnXZl+I98N5eIuvf56VDZ9loLwy3digFCE6t4NFFM3hsTjXTJhThzvWD4hkWaLKTDSrgs9u2s7BwNT892sovbvdUnFn8eUHuri5jdm0Z00MFhEYHyALkUAHlMytxZ/sch3xAEOJxWPkbdmzayxInF0YEuN3iB/KB/DF5LGz4FkeOvYiIb0aItxFiJ0LsRzRvRtxfTYMzOf+TAzcruXdX8ejimXx3bjX1lcUQHA1KEM6cge9s4PuNZ3n1tn7NvmTpbWphY1MLb1YUMu+rVSyoDzE9L0iuZjIQS3LpTvz4+oFCOyJuEIR3+vf8PwMA644A8s/5dIAAAAAASUVORK5CYIIyMjQz
Try to copy this content in url bar ;) Just to see what happens.

Also it is a huge advantage in blogger.com if you want to back-up you blog then all images are included in xml file.

By the way - what does URI means? URI stands for uniform resource identifier.
Have a good life ;)

Maybe you are interested How to decrease png size.

How not to do

Install brand new Windows 7 operating system
In installation process create a new user instead of default administrator account
Authorize with this newly created user (this account also have all administrative rights)
Now you think "Why do i need two users accounts on this computer? I only need one and let it be the default administrator account"
So you choose "manage computer" and set new password to default administrator account.
And now you delete old account. It is very interesting that in user management you can delete yourself when you are already logged in :o
Choose log off
Type new credentials - administrator and your password
A popup came out "Account is disabled. Contact administrator"

Upgrade Windows XP to Internet Explorer 8

This is upgrade patch for Windows XP if there is Internet Explorer 6 or Internet Explorer 7 installed.
@echo off
setlocal EnableDelayedExpansion

ipconfig | find "Windows 2000 IP Configuration"
if !errorlevel!==0 goto exit

ver | find "Microsoft Windows XP"
if not !errorlevel!==0 goto exit

reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer" ^
/v Version | find "8.0.6001.18702"
if not !errorlevel!==0 (
if not exist \\log\%computername% md \\log\%computername%
set LogLocation=\\log\%computername%
"%~dp0IE8-WindowsXP-x86-ENU.exe" /passive /update-no /log:%LogLocation%
)

:exit
endlocal
Related files:
http://download.microsoft.com/download/C/C/0/CC0BD555-33DD-411E-936B-73AC6F95AE11/IE8-WindowsXP-x86-ENU.exe

Back to Internet Explorer root section

Wednesday, December 26, 2012

Uninstall msi program via command line

Applications have their unique uninstall IDs. You can found it under:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall]
If you want uninstall application silently, you can use their ID. For example:
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217003F0} /qb-
This will uninstall "Java(TM) 7 Update 3" cause {26A24AE4-039D-4CA4-87B4-2F83217003F0} is Java(TM) 7 Update 3 ID.

Much universal method is
Notepad++ silent uninstall

Set default page to none, Internet Explorer

On very low computers you can speed up Internet Explorer open speed by setting home page to none.
This can be done by adding this command to user logon script:
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t reg_sz /d "about:blank"

Tuesday, December 25, 2012

Windows Update Service, Status, wuauserv

Sometimes Windows Update service is disabled or stopped.
This script can report you status of Windows Update service.
@echo off
setlocal EnableDelayedExpansion
sc query wuauserv | FIND "STATE              : 4  RUNNING" > nul 2>&1
if not !errorlevel!==0 (
echo Service is no running!
)
endlocal
pause
Please, remove pause of the end of script if you use in non-test material.

Sunday, December 23, 2012

Thursday, December 20, 2012

Disable Picasa Updates

To disable updates add this commands to user startup script:
reg add HKCU\Software\Google\Picasa\Picasa2\Preferences /v AutoUpgradeCheck /t REG_DWORD /d 0 /f
reg add HKCU\Software\Google\Picasa\Picasa2\Preferences /v AutoUpgradeAsk /t REG_DWORD /d 0 /f

Wednesday, December 19, 2012

Download Skype administrative template, Skype.adm

Save administrative template file:
http://download.skype.com/share/security/Skype-v1.7.adm

Content of this file is
; Skype Group Policies Administrative Template
; Change log:
; 1.0 - initial version
; 1.1 - added policies to CLASS USER
; 1.2 - added DisableUDP policy
; 1.3 - added DisableUDP policy to CLASS USER
; 1.4 - changed 1/0 settings to NUMERIC; fixed ProxyPassword value name
; 1.5 - changed the max value for listen port policies to 65535
; 1.6 - added DisableMicropayments
; 1.7 - ProxySetting valueoption 'Disable' changed to 'Disabled'

CLASS MACHINE
CATEGORY !!SkypeCat

 CATEGORY !!PhoneCat

  KEYNAME "Software\Policies\Skype\Phone"

  CATEGORY !!FunctianalityCat

   POLICY !!DisableFileTransferPolicy
    EXPLAIN !!DisableFileTransferPolicyExplain
    VALUENAME "DisableFileTransfer"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisableContactImportPolicy
    EXPLAIN !!DisableContactImportPolicyExplain
    VALUENAME "DisableContactImport"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisablePersonalisePolicy
    EXPLAIN !!DisablePersonalisePolicyExplain
    VALUENAME "DisablePersonalise"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisableLanguageEditPolicy
    EXPLAIN !!DisableLanguageEditPolicyExplain
    VALUENAME "DisableLanguageEdit"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!WebStatusPolicy
    EXPLAIN !!WebStatusPolicyExplain
    VALUENAME "WebStatus"
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
   END POLICY

   POLICY !!DisablePremiumServicesPolicy
    EXPLAIN !!DisablePremiumServicesExplain
    VALUENAME "DisableMicropayments"
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
   END POLICY

  END CATEGORY ; FunctianalityCat

  CATEGORY !!OtherCat

   POLICY !!DisableApiPolicy
    EXPLAIN !!DisableApiPolicyExplain
    VALUENAME "DisableApi"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisableVersionCheckPolicy
    EXPLAIN !!DisableVersionCheckPolicyExplain
    VALUENAME "DisableVersionCheck"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!MemoryOnlyPolicy
    EXPLAIN !!MemoryOnlyPolicyExplain
    VALUENAME "MemoryOnly"
    VALUEON NUMERIC 1
   END POLICY
   
  END CATEGORY ; OtherCat


  CATEGORY !!NetworkCat
   POLICY !!ListenPortPolicy
    EXPLAIN !!ListenPortPolicyExplain
    
    PART !!ListenPort NUMERIC
     VALUENAME "ListenPort"
     MIN 1
     MAX 65535
    END PART
    
   END POLICY

   POLICY !!ListenHTTPPortsPolicy
    EXPLAIN !!ListenHTTPPortsPolicyExplain
    VALUENAME "ListenHTTPPorts"
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
   END POLICY

   POLICY !!DisableTCPListenPolicy
    EXPLAIN !!DisableTCPListenPolicyExplain
    VALUENAME "DisableTCPListen"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY
   
   POLICY !!DisableUDPPolicy
    EXPLAIN !!DisableUDPExplain
    VALUENAME "DisableUDP"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY
   
   POLICY !!DisableSupernodePolicy
    EXPLAIN !!DisableSupernodePolicyExplain
    VALUENAME "DisableSupernode"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!ProxyPolicy
    EXPLAIN !!ProxyPolicyExplain

    PART !!ProxyType DROPDOWNLIST
     VALUENAME "ProxySetting"
     ITEMLIST
      NAME !!ProxyAutomatic
      VALUE "Automatic"
      
      NAME !!ProxyDisable
      VALUE "Disabled"
      
      NAME !!ProxyHTTPS
      VALUE "HTTPS"
      
      NAME !!ProxySOCKS5
      VALUE "SOCKS5"
     END ITEMLIST
     REQUIRED
    END PART

    PART !!ProxyAddress EDITTEXT
     VALUENAME "ProxyAddress"
    END PART

    PART !!ProxyUsername EDITTEXT
     VALUENAME "ProxyUsername"
    END PART

    PART !!ProxyPassword EDITTEXT
     VALUENAME "ProxyPassword"
    END PART

   END POLICY

  END CATEGORY ; NetworkCat

 END CATEGORY ; PhoneCat

END CATEGORY ; SkypeCat

CLASS USER
CATEGORY !!SkypeCat

 CATEGORY !!PhoneCat

  KEYNAME "Software\Policies\Skype\Phone"

  CATEGORY !!FunctianalityCat

   POLICY !!DisableFileTransferPolicy
    EXPLAIN !!DisableFileTransferPolicyExplain
    VALUENAME "DisableFileTransfer"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisableContactImportPolicy
    EXPLAIN !!DisableContactImportPolicyExplain
    VALUENAME "DisableContactImport"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisablePersonalisePolicy
    EXPLAIN !!DisablePersonalisePolicyExplain
    VALUENAME "DisablePersonalise"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisableLanguageEditPolicy
    EXPLAIN !!DisableLanguageEditPolicyExplain
    VALUENAME "DisableLanguageEdit"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!WebStatusPolicy
    EXPLAIN !!WebStatusPolicyExplain
    VALUENAME "WebStatus"
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
   END POLICY

   POLICY !!DisablePremiumServicesPolicy
    EXPLAIN !!DisablePremiumServicesExplain
    VALUENAME "DisableMicropayments"
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
   END POLICY

  END CATEGORY ; FunctianalityCat

  CATEGORY !!OtherCat

   POLICY !!DisableApiPolicy
    EXPLAIN !!DisableApiPolicyExplain
    VALUENAME "DisableApi"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!DisableVersionCheckPolicy
    EXPLAIN !!DisableVersionCheckPolicyExplain
    VALUENAME "DisableVersionCheck"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!MemoryOnlyPolicy
    EXPLAIN !!MemoryOnlyPolicyExplain
    VALUENAME "MemoryOnly"
    VALUEON NUMERIC 1
   END POLICY
   
  END CATEGORY ; OtherCat


  CATEGORY !!NetworkCat
   POLICY !!ListenPortPolicy
    EXPLAIN !!ListenPortPolicyExplain
    
    PART !!ListenPort NUMERIC
     VALUENAME "ListenPort"
     MIN 1
     MAX 65535
    END PART
    
   END POLICY

   POLICY !!ListenHTTPPortsPolicy
    EXPLAIN !!ListenHTTPPortsPolicyExplain
    VALUENAME "ListenHTTPPorts"
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
   END POLICY

   POLICY !!DisableTCPListenPolicy
    EXPLAIN !!DisableTCPListenPolicyExplain
    VALUENAME "DisableTCPListen"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY
   
   POLICY !!DisableUDPPolicy
    EXPLAIN !!DisableUDPExplain
    VALUENAME "DisableUDP"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY
   
   POLICY !!DisableSupernodePolicy
    EXPLAIN !!DisableSupernodePolicyExplain
    VALUENAME "DisableSupernode"
    VALUEON NUMERIC 1
    VALUEOFF DELETE
   END POLICY

   POLICY !!ProxyPolicy
    EXPLAIN !!ProxyPolicyExplain

    PART !!ProxyType DROPDOWNLIST
     VALUENAME "ProxySetting"
     ITEMLIST
      NAME !!ProxyAutomatic
      VALUE "Automatic"
      
      NAME !!ProxyDisable
      VALUE "Disabled"
      
      NAME !!ProxyHTTPS
      VALUE "HTTPS"
      
      NAME !!ProxySOCKS5
      VALUE "SOCKS5"
     END ITEMLIST
     REQUIRED
    END PART

    PART !!ProxyAddress EDITTEXT
     VALUENAME "ProxyAddress"
    END PART

    PART !!ProxyUsername EDITTEXT
     VALUENAME "ProxyUsername"
    END PART

    PART !!ProxyPassword EDITTEXT
     VALUENAME "ProxyPassword"
    END PART

   END POLICY

  END CATEGORY ; NetworkCat

 END CATEGORY ; PhoneCat

END CATEGORY ; SkypeCat

[strings]

SkypeCat = "Skype"
PhoneCat = "Phone"

FunctianalityCat = "Functionality"
DisableFileTransferPolicy = "Disable file transfer"
DisableFileTransferPolicyExplain = "When enabled, prevents the user from sending and receiving files using Skype"
DisableContactImportPolicy = "Disable import contacts"
DisableContactImportPolicyExplain = "Disable import contacts"
DisablePersonalisePolicy = "Disable personalise"
DisablePersonalisePolicyExplain = "Prevent the user changing sounds"
DisableLanguageEditPolicy = "Disable language edit"
DisableLanguageEditPolicyExplain = "Prevent the user editing language strings"
DisablePremiumServicesPolicy = "Disable premium services"
DisablePremiumServicesExplain = "Disable ability to use premium services as both service provider and service consumer"

WebStatusPolicy = "Web status policy"
WebStatusPolicyExplain = "When enabled, always publishes the user's status on the web as Skype buttons, when disabled, prevents the user from publishing status on the web"

OtherCat = "Other"
DisableApiPolicy = "Disable Skype Public API"
DisableApiPolicyExplain = "When enabled, prevents third party applications from accessing Skype functionality"
DisableVersionCheckPolicy = "Disable new version checking"
DisableVersionCheckPolicyExplain = "Prevent Skype from detecting new versions and updates"
MemoryOnlyPolicy = "Run in memory-only mode"
MemoryOnlyPolicyExplain = "If enabled, Skype does not store any data on the local disk"

NetworkCat = "Network"
ListenPortPolicy = "Listening port"
ListenPortPolicyExplain = "Set the port where Skype listens for incoming connections"
ListenPort = "Listening port number"
ListenHTTPPortsPolicy = "Listen on HTTP and HTTPS ports"
ListenHTTPPortsPolicyExplain = "When enabled, listen on HTTP (port 80) and HTTPS (port 443) ports; when disabled, don't listen on HTTP/HTTPS ports; when not configured, let the user decide"
DisableTCPListenPolicy = "Disable listening for TCP connections"
DisableTCPListenPolicyExplain = "If enabled, prevents the Skype client from receiving incoming TCP connections"
DisableUDPPolicy = "Disable UDP communications"
DisableUDPExplain = "If enabled, prevents the Skype client from using UDP to communicate with the network"
DisableSupernodePolicy = "Prevent Skype client to become a supernode"
DisableSupernodePolicyExplain = "If enabled, prevents the Skype client from becoming a supernode"
ProxyPolicy = "Proxy policy"
ProxyPolicyExplain = "Establish proxy policy"
ProxyType = "Proxy type"
ProxyUnset = "Unset"
ProxyAutomatic = "Automatic"
ProxyDisabled = "Disabled"
ProxyUnset = "Unset"
ProxyDisable = "Disable"
ProxyHTTPS = "HTTPS"
ProxySOCKS5 = "SOCKS5"
ProxyAddress = "Proxy address (host:port)"
ProxyUsername = "Username"
ProxyPassword = "Password"

Tuesday, December 18, 2012

Adobe Reader 9, ShrinkToFit none, iprintScaling

reg add "HKCU\Software\Adobe\Acrobat Reader\9.0\AVGeneral" /v iprintScaling /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Adobe\Acrobat Reader\9.0\Originals" /v bShrinkToFit /t REG_DWORD /d 0 /f

Sunday, December 16, 2012

Block new features screen in picasa 3.9

Hello!
Annoying this screen?
Add this command to user startup script to hide this windows from poping out.
reg add "HKCU\Software\Google\Picasa\Picasa2\Preferences" /v showfeatureslink /t REG_DWORD /d 39 /f

Saturday, December 15, 2012

Difference between msiexec /qb and msiexec /qb-

Difference between msiexec /qb and msiexec /qb-.
/q - This means there can be or can not to be some interface change. Frequently there is another parameter set to /q switch.
b - now it will happen basic user interface process
- means no modal dialog boxes, that means if something goes wrong and installer want to tell you that, than dash parameter at the end means "shut the mouth and do not tell anything, do not pop up any windows. I don't wanna to distract any users to press some kind of OK button. Are we clear?"

Source:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa367988(v=vs.85).aspx

Friday, December 14, 2012

Skype msi for network administrators

Use msi installer to install deploy Skype.
This link always stands for latest msi offline installer:
http://www.skype.com/go/getskype-msi

The install script can be similar to this:
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k={1845470B-EB14-4ABC-835B-E36C693DC07D}
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if not !errorlevel!==0 (
%systemroot%\system32\msiexec.exe /i "%~dp0SkypeSetup.msi" /qb
) else echo skype already installed
endlocal
Skype versions have diferent key so you have to always look for it under
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

Blog Archive