Jump to content

Windows file protection and other problems


Recommended Posts

Hi everyone

I have created a Win uA SP2 cd, with various problems. I have looked through the database, but I cant find what Im looking for.

The installation is completed without any problems, but when the computer starts it does not seem to be the way I want it.

How do I make sure that the followering things appear on the desktop?

My Computer

My Network Places

Internet Explorer

My Documents

Is it possible to make all the *.ink disappear?

In the end of my installation a clean.cmd should be runed, and it does run. But it does not remove the files from my desktop?

ohh... Could this be because it is runed for all users?

The second time I reboot, Windows says that Windows file protection have found a file that is not the way it should be? How do I make sure this message does not appear.

RunOnceEx.cmd

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\005 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\apps\communication\msn_6.2.msi /qb" /f

REG ADD %KEY%\010 /VE /D "Skype 1.0.0.29" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\apps\communication\Skype_1.0.0.29.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\015 /VE /D "mIRC NoName Script" /f
REG ADD %KEY%\015 /V 1 /D "REGEDIT /S %systemdrive%\Install\apps\communication\register.reg" /f

REG ADD %KEY%\020 /VE /D "TweakUI Powertoy" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\apps\Powertoys\TweakUI.msi /qb" /f

REG ADD %KEY%\025 /VE /D "Task Switcher Powertoy" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\apps\Powertoys\TaskswitchPowertoySetup.exe /S /v /qn" /f

REG ADD %KEY%\035 /VE /D "Nero Burning ROM 6.3.1.20 Ultra Edition" /f
REG ADD %KEY%\035 /V 1 /D "REGEDIT /S %systemdrive%\apps\burning\register.reg" /f
REG ADD %KEY%\035 /V 2 /D "%systemdrive%\install\apps\burning\nero63120.exe /Silent /noreboot /no_ui /sn=1A23-0009-5030-1324-9634-8305" /f

REG ADD %KEY%\040 /VE /D "FlashFXP 3.0.0.1015 Final" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\apps\ftp\FlashFXP_3.0.0.1015_Final.exe /SILENT" /f

REG ADD %KEY%\045 /VE /D "FlashFXP Add-on" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\apps\ftp\flashfxp.exe /S" /f

REG ADD %KEY%\050 /VE /D "NetLimiter 1.30" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\apps\utilities\NetLimiter_v130.exe /S" /f

REG ADD %KEY%\055 /VE /D "NetLimiter 1.30 Add-on" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\Install\apps\utilities\nl_patch.exe /S" /f

REG ADD %KEY%\057 /VE /D "Ad-Aware SE Professional" /f
REG ADD %KEY%\057 /V 1 /D "%systemdrive%\Install\apps\utilities\aawsepro1.04.exe /S" /f
REG ADD %KEY%\057 /V 2 /D "sleep.exe 10" /f
REG ADD %KEY%\057 /V 3 /D "TASKKILL.exe /F /IM Ad-Aware.exe" /f
REG ADD %KEY%\057 /v 4 /D "taskkill /F /IM hh.exe" /f

REG ADD %KEY%\060 /VE /D "PeerGuardian_v1.99_pr14" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\apps\ftp\PeerGuardian_v1.99_pr14.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\065 /VE /D "Norton Antivirus 2003 Pro" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\Install\apps\antivirus\NAV2003\NAV\nav.msi /qb" /f

REG ADD %KEY%\070 /VE /D "Norton Antivirus Add-on" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\Install\apps\antivirus\Update.exe" /f

REG ADD %KEY%\072 /VE /D "Mozilla Firefox 0.9.3" /f
REG ADD %KEY%\072 /V 1 /D "%SYSTEMDRIVE%\Install\apps\FIREFOX\SETUP.EXE -MS -IRA" /f
REG ADD %KEY%\072 /V 2 /D "%SYSTEMDRIVE%\Install\apps\FIREFOX\CLEAN.CMD" /f
REG ADD %KEY%\001 /V 3 /D "%SYSTEMDRIVE%\Install\apps\FIREFOX\PLUGINS.EXE /S" /f
FOR %%A IN ("%PROGRAMFILES%") DO SET SHORTPF=%%~sA
REG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /F
REG ADD "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /F
REG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "Check_Associations" /D "no" /F
REG ADD "HKU\.DEFAULT\SOFTWARE\Microsoft\Internet Explorer\Main" /V "ShowedCheckBrowser" /D "yes" /F
REG ADD "HKLM\SOFTWARE\Classes\.htm" /VE /D "FirefoxHTML" /F
REG ADD "HKLM\SOFTWARE\Classes\.html" /VE /D "FirefoxHTML" /F
REG ADD "HKLM\SOFTWARE\Classes\ftp\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\gopher\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\http\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\http\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\https\DefaultIcon" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE,1" /F
REG ADD "HKLM\SOFTWARE\Classes\https\shell\open\command" /VE /D "%SHORTPF%\MOZILL~1\FIREFOX.EXE -url \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Clients\StartMenuInternet" /VE /D "FIREFOX.EXE" /F
REG DELETE "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\http\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
REG DELETE "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\https\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
REG DELETE "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\ftp\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F
REG DELETE "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec" /F
REG ADD "HKLM\SOFTWARE\Classes\gopher\shell\open\ddeexec\Application" /VE /D "FIREFOX" /F

