Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Friday, February 17, 2012

Running InstallUtil unattended

The following command runs InstallUtil.exe unattended and passing username and password:

InstallUtil.exe /unattended /username=<domain\username> /password=<password> Service.exe

IMPORTANT NOTE: The switches (username, password, etc) must be placed before the name of the service to be installed, otherwise the switches will not be used. I made this mistake so I initially thought that these switches were not working :)

Use the /? or /help switch to learn more about the other options that can be used in installing the service

InstallUtil.exe /? Service.exe

*joychua97

Wednesday, February 15, 2012

Restoring default icon for .dll files

I opened some .dll and .pdb files in Notepad, and now their icons was changed, and the recommended program is now Notepad. Not something that I want :)

To fix this, I did these steps. I think the combination of these steps worked

1) Opened regedit and browsed to HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\filetype\OpenWithList
     > Removed all values under the OpenWithList key. Retained only the (Default) value
     > Removed the UserChoice key

2) Lastly, opened up command prompt as an Administrator, and ran "assoc .dll=dllfile"

References: http://technet.microsoft.com/en-us/magazine/ee851670.aspx http://answers.microsoft.com/en-us/windows/forum/windows_vista-files/restore-default-file-icon-of-file-types-dll-and/6917a74b-2f99-44ed-86a3-7bd52d240b7e


*joychua97