Thursday, 4 June 2015

How to install .msi package in SafeMode?

How to install .msi package in SafeMode,

When tried to install any msi package in safemode, it will just display a popup as, Windows Installer service is not running on safemode. Inorder to rectify it, here comes a solution.

If machine is in SafeMode :

1. Open command prompt in admin mode
2. Type the command - REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
3. Once the opreation is success, run the command - net start msiserver
4. The windows installer service will be started successfully, which in turn allows to install msi packages.

If machine is in SafeMode with Network :

1. Open command prompt in admin mode
2. Type the command - REG ADD "REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service""
3. Once the opreation is success, run the command - net start msiserver
4. The windows installer service will be started successfully, which in turn allows to install msi packages.

Saturday, 28 February 2015

How to Install and Uninstall MSI packages.



Here are few methods to install and uninstall .msi packages.,

Install :

- double click the msi it will act like normal exe installation.

- through commad prompt

                    msiexec.exe /i "C:\Users\testuser\Desktop\advinst.msi"

Uninstall:

- right click the msi setup file and click uninstall

- uninstall from control panel.

- command prompt:
                  
                  msiexec.exe /x "C:\Users\testuser\Desktop\advinst.msi" /qn

Batch file for changing the homepage for ie and firefox


Here is a batch file, which let you to change the Homepage for Internet Explorer and Mozilla Firefox:


@Echo off

taskkill /im firefox.exe* /f

ping 1.1.1.1 -n 1 -w 3000 > nul

cd /D "%APPDATA%\Mozilla\Firefox\Pro
files"
cd *.default
set ffile=%cd%
echo user_pref("browser.startup.homepage", "http://www.google.com");>>"%ffile%\prefs.js"
set ffile=
cd %windir%

start firefox.exe

@echo off

taskkill /im iexplore.exe* /f

REG ADD "HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "http://www.google.com/" /F

start firefox.exe

Friday, 2 January 2015

How to share folders from Computer [Physical Machine] to Virtual Machine:




1. Click on the option “Devices” of the Virtual Box.
 

2. Select “Shared Folder Settings”.
3. It will display a popup, showing shared folder options.

 

 4. Click on the add option, which will display a popup to select the folder you want to share,


 5. Once selected click “OK”, the VBOXSVR folder will be created on the NETWORK location,


6. Now go to desktop, right click and create a shortcut, mapping to the folder created on the networks.
7. Wow.., everything is done, now whatever file/folder to want to share, just copy to the parent folder in the Computer[Physical Machine] and you can access the same files in the virtual machine too.