REG ADD %KEY%\075 /VE /D "WinRAR 3.4 Beta 1" /f
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\Install\apps\compression\wrar34b1.exe /S" /f

REG ADD %KEY%\080 /VE /D "Winamp 5.04 Full" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\Install\apps\sound\winamp.msi /qbINI="%systemdrive%\install\apps\sound\winamp.ini"" /f

REG ADD %KEY%\083 /VE /D "VideoLAN 0.7.2" /f
REG ADD %KEY%\083 /V 1 /D "%systemdrive%\Install\apps\video\vlc-0.7.2-win32.exe /S" /f

REG ADD %KEY%\084 /VE /D "PowerDVD 5.6.0.3 Deluxe"
REG ADD %KEY%\084 /V 1 /D "%systemdrive%\Install\apps\video\Setup.exe -s -f1\"%systemdrive%\Install\apps\video\setup.iss\" -f2\"%systemdrive%\PowerDVD.log\"" /f

REG ADD %KEY%\085 /VE /D "Microsoft Office 2003 SP1"
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\apps\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\090 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\090 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\095 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\095 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

winnt.sif

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"
   AutomaticUpdates=yes

[Unattended]
   FileSystem=*
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   OemFilesPath="..\$OEM$"
   TargetPath=\WINDOWS
   Repartition=No
   UnattendSwitch="yes"
   WaitForReboot="No"
   OemPnPDriversPath="Drivers\000_chipset;Drivers\001_network;
Drivers\001_network\wireless;Drivers\002_graphics;Drivers\003_sound\S\A;
Drivers\003_sound\S\C;Drivers\003_sound\S\CR;Drivers\003_sound\S\CR\L;
Drivers\003_sound\S\N;Drivers\003_sound\S\R;Drivers\003_sound\S\S;
Drivers\003_sound\S\T\A;Drivers\003_sound\S\T\D; RIVERS\S\V\E;Drivers\003_sound\S\V\V;Drivers\003_sound\audigy;
Drivers\004_monitor;Drivers\005_keyboard;Drivers\006_mouse;
Drivers\007_modem;Drivers\008_memorystick"
   DriverSigningPolicy=Ignore
   ProgramFilesDir="C:\Program Files"
   CommonProgramFilesDir="C:\Program Files\Common Files"

[GuiUnattended]
   AdminPassword=*
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=105
   OemSkipWelcome=1

[UserData]
   ProductKey=plonk-plonk-plonk-plonk-plonk
   FullName="Phil"
   OrgName=""
   ComputerName=Phil

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768

[TapiLocation]
   CountryCode=45

[RegionalSettings]
   LanguageGroup=1
   SystemLocale=00000406
   UserLocale=00000406
   InputLocale=0406:00000406

[WindowsFirewall]
   Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
   Mode = 0

[IEPopupBlocker]
   AllowedSites=www.msfn.org;www.microsoft.com;www.newz.dk;www.google.com;www.danskebank.dk
   BlockPopups=Yes
   FilterLevel=Medium
   ShowInformationBar=Yes

[Identification]
   JoinWorkgroup=Volden

[Networking]
   InstallDefaultComponents=Yes

[URL]
Home_Page=http://www.newz.dk

[Components]
   msmsgs=off
   msnexplr=off
   zonegames=off
   pinball=off
   Mswordpad=off

[Shell]


[GuiRunOnce]

In winnt.sif should there be quotations around the value?

ex.

pinball=off

should be

pinball="off"

I have noticed that some of my values contaion "", but not others.

I hope someone called help me.

Thanks in advance.

//Phil

Link to comment
Share on other sites


If you want to delete all shortcuts from the desktop

Del %AllUsersProfile%\Desktop\*.*
Del %UserProfile%\Desktop\*.*

With the winnt.sif. Just ensure you use "" around strings with spaces.

My Computer etc. on the desktop. Look in the Registry Tweaks thread pinned.

If WFP complains that a file is not the way it should be? then 1 of your programs is perhaps overwriting 1 of your system files? This should be corrected?

Hope this helps you some.

Link to comment
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.
×
×
  • Create New...