• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
clivebuckwheat

Getting Rid of the Open file security warning In Windows 7

5 posts in this topic

All my Installations are being called from a network share, and all the installs work perfectly yet, how can I get rid of the security warnings for open files so the installs can go through without user intervention?. I calling a mixture of msi's and exe's if that makes a difference.

I found the regkeys to turn it off but I get an error when this is in my cmd file. What could the problem be with this?

REG ADD %KEY%\005 /VE /D "Turning Off Open File Security Warning" /f

REG ADD %KEY%\005 /V 1 /D "REGEDIT /S z:\SecurityWarningsOff.reg" /f

Edited by clivebuckwheat
0

Share this post


Link to post
Share on other sites

Maybe you can try this reg file:


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer]
"AlwaysInstallElevated"=dword:00000001

0

Share this post


Link to post
Share on other sites
0

Share this post


Link to post
Share on other sites

why isn't this regkey import no working, via the RunOnceEx.cmd

if I double click it manually it works and all the installs go with no prompting. Do I have the syntax wrong for the regedit import via the RunOnceEx.cmd?

@ ECHO OFF

REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceEx

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications & Settings" /f



REG ADD %KEY%\001 /VE /D "Mapping Network Drive" /f
REG ADD %KEY%\001 /V 1 /D "NET USE Z: \\192.168.1.209\Installations password /USER:Robw" /f
REG ADD %KEY%\001 /V 2 /D "REGEDIT /S z:\swo.reg" /f

REG ADD %KEY%\010 /VE /D "Installing FireFox 3.64" /f
REG ADD %KEY%\010 /V 1 /D "z:\Firefox\Firefox364.exe -ms" /f


REG ADD %KEY%\015 /VE /D "Installing Java 6 Update 20" /f
REG ADD %KEY%\015 /V 1 /D "z:\Java6U20\jre-6u20-windows-i586-s.exe /s /v /qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 SYSTRAY=0 JAVAUPDATE=0 REBOOT=Suppress" /f

REG ADD %KEY%\020 /VE /D "Installing Flash Player" /f
REG ADD %KEY%\020 /V 1 /D "z:\FlashPlayer\install_flash_player_10_active_x.msi /qn" /f
REG ADD %KEY%\020 /V 2 /D "z:\FlashPlayer\install_flash_player_10_plugin.msi /qn" /f

REG ADD %KEY%\025 /VE /D "Installing Shockwave Player" /f
REG ADD %KEY%\025 /V 1 /D "z:\ShockwavePlayer\sw_lic_full_installer.msi /qn" /f

REG ADD %KEY%\030 /VE /D "Installing CCleaner 2.33" /f
REG ADD %KEY%\030 /V 1 /D "z:\CCleaner\ccleaner_slim_233.exe /silent" /f

REG ADD %KEY%\035 /VE /D "Installing FileZilla 3.3.3" /f
REG ADD %KEY%\035 /V 1 /D "z:\FileZilla\FileZilla_3.3.3_win32-setup.exe /S" /f

REG ADD %KEY%\040 /VE /D "Install GomPlayer" /f
REG ADD %KEY%\040 /V 1 /D "z:\GomPlayer\GOMPLAYERENSETUP.EXE /S" /f

REG ADD %KEY%\045 /VE /D "Installing ImgBurn" /f
REG ADD %KEY%\045 /V 1 /D "z:\ImgBurn\imageburnsetup.exe /S" /f
REG ADD %KEY%\045 /V 2 /D "REGEDIT /S z:\Imgburn\imgburnsettings.reg" /f

REG ADD %KEY%\050 /VE /D "Installing Itunes-Quicktime" /f
REG ADD %KEY%\050 /V 1 /D "z:\Itunes64Setup\AppleApplicationSupport.msi /qn" /f
REG ADD %KEY%\050 /V 2 /D "z:\Itunes64Setup\AppleMobileDeviceSupport64.msi /qn" /f
REG ADD %KEY%\050 /V 3 /D "z:\Itunes64Setup\AppleSoftwareUpdate.msi /qn" /f
REG ADD %KEY%\050 /V 4 /D "z:\Itunes64Setup\Quicktime.msi /qn" /f
REG ADD %KEY%\050 /V 5 /D "z:\Itunes64Setup\Bonjour64.msi /qn" /f
REG ADD %KEY%\050 /V 6 /D "z:\Itunes64Setup\iTunes64.msi /qn" /f

REG ADD %KEY%\055 /VE /D "Installing Adobe Reader 9.3.1" /f
REG ADD %KEY%\055 /V 1 /D "z:\Reader931\AdbeRdr930_en_us.msi /qn" /f

REG ADD %KEY%\055 /VE /D "Installing VLC 1.1.0" /f
REG ADD %KEY%\055 /V 1 /D "z:\VLC\vlc-1.1.0-win32.exe /S" /f

REG ADD %KEY%\090 /VE /D "Installing Microsoft Office 2010" /f
REG ADD %KEY%\090 /V 1 /D "z:\Office14\setup.exe /adminfile Office2010Full.MSP" /f
REG ADD %KEY%\090 /V 2 /D "REGEDIT /S z:\Office14\Excel-Add-ins.reg" /f

contains of swo.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"=".exe;.bat;.reg;.vbs;.msi;.cmd;"

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.