PoloDude Posted May 8, 2005 Posted May 8, 2005 I made an inf-file for regtweaks and adding shortcutsIt does the regTweaks part but not the shortcuts just can't seem to find the problem... Anyone who can help?GrtzregTweaks.inf
Oleg_II Posted May 8, 2005 Posted May 8, 2005 Well, I do it in other way:[Version]Signature=$CHICAGO$[DefaultInstall]UpdateInis = Appz.links,Del.Link[Appz.links]; Quick Launchsetup.ini, progman.groups,, "group1=""..\..\..\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch"""setup.ini, group1,, """Player 1by1"",""""""%16422%\1by1\1by1.exe"""""",,,,""%16422%\1by1"",""1by1.exe"""[Del.Link] setup.ini, progman.groups,, "group15=""..\..\..\Default User\Start Menu\Programs\Accessories\System Tools"""setup.ini, group15,, """Getting Started"""The only issue with this - I can get Info Tip, just don't know where to specify it.There are also some codes you can use to replace "Default User" with them.Regards,Oleg 2
Yzöwl Posted May 8, 2005 Posted May 8, 2005 (edited) @ PoloDudeI have made a few corrections to your inf, (attached below), but for your ProfileItems Directive to work, you need a DestinationDirs section within your inf. I have not included that in my attachment, I'll leave that to you.Hope it helps!@ Oleg_IIThe ProfileItems Directive is for items or groups to be added to, or removed from, the Start menu, only. Your method works for any location, although the InfoTip option is not available.<Edit>This inf has been re-upped, due to my own errors</Edit>regTweaks.inf Edited May 8, 2005 by Yzöwl
Yzöwl Posted May 8, 2005 Posted May 8, 2005 (edited) The main errors were several hex strings using 0x00010001, which is for REG_DWORD.Other than that, I think just one or two minor errors. Do a compare of the two files in an appropriate program, to see the changes. It may however take a while since I prettied the file up to my usual format too, i.e. removing pointless quotes, excess 0s, adding spaces between commas in hex strings, replacing tabs with spaces and replacing HKCR, with HKLM,SOFTWARE\Classes\. The only thing I replaced which may or may not suit you was a couple of NOCLOBBER entriesREG_SZ_NOCLOBBER (0x00000002) was replaced with REG_SZ (,,)REG_BINARY_NOCLOBBER (0x00000003) was replaced with REG_BINARY (1).<Edit>Please also note that I have re-upped the file, due to a few quotation marks, I failed to remove, hopefully now it is correct. Re-download it if you feel like using it!</Edit> Edited May 8, 2005 by Yzöwl
PoloDude Posted May 8, 2005 Author Posted May 8, 2005 It's great, gonna test it right now on my VM Just finished my unattended, so.. Thx!
Yzöwl Posted May 8, 2005 Posted May 8, 2005 Just an update for onlookers, or a check for PoloDude, I have created a little update here of the sort of thing that should be added in order to install the exe files attributed to the shortsuts.[SourceDisksNames]55 = %DISKNAME%[SourceDisksFiles]filemon.exe = 55procexp.exe = 55regmon.exe = 55;WillyPad.exe = 55[DestinationDirs]DefaultDestDir = 10[DefaultInstall]CopyFiles = Filemon, Procexp, Regmon[Filemon]filemon.exe,,16[Procexp]procexp.exe,,16[Regmon]regmon.exe,,16[Willypad];WillyPad.exe,,16[Strings]DISKNAME = "Setup Files"I have commented out the WillyPad stuff and missed it off the CopyFiles listing because I noticed that it was not included in the authors original ProfileItems listing.
PoloDude Posted May 8, 2005 Author Posted May 8, 2005 I copy those files during install with the $OEM$ folder, that's why there isn't a CopyFiles listing
Oleg_II Posted May 9, 2005 Posted May 9, 2005 2YzöwlOk, now I have a question. I'm not very used with inf structure, could you please let me know how I should specify this Destination Directory in the example below?[Version]Signature = $CHICAGO$[DefaultInstall]ProfileItems = 1by1.AddShortcut[DestinationDirs]DefaultDestDir= 24, Profiles\Default User\Start Menu\Programs1by1.AddShortcut = 24, Profiles\Default User\Start Menu\Programs[1by1.AddShortcut]Name = 1by1 PlayerCmdLine = 16422,1by1\1by1.exeSubDir = 1by1WorkingDir = 16422InfoTip = Directory mp3 playerThis example doesn't work for me Regards,Oleg 2
Oleg_II Posted May 9, 2005 Posted May 9, 2005 Two more question about inf:1. I've got this lines to add users from Gosh's inf:[Add.Users]HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup","Add User1",,"%11%\cmd.exe /c net user Oleg z /add"HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup","Add User1 Group",,"%11%\cmd.exe /c net localgroup Users Oleg /add"Is it possible to make the password for this account unlimited? I add this line in inf file HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup","Add User1",,"%11%\cmd.exe /c net accounts /maxpwage:unlimited"but it seems not to have any use 2. Is it possible to use inf-file to make definitions for this regestry values: HKCU,Identities\{0D939B1F-EDC7-4056-980E-70F894759BD0}I'd like to change my mail folders destination with inf-file but there are such values in registry and they differ from one installiaton to another (in fact I'm using the script for this but wold like to change for inf-file).Regards,Oleg 2
Yzöwl Posted May 9, 2005 Posted May 9, 2005 2YzöwlOk, now I have a question. I'm not very used with inf structure, could you please let me know how I should specify this Destination Directory in the example below?<Snip>Regards,Oleg 2@ Oleg_IIFirst things first, I was under the impression that PoloDude was using the inf to install the apps too, if this is not the case, you do not need to add additional directives /sections.All you should need is:[Version]Signature = $Windows NT$[DefaultInstall]ProfileItems = 1by1.AddShortcut[1by1.AddShortcut]Name = 1by1 PlayerCmdLine = 16422,1by1,1by1.exeSubDir = 1by1WorkingDir = 16397InfoTip = Directory mp3 playerThe above will add the shortcut automatically to the %AllUsersProfile%\Start Menu\Programs, with a Start in entry of %UserProfile%\My Documents\My MusicHope this helps for the related question, however it would be unfair of me to answer the other question(s) in this thread.
Oleg_II Posted May 9, 2005 Posted May 9, 2005 however it would be unfair of me to answer the other question(s) in this thread.Why not? The thread has a general subject and it would be interesting and even useful for beginners (not only) to have one thread for all inf-related questions.Thanks anyway for the help, I thought WorkingDir means my Appz directory Regards,Oleg 2
Yzöwl Posted May 9, 2005 Posted May 9, 2005 The working directory is optional, if omitted, the working directory will default to the directory in which your exe resides, i.e %ProgramFiles%\1by1.
Oleg_II Posted May 9, 2005 Posted May 9, 2005 2YzöwlSorry, I can't find the DirID for Default User\Start Menu\Programs. Is there a place I can read about it? Or will it be in the Default User directory if I use %AllUsersProfile% during unattended?I'd like to have this shortcut in my newly created User Profile after unattended installation.Regards,Oleg 2
Yzöwl Posted May 9, 2005 Posted May 9, 2005 @ Oleg_IIThe ProfileItems Directive will either use the AllUsersProfile (Documents and Settings\All Users), which is it's default, i.e.Name = 1by1 Playeror the CurrentUser (Documents and Settings\UserName), i.e.Name = 1by1 Player,1By its very nature the All Users will include all users, therefore satisfying your criteria.If you needed a DIRID for the Default User, you would either need to define a new one in your inf, or use 53,Default User
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now