Jump to content

Recommended Posts


Posted

Well, I do it in other way:

[Version]Signature=$CHICAGO$

[DefaultInstall]

UpdateInis = Appz.links,Del.Link

[Appz.links]

; Quick Launch

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

Posted (edited)

@ PoloDude

I 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_II

The 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 by Yzöwl
Posted (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 entries

REG_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 by Yzöwl
Posted

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    = 55
procexp.exe    = 55
regmon.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.

Posted

2Yzöwl

Ok, 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\Programs

1by1.AddShortcut = 24, Profiles\Default User\Start Menu\Programs

[1by1.AddShortcut]

Name          = 1by1 Player

CmdLine        = 16422,1by1\1by1.exe

SubDir        = 1by1

WorkingDir    = 16422

InfoTip        = Directory mp3 player

This example doesn't work for me :(

Regards,

Oleg 2

Posted

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

Posted
2Yzöwl

Ok, 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_II

First 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 Player
CmdLine      = 16422,1by1,1by1.exe
SubDir       = 1by1
WorkingDir   = 16397
InfoTip      = Directory mp3 player

The above will add the shortcut automatically to the %AllUsersProfile%\Start Menu\Programs, with a Start in entry of %UserProfile%\My Documents\My Music

Hope this helps for the related question, however it would be unfair of me to answer the other question(s) in this thread.

Posted
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

Posted

The working directory is optional, if omitted, the working directory will default to the directory in which your exe resides, i.e %ProgramFiles%\1by1.

Posted

2Yzöwl

Sorry, 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

Posted

@ Oleg_II

The ProfileItems Directive will either use the AllUsersProfile (Documents and Settings\All Users), which is it's default, i.e.

Name         = 1by1 Player

or the CurrentUser (Documents and Settings\UserName), i.e.

Name         = 1by1 Player,1

By 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

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