Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. Just a couple of suggestions with the above: You don't need to SET ProgPath=C: %SystemDrive% will already do this and will not be hardcoded to a specific drive letter Since you have removed the attributes from the Boot.ini, it would be good to finish off the code by at least re-applying the hidden attributes to %ORIG% and preferably %ORIG%_OLD (+H) to the end of it.
  2. Well it appears that very little, if anything in the following RunSec portion of my runonceex.inf, (section requested in green). [Version] Signature=$CHICAGO$ [DefaultInstall] AddReg=RunXP [RunXP] - - snip - - HKLM,"%RunOnceEx%\install55",,,"Applying Security Tweaks" HKLM,"%RunOnceEx%\install55",1,,"%11%\rundll32 setupapi,InstallHinfSection Security 128 %17%\runonceex.inf" - - snip - - [security] AddReg=RunSec [RunSec] HKCU,%Advanced%, HKCU,%Advanced%,HideFileExt,0x10001,0 HKCU,%Advanced%,NoNetCrawling,0x10001,1 HKCU,%Advanced%,Hidden,0x10001,1 HKCU,%Advanced%,WebViewBarricade,0x10001,1 HKCU,%CabState%, HKCU,%CabState%,FullPath,0x10001,1 HKCU,%CabState%,Settings,1,0c 00 02 00 0b 01 f8 75 60 00 00 00 HKCU,%FileExt%\.JS, HKCU,%FileExt%\.JS,Application,,"notepad.exe" HKCU,%FileExt%\.JS\OpenWithList, HKCU,%FileExt%\.JS\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.JS\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.JS\OpenWithProgids, HKCU,%FileExt%\.JSE, HKCU,%FileExt%\.JSE,Application,,"notepad.exe" HKCU,%FileExt%\.JSE\OpenWithList, HKCU,%FileExt%\.JSE\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.JSE\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.JSE\OpenWithProgids, HKCU,%FileExt%\.OTF, HKCU,%FileExt%\.OTF,Application,,"notepad.exe" HKCU,%FileExt%\.OTF\OpenWithList, HKCU,%FileExt%\.OTF\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.OTF\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.OTF\OpenWithProgids, HKCU,%FileExt%\.REG, HKCU,%FileExt%\.REG,Application,,"notepad.exe" HKCU,%FileExt%\.REG\OpenWithList, HKCU,%FileExt%\.REG\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.REG\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.REG\OpenWithProgids, HKCU,%FileExt%\.SHB, HKCU,%FileExt%\.SHB,Application,,"notepad.exe" HKCU,%FileExt%\.SHB\OpenWithList, HKCU,%FileExt%\.SHB\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.SHB\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.SHB\OpenWithProgids, HKCU,%FileExt%\.SHS, HKCU,%FileExt%\.SHS,Application,,"notepad.exe" HKCU,%FileExt%\.SHS\OpenWithList, HKCU,%FileExt%\.SHS\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.SHS\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.SHS\OpenWithProgids, HKCU,%FileExt%\.VBE, HKCU,%FileExt%\.VBE,Application,,"notepad.exe" HKCU,%FileExt%\.VBE\OpenWithList, HKCU,%FileExt%\.VBE\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.VBE\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.VBE\OpenWithProgids, HKCU,%FileExt%\.VBS, HKCU,%FileExt%\.VBS,Application,,"notepad.exe" HKCU,%FileExt%\.VBS\OpenWithList, HKCU,%FileExt%\.VBS\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.VBS\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.VBS\OpenWithProgids, HKCU,%FileExt%\.WSF, HKCU,%FileExt%\.WSF,Application,,"notepad.exe" HKCU,%FileExt%\.WSF\OpenWithList, HKCU,%FileExt%\.WSF\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.WSF\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.WSF\OpenWithProgids, HKCU,%FileExt%\.WSH, HKCU,%FileExt%\.WSH,Application,,"notepad.exe" HKCU,%FileExt%\.WSH\OpenWithList, HKCU,%FileExt%\.WSH\OpenWithList,a,,"NOTEPAD.EXE" HKCU,%FileExt%\.WSH\OpenWithList,MRUList,,"a" HKCU,%FileExt%\.WSH\OpenWithProgids, HKCU,%IEMain%, HKCU,%IEMain%,AutoSearch,0x10001,4 HKCU,%Settings%, HKCU,%Settings%,CertificateRevocation,0x10001,1 HKCU,%Settings%,PrivacyAdvanced,0x10001,1 HKCU,%Settings%\Cache, HKCU,%Settings%\Cache,Persistent,0x10001,0 HKCU,%Settings%\Zones\3, HKCU,%Settings%\Zones\3,{A8A88C49-5EB2-4990-A1A2-0876022C854F},1,\ 1a 37 61 59 23 52 35 0c 7a 5f 20 17 2f 1e 1a 19 0e 2b 01 73 13 37 13 12 14 1a 15 3b HKCU,%Settings%\Zones\3,{AEBA21FA-782A-4A90-978D-B72164C80120},1,\ 1a 37 61 59 23 52 35 0c 7a 5f 20 17 2f 1e 1a 19 0e 2b 01 73 13 37 13 12 14 1a 15 2a HKCU,%Settings%\Zones\3,1400,0x10001,1 HKCU,%Settings%\Zones\3,1402,0x10001,3 HKCU,%Settings%\Zones\3,1405,0x10001,3 HKCU,%Settings%\Zones\3,2004,0x10001,3 - - snip - - [strings] - - snip - - RunOnceEx="Software\Microsoft\Windows\CurrentVersion\RunOnceEx" Advanced="Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" CabState="Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" FileExt="Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts" IEMain="Software\Microsoft\Internet Explorer\Main" Settings="Software\Microsoft\Windows\CurrentVersion\Internet Settings" - - snip - -
  3. I have been having this problem too using registry settings, not just cookie handling, but advanced options, and security too. Even invoking the settings after log on from runonce doesn't work. I'm guessing that either 'Internet Options', or 'Internet Explorer' needs to be started first, otherwise it overwrites these particular keys with defaults. The options from winnt.sif, (home page etc). and 'policy' registry imports work okay though.
  4. REG ADD %KEY%\015 /V 1 /D "%SystemRoot%\system32\xcopy.exe /Y /E /I %systemdrive%\install\Tcommander\inikey \"F:\Total commander\"" /f
  5. You can miss out the delete if you add the yes for overwriting the original one. Also it would be possible to add enviromnent variables, to prevent tying the code to a specific drive letter. COPY/Y "%systemdrive%\Install\Applications\AdAware\reflist.ref" "%ProgramFiles%\Lavasoft\Ad-aware 6\"Hope this helps!
  6. but you have, the installation will look for winnt.sif in floppy drive first
  7. Try Something like this in your winnt.sif [params.MS_TCPIP.Adapter1] SpecificTo=Adapter1 DHCP=No DisableDynamicUpdate=Yes DNSServerSearchOrder=192.168.1.1 EnableAdapterDomainNameRegistration=No DefaultGateway=192.168.1.1 IPAddress=192.168.1.3 SubnetMask=255.255.255.0 WINS=No NetBIOSOptions=2This should do for most routers still using the default 192.168.1.x range in the factory presets. I would probably be tempted to change the IP Address to something like 192.168.1.12, just to prevent future network conflicts with anything still using DHCP.
  8. If you have no need to change it for current user only use this as an inf file. [Version] Signature=$CHICAGO$ [DefaultInstall] AddReg = Reg.Settings [Reg.Settings] HKCR,CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D},LocalizedString,0x20000,"comp" HKCR,CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D},LocalizedString,0x20000,"net" HKCR,CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103},LocalizedString,0x20000,"doc" HKCR,CLSID\{645FF040-5081-101B-9F08-00AA002F954E},LocalizedString,0x20000,"bin"Edit:The net one I assumed you meant My Network Places
  9. Have you tried using the same inf but changing it like this: setup.ini, progman.groups,, "group1=""%16386%\"""i.e. adding the backslash. in the respective lines
  10. You can create the shortcut using an inf run from runonceex.cmd For a template file Read this reply, and for a smaller more concise example look at this reply!
  11. No, on this occasion it just happens to be a setting which is available on a per computer (LOCAL_MACHINE) basis.
  12. Before the cleanup routine is called in runoncex.cmd, add the lines similar to the following: REG ADD %KEY%\045 /VE /D "Adding user defined shortcut" /f REG ADD %KEY%\005 /V 1 /D "rundll32 setupapi,InstallHinfSection Shortcuts 128 %systemdrive%\Apps\shortcut.inf" /f Now create a shortcut.inf file similar to this: [Version] Signature=$CHICAGO$ [Shortcuts] UpdateInis=AddLink [AddLink] ;adds shortcut to Program Files\AVPersonal\AVWIN.EXE to the current users Quick Launch bar setup.ini, progman.groups,, ""group1="%16410%\Microsoft\Internet Explorer\Quick Launch\""" setup.ini, group1,,"""AVWIN"",""""""%16422%\AVPersonal\AVWIN.EXE""""""" Where %16410% = %USERPROFILE%\Application Data and %16422% = %ProgramFiles%. Hope this helps!
  13. I just typed %USERPROFILE%\Recent into the run box, and got what I expected (from a different drive also). Of course it also works okay with %USERPROFILE%\Desktop, but the profiles directories in my case were done using the winnt.sif
  14. Yes, you can always export the affected keys first...I have had slight problems with the Subfolders within My Docs sometimes not appearing when applying it to an existing system though... You will also need to reboot your system.
  15. I assume from the fact that it isn't already on displayand that although trying the Classic Logon and Classic Control Panel, that you are not using the Classic Desktop, therefore try this: At cmdlines.txt under [Commands] put: "rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 .\mycomp.inf"Then create the following mycomp.inf file and put it in the same location: [Version] Signature=$CHICAGO$ [DefaultInstall] AddReg=Reg.Settings [Reg.Settings] HKLM,%PATH%,{20D04FE0-3AEA-1069-A2D8-08002B30309D},0x10001,0 [Strings] PATH="SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
  16. Windows Firewall can be preconfigured by modifying the Windows Firewall INF file, named Netfw.inf, in which Windows Firewall’s default configuration is stored. During the installation of Windows XP or update to Windows XP SP2, Windows Firewall imports its configuration from this INF file. This means that any modifications made to the Windows Firewall INF file prior to installation of Windows will automatically be incorporated into the default configuration of Windows Firewall. Read this for further info! or alternatively read this for further deployment methods.
  17. Special folders include the My Documents, My Pictures, and Favorites folders, among many others. Below is a list of special folders that Windows XP creates after a fresh installation and their default paths. The first column contains each folder's internal name as Windows XP and other programs know it. The second column contains each folder's default path, which almost always starts with %USERPROFILE%, making these folders part of each user's profile folder. ---------------------Special Folders -------Name-----------------------Default path AppData---------------%USERPROFILE%\Application Data Cache-----------------%USERPROFILE%\Local Settings\Temporary Internet Files Cookies---------------%USERPROFILE%\Cookies Desktop---------------%USERPROFILE%\Desktop Favorites--------------%USERPROFILE%\Favorites History----------------%USERPROFILE%\Local Settings\History Local AppData--------%USERPROFILE%\Local Settings\Application Data Local Settings--------%USERPROFILE%\Local Settings My Pictures-----------%USERPROFILE%\My Documents\My Pictures NetHood--------------%USERPROFILE%\NetHood Personal--------------%USERPROFILE%\My Documents PrintHood-------------%USERPROFILE%\PrintHood Programs-------------%USERPROFILE%\Start Menu\Programs Recent----------------%USERPROFILE%\Recent SendTo---------------%USERPROFILE%\SendTo Start Menu-----------%USERPROFILE%\Start Menu Startup---------------%USERPROFILE%\Start Menu\Programs\Startup Templates-----------%USERPROFILE%\Templates HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders is the key where Windows XP stores the location of per-user special folders. Each value in this key is a special folder as shown above. These are REG_EXPAND_SZ values, so you can use environment variables in them. Use %USERPROFILE% in a path to direct the folder somewhere inside users' profile folders or %USERNAME% in a path to include users' names. To redirect users' Favorites folders to the network, set the value Favorites, to \\Server\Share\%USERNAME%\Favorites, where \\Server\Share is the server and share containing the folders. The next time the user logs on, Windows XP updates a second key, HKCU\Software\Microsoft\Windows\CurrentVersion \Explorer\Shell Folders, with the paths from User Shell Folders, so you don't have to update it. In fact, Microsoft's documentation says Windows XP doesn't use Shell Folders. The special folders in the above section are per-user and exist within users' profile folders. Windows XP also lists per-computer special folders in HKLM. Examples of per-computer folders include Common AppData, Common Desktop, and Common Documents. It's not as useful to customize per-computer folders, but, the same rules apply. Change the location of the folder in User Shell folders and Windows XP automatically updates Shell Folders. Although the simplest way I find to do this is to create a separate partition for the 'Documents and Settings' and redirect all this information, which includes the Local Settings\Temp & Temporary Internet Files, Recent Docs etc. to this upon installation. This is simply done by, as previously mentioned, adding the following to your winnt.sif file: [GuiUnattended] ProfilesDir="your_drive_letter:\your_chosen_folder name\"
  18. Read this! All you need to do with the posted redirect.inf is change the following in the [strings] section to something like: PERSONAL = "your_drive_letter:\%USERNAME%\My Documents" PICTURES = "your_drive_letter:\%USERNAME%\My Documents\My Pictures" FAVORITES = "your_drive_letter:\%USERNAME%\Favorites" MUSIC = "your_drive_letter:\%USERNAME%\My Documents\My Music" Hope this helps!
  19. Why do you need to write a program, would adding this in a reg at cmdlines.txt: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "Start_LargeMFUIcons"=dword:00000000;for small icon, 00000001 for largeand then adding this in a reg at GuiRunOnce or from runonceex.cmd: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] "NoSimpleStartMenu"=dword:00000001;force classic menu, 00000000 for default menunot do the same thing?
  20. Not that it's got anything to do with your problem, but your Vrefresh is set low, have you tried 70, 72, 75, or even 85.
  21. For the home, I'm assuming that's what would normally be 'My Documents' etc. you can probably use redirect.inf: [Version] Signature = $CHICAGO$ [DefaultInstall] AddReg = Reg.Settings AddReg = Reg.Uninstall CopyFiles = Inf.Copy [DefaultUninstall] DelReg = Reg.Settings DelReg = Reg.Uninstall DelFiles = Inf.Copy [Reg.Settings] HKCU,%Folder%,Personal,0x00020000,"%PERSONAL%" HKCU,%Folder%,My Pictures,0x00020000,"%PICTURES%" HKCU,%Folder%,Favorites,0x00020000,"%FAVORITES%" HKCU,%Folder%,My Music,0x00020000,"%MUSIC%" [Reg.Uninstall] HKCU,%Posn%\%NAME% HKCU,%Posn%\%NAME%,DisplayName,,"%NAME%" HKCU,%Posn%\%NAME%,UninstallString\ ,,"Rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132"\ "%53%\Application Data\Custom\redirect.inf" [Inf.Copy] redirect.inf [DestinationDirs] Inf.Copy = 53,Application Data\Custom [SourceDisksNames] 55 = %DISKNAME% [SourceDisksFiles] redirect.inf = 55 [Strings] Folder = "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" Posn = "Software\Microsoft\Windows\CurrentVersion\Uninstall" PERSONAL = "\\server\users\%USERNAME%\My Documents" PICTURES = "\\server\users\%USERNAME%\My Documents\My Pictures" FAVORITES = "\\server\users\%USERNAME%\Favorites" MUSIC = "\\server\users\%USERNAME%\My Documents\My Music" NAME = "Yzöwl's Folder Redirect" DISKNAME = "Setup Files"You can add this from cmdlines.txt: [Commands] "rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\redirect.inf"Then for the profiles, i'm guessing you mean Documents and Settings I'm only assuming that you can add something like this to winnt.sif: [GuiUnattended] ProfilesDir="\\server\users\%USERNAME%\profile\" I say assuming since I dont know id winnt.sif will accept the environment variable. You could of course just change this location to \\server\users\profiles\ and it would automatically add the usernames to the end. Hope the ideas help anyhow!
  22. I'm not sure if I fully understand the main question, but on the 'Documents and Settings' thing, put something like this into your winnt.sif: [GuiUnattended] ProfilesDir="driveletter:\yourchosenname\"
  23. For starters, what about changing it to [UserData] ProductKey=
×
×
  • Create New...