How to set Firefox browser as default via command line in Windows?
To set Firefox browser as default via command line in Windows, it is necessary to use the helper.exe + commands.
The Firefox installation will be (depends of your system):
$mozilla_dir = "C:\Program Files\Mozilla Firefox\uninstall"
or
$mozilla_dir = "C:\Program Files (x86)\Mozilla Firefox\uninstall"
Enter in the directory and type the option that you want:
cd $mozilla_dir
.\helper.exe /SetAsDefaultAppGlobal
/SetAsDefaultAppGlobal: it will set Firefox as the Global Default Browser (must be executed as Administrator)
/SetAsDefaultAppUser: it will set Firefox as the User Default Browser (must be executed in user context)
Source:
http://superuser.com/questions/787608/how-to-set-default-browser-in-windows-7-via-script
The Firefox installation will be (depends of your system):
$mozilla_dir = "C:\Program Files\Mozilla Firefox\uninstall"
or
$mozilla_dir = "C:\Program Files (x86)\Mozilla Firefox\uninstall"
Enter in the directory and type the option that you want:
cd $mozilla_dir
.\helper.exe /SetAsDefaultAppGlobal
/SetAsDefaultAppGlobal: it will set Firefox as the Global Default Browser (must be executed as Administrator)
/SetAsDefaultAppUser: it will set Firefox as the User Default Browser (must be executed in user context)
Source:
http://superuser.com/questions/787608/how-to-set-default-browser-in-windows-7-via-script
Comentários
Postar um comentário