Ken@fri Posted November 22, 2008 Posted November 22, 2008 (edited) 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_123I'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 LINEThanx.( :please: )Ken@fri. Edited November 23, 2008 by ricktendo64 DONT USE ALL CAPS PLZ (ricktendo64) Quote
Guest snakecracker Posted November 22, 2008 Posted November 22, 2008 there is a tutorial of INF AddOn makings here:http://www.wincert.net/forum/index.php?showtopic=2619and there is one for programes as well. Quote
Ken@fri Posted November 22, 2008 Author Posted November 22, 2008 there is a tutorial of INF AddOn makings here:http://www.wincert.net/forum/index.php?showtopic=2619and there is one for programes as well.Thanx 4 Ur help. Have a nice weekend ! Quote
ricktendo Posted November 22, 2008 Posted November 22, 2008 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)"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 attributesThis 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 runningHere 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 aseparate line.RegisterDlls-Referenced Section EntriesdiridSpecifies the destination directory ID of the file to beregistered. For more information, see Using Dirids.subdirOptional. Specifies the directory path, relative to the currentdirectory, to the file to be registered. If not specified, thefile is in the current directory.filenameIdentifies the file name of the OLE control to be registered.registration flagsIndicates the registration operations to perform on the OLEcontrol. One or both of the following flags must be specified.Value Meaning185FLG_REGSVR_DLLREGISTER(0x00000001)Call the OLE control'sDllRegisterServer function(described in Platform SDKdocumentation).FLG_REGSVR_DLLINSTALL(0x00000002)Call the OLE control'sDllInstall function(described in Platform SDKdocumentation). Quote
Ken@fri Posted November 22, 2008 Author Posted November 22, 2008 (edited) 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 November 22, 2008 by Ken@fri Quote
ricktendo Posted November 23, 2008 Posted November 23, 2008 Try this16422,%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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.