Jump to content

[Request] How to do that ?


Ken@fri

Recommended Posts

Hi @ all !

I have few questions about INF sections & commands. Hope that anybody can help me. :graduated:

Links for tutorials will be APPRECIATED.

////////////////////////////////////QUESTION #1//////////////////////////////////////////

I need more explanations on this (or a tuto link) :

[MMM.Run]

11,,MMM.exe,1,,"" <------------- saw in Kal_CandyPack_Addon_123

I'd like to automatically launch a app immediatly after his manual installation (using [DefaultInstall] section). My apps already have a link in %allusersprofile%\Start Menu\Programs\Startup.

////////////////////////////////////QUESTION #2//////////////////////////////////////////

How to Set, in [DefaultInstall] section, Attributes for Files and Folders (without, i.e, using CMD /Q /C ATTRIB +S +H """%16422%\%BACKUP_DIR%""")

////////////////////////////////////QUESTION #2//////////////////////////////////////////

If anybody have any links/tutorials or any kind of help for sections & lines below (what is means ???).

[branding.CopyFile]

install.ins

[branding.CopyFile.Security]

"D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)" <------------ THIS LINE

Thanx.( :please: )

Ken@fri.

Edited by ricktendo64
DONT USE ALL CAPS PLZ (ricktendo64)
Link to comment
Share on other sites

This cannot set file attributes only security for files and reg entries (and I only have a vague idea of which of them do what)

[Branding.CopyFile.Security]
"D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)"

secij2.jpg

To set file attributes read INF_DOC.ZIP and search for "tasks.htm" to show you how to use AddReg to set attributes to files, if you have problems come back and post the location and names of the files and I will make you the addreg entries that will set the file attributes

This simply launches MMM.exe using RegisterDLLs

[MMM.Run]
11,,MMM.exe,1,,""

But if I were kal I would use this instead

[MMM.Run]
11,,MMM.exe,,5,""

I removed the 1 because MMM.exe is not a self registering DLL and added 5 because thats where the timeout of the dll registering process goes, the default is 60 or 1 min; this means that the INF will simply run MMM.exe and wait for 1 minute for it to do its thing...by me changing it to 5 it will lauch the program and wait only 5 seconds then continue even if the exe is still running

Here is the RegisterDLLs section thingy:

[register-dll-section]
dirid, subdir, filename, registration flags[, [optional timeout][,argument]]

A register-dll-section can have any number of entries, each on a

separate line.

RegisterDlls-Referenced Section Entries

dirid

Specifies the destination directory ID of the file to be

registered. For more information, see Using Dirids.

subdir

Optional. Specifies the directory path, relative to the current

directory, to the file to be registered. If not specified, the

file is in the current directory.

filename

Identifies the file name of the OLE control to be registered.

registration flags

Indicates the registration operations to perform on the OLE

control. One or both of the following flags must be specified.

Value Meaning

185

FLG_REGSVR_DLLREGISTER

(0x00000001)

Call the OLE control's

DllRegisterServer function

(described in Platform SDK

documentation).

FLG_REGSVR_DLLINSTALL

(0x00000002)

Call the OLE control's

DllInstall function

(described in Platform SDK

documentation).

Link to comment
Share on other sites

Hi ricks !

Thanks for quick reply. As usual, your help is usefull.

[MMM.Run]
11,,MMM.exe,,5,""

In my case, I'd like to do a manual install of a app located in %16422%\%MY_APP_PATH%\MyApp.exe et just after that lauch this app. This is what i'm trying to do and i dunno how.

How can i apply your explanation ? I try this but it failed : 16422,%MY_APP_PATH%,MyApp.exe,,1,""

Thanks.

Edited by Ken@fri
Link to comment
Share on other sites

Try this

16422,%MY_APP_PATH%,MyApp.exe,,,"/Swithces"

Where you see "/Switches" you add the programs silent switch and if you want you can probably bump up the timeout to 2 minutes using 120 here:

16422,%MY_APP_PATH%,MyApp.exe,,120,"/Swithces"

Not guaranteed to work but its worth a try

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...