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-ko...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....th_iexpress.htm
Thanks to Bill Castner