Jump to content

Recommended Posts

Posted (edited)

Hello, I'm making a batch file to automate system tweaks (with the help of RegTweaks Collection)

I couldn't find some of them; do you know how to:

-enable "advanced search" by default

-remove security warning messages when executing certain file types

-remove format from drive menu options (or at least from a shortcut to the drive)

-empty a folder without deleting it; I manage only to remove files but not the subdirectories

-does RunOnceEx wait that self-extracting commands are completed?

For example I have a "mp3lame.exe" that unrars its files and then runs the LameACM.inf installation. Does RunOnceEx wait for the setup to be finished or proceeds after the extraction? (if yes, multiple installations could overlap)

Thanks :)

Edited by phaolo

Posted

I post here the help I received elsewere

Q1. Enable "Advanced Search"

I am assuming you know how to make a registry change during an unattended installation. Decode Kelly's instruction in her .VBS, or just use the .VBS:

Scroll to this section at KellyTheriot's site:

Search - Advanced Options (Set as Default)

http://www.kellys-korner-xp.com/xp_s.htm

Q2. remove security warning messages when executing certain file types

This is an IE setting. Either use a .REG file to disable the local LOCKDOWN, or stop the file extension lookup, or use IEAK.

Disable the local LOCKDOWN.

See: http://www.phdcc.com/xpsp2.htm

Disable file association lookups: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system

Create a new, DWORD Value.

Value name NoInternetOpenWith.

Value: 00000001

In a .REG file it would look like:

------------

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]

"NoInternetOpenWith"=dword:00000001

------------

From Wesley Vogel, MS-MVPs notes, you might go even further:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations

Value Name: DefaultFileTypeRisk

Data Type: REG_DWORD

Value Data: 0x00001807 (6152)

If the attachment is in the list of low risk file types, Windows will not

prompt the user before accessing the file, regardless of the file’s zone

information.

Value Name: LowRiskFileTypes <<---- add to this list

Data Type: REG_SZ

Value Data: .reg;.exe;.gif;.jpg;.avi;.mpeg

Documented here...

Description of how the Attachment Manager works in Windows XP Service Pack 2

http://support.microsoft.com/kb/883260

Q3: remove format from context menu

Rename format.exe

There are other ways to do this, but this is the easiest.

Q4. empty folder and subfolders but not main folder

e.g.

\phaolo

\sub1

\sub2

CMD /k RD /s /q phaolo & md phaolo

Q5. does RunOnceEx wait that self-extracting commands are completed?

It is up to the command called. RunOnceEx passes a single shell instance to the command called. If as part of that process it terminates the shell instance, the installation will fail. Pull the extraction process apart and write your own installation if there are issues. You, I am sure by now, know how to make sure that files are included in any install. Unrar them yourself, and call only the installer, for example. It is the termination of Unrar that I wold be worried about otherwise.

You can also write your own .MSI wrapper for the software. XP comes natively with a hidden gem: IExpress.exe

http://www.petri.co.il/create_executable_with_iexpress.htm

Thanks to Bill Castner

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...