== Sharing Violation Issue ==
Posted: 11 Dec 2012 04:21
When I run this batch, I get a Sharing Violation in the console, what's up with that?
Code: Select all
@Echo off
:: Windows(R),ProfessionalWMC edition
cd %~dp0
:: W8 GADGETS
:: Copying x64 Sidebar to "%ProgramFiles%\Windows Sidebar"...
xcopy /E /I /Y "files\x64\Windows Sidebar" "%ProgramFiles%\Windows Sidebar">nul
:: Copying x86 Sidebar to "%ProgramFiles(x86)%\Windows Sidebar"...
xcopy /E /I /Y "files\x86\Windows Sidebar" "%ProgramFiles(x86)%\Windows Sidebar">nul
:: Creating "Desktop Gadget Gallery" shortcut in the Start menu...
xcopy /Y "files\Sidebar.lnk" "%ProgramData%\Microsoft\Windows\Start Menu\Programs\">nul
wscript files\Sidebar1.vbs
wscript files\Sidebar2.vbs
if %errorlevel% NEQ 0 goto error
:: Registering Sidebar...
pushd %ProgramFiles%\Windows Sidebar
%windir%\System32\regsvr32 /s sbdrop.dll
%windir%\System32\regsvr32 /s wlsrvc.dll
popd
pushd %ProgramFiles(x86)%\Windows Sidebar
%windir%\SysWOW64\regsvr32 /s sbdrop.dll
%windir%\SysWOW64\regsvr32 /s wlsrvc.dll
popd
reg import files\Sidebar.reg>nul 2>nul
"%ProgramFiles%\Windows Sidebar\sidebar.exe" /RegServer
"%ProgramFiles(x86)%\Windows Sidebar\sidebar.exe" /RegServer
if %errorlevel% NEQ 0 goto error
:: Windows 7 Sidebar installed successfully!
goto end
:error
:end
exit