Cum zicea poetul Posted October 15, 2009 Share Posted October 15, 2009 (edited) Here is the body of the INF file, I included the section with the strings, so you can see where everything is taken from.[Version]Signature = $Windows NT$[DefaultInstall];UpdateInis=CreateStartMenuFolderAddReg = RegAddUninstProfileItems = AddTest, AddTestEx[DefaultUnInstall]ProfileItems=AddTest.DelShortcut[AddTest.DelShortcut]Name =ACME distorterA,0x0000000A, 2;Also tried with Name =%Soft_Name%,0x0000000A, 2;SubDir =Sub Directory[RegAddUninst]HKLM,%SMWCV%\Uninstall\%Soft_Name%,DisplayName,,"ACME"HKLM,%SMWCV%\Uninstall\%Soft_Name%,UninstallString,,"RunDll32 advpack.dll,LaunchINFSection d:\test\installer\installer.inf, DefaultUninstall";16422 = program files[AddTest]Name = ACME distorterA SubDir = %Provider%Infotip = "This is a tooltip weeha!"CmdLine = -1, %App_ProgramFolder%, Acmedist.exe WorkingDir = -1, %App_ProgramFolder%[AddTestEx]Name = %Soft_Name%SubDir = %Provider%Infotip = "This is a tooltip weeha!QQQQQQ"CmdLine = -1, %App_ProgramFolder%, Acmedist.exe WorkingDir = -1, %App_ProgramFolder%[Strings]SMWCV="Software\Microsoft\Windows\CurrentVersion"Provider="ACME"Soft_Name="ACME distorter 5.0"AppLink="ACME distorter 5.0"App_Name="ACME distorter 5.0"App_StartMenuFolder="ACME\Distorter 5.0"App_ProgramFolder="ACME\Distorter 5.0"ShortCutFileName="ACME\Distorter 5.0.lnk"PathAndFileName="ACMEdist.exe"Arguments= ""I tried using "0x0000000A,2", as suggested by DaRk MaDnEsS, but the result is the same - the shortcut continues to stay in the Start menu. Edited October 15, 2009 by Cum zicea poetul Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2009 Share Posted October 15, 2009 (edited) Here is the body of the INF file, I included the section with the strings, so you can see where everything is taken from.[Version]Signature = $Windows NT$[DefaultInstall];UpdateInis=CreateStartMenuFolderAddReg = RegAddUninstProfileItems = AddTest, AddTestEx[DefaultUnInstall]ProfileItems=AddTest.DelShortcut[AddTest.DelShortcut]Name =ACME distorterA,0x0000000A, 2;Also tried with Name =%Soft_Name%,0x0000000A, 2;SubDir =Sub Directory[RegAddUninst]HKLM,%SMWCV%\Uninstall\%Soft_Name%,DisplayName,,"ACME"HKLM,%SMWCV%\Uninstall\%Soft_Name%,UninstallString,,"RunDll32 advpack.dll,LaunchINFSection d:\test\installer\installer.inf, DefaultUninstall";16422 = program files[AddTest]Name = ACME distorterA SubDir = %Provider%Infotip = "This is a tooltip weeha!"CmdLine = -1, %App_ProgramFolder%, Acmedist.exe WorkingDir = -1, %App_ProgramFolder%[AddTestEx]Name = %Soft_Name%SubDir = %Provider%Infotip = "This is a tooltip weeha!QQQQQQ"CmdLine = -1, %App_ProgramFolder%, Acmedist.exe WorkingDir = -1, %App_ProgramFolder%[Strings]SMWCV="Software\Microsoft\Windows\CurrentVersion"Provider="ACME"Soft_Name="ACME distorter 5.0"AppLink="ACME distorter 5.0"App_Name="ACME distorter 5.0"App_StartMenuFolder="ACME\Distorter 5.0"App_ProgramFolder="ACME\Distorter 5.0"ShortCutFileName="ACME\Distorter 5.0.lnk"PathAndFileName="ACMEdist.exe"Arguments= ""I tried using "0x0000000A,2", as suggested by DaRk MaDnEsS, but the result is the same - the shortcut continues to stay in the Start menu.well what i think it should work [AddTest.DelShortcut]Name =%Soft_Name%,0x0000000A, 2SubDir = %Provider%and the shortcut should be [AddTestEx]Name = %Soft_Name%,0x00000008,2SubDir = %Provider%Infotip = "This is a tooltip weeha!QQQQQQ"CmdLine = -1, %App_ProgramFolder%, Acmedist.exe WorkingDir = -1, %App_ProgramFolder%test and tell meEdit:i think since it installs to all users you might need to use 0x0000000A, 23with the old inf ( i'm not sure tho i just got this in my head) Edited October 15, 2009 by DaRk MaDnEsS Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 15, 2009 Author Share Posted October 15, 2009 [Adds]Name=%Soft_Name%,0x00000008,2SubDir=%Provider%Infotip="This is a tooltip weeha!QQQQQQ"CmdLine=-1,%App_ProgramFolder%,Acmedist.exe WorkingDir=-1,%App_ProgramFolder%[Deletes]Name=%Soft_Name%,0x0000000A,2SubDir=%Provider%BTW you dont need to use any exotic inf profileitem flags for this shortcut, you can use 0x00000001 then 0x00000002 or 0x00000003 to delete it (OH an it does not install to all users its going into current user)[Adds]Name=%Soft_Name%,0x00000001SubDir=%Provider%Infotip="This is a tooltip weeha!QQQQQQ"CmdLine=-1,%App_ProgramFolder%,Acmedist.exe WorkingDir=-1,%App_ProgramFolder%[Deletes1]Name=%Soft_Name%,0x00000002SubDir=%Provider%[Deletes2]Name=%Soft_Name%,0x00000003SubDir=%Provider% Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted October 16, 2009 Share Posted October 16, 2009 How to use the flag "CE_COPYFLG_NO_DATE_DIALOG 0x20000000" which does not copy a file if the target file is newer. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 16, 2009 Share Posted October 16, 2009 How to use the flag "CE_COPYFLG_NO_DATE_DIALOG 0x20000000" which does not copy a file if the target file is newer.in the copy section lets say that you are copying DM.exeDM.exe,,0x20000000 should do the trick Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted October 16, 2009 Share Posted October 16, 2009 (edited) ok thank you but I FGCBA reports errors by as follows :s Edited October 16, 2009 by Alpha_95 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 16, 2009 Share Posted October 16, 2009 ok thank you but I FGCBA reports errors by as follows :ssorry my bad i miss writien itDM.exe,,,0x20000000it should be 3 ,,, not only 2If FGCBA Reports any error try to test it and see Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 16, 2009 Author Share Posted October 16, 2009 Ignore the error, FGCBA does not support copy file flags Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted October 17, 2009 Share Posted October 17, 2009 (edited) thanks, it's perfect !edit: No, addon dosen't work with this flag... Edited October 20, 2009 by Alpha_95 Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted October 19, 2009 Share Posted October 19, 2009 There is possible to add a scheduled task? Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted October 20, 2009 Share Posted October 20, 2009 I have an InstallShield (% ProgramFiles%\InstallShield Installation Information\(8F5A0981-5CDC-41D0-BCA2-AD3B777FC358)\), how to make a follow Inf?Thank you Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 20, 2009 Author Share Posted October 20, 2009 No comprende :S Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted October 20, 2009 Share Posted October 20, 2009 my program .exe is an Installshield installer that creates files in "%ProgramFiles%\InstallShield Installation Information\(8F5A0981-5CDC-41D0-BCA2-AD3B777FC358)\" so I love creating knowledge in INF installer? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 20, 2009 Share Posted October 20, 2009 my program .exe is an Installshield installer that creates files in "%ProgramFiles%\InstallShield Installation Information\(8F5A0981-5CDC-41D0-BCA2-AD3B777FC358)\" so I love creating knowledge in INF installer?you mean you want to make an inf that installs fies to there or .. ?cause i don't understand Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted October 21, 2009 Share Posted October 21, 2009 yes I want to make a INF that installs the application (.exe) installshield...you understand French? otherwise I ask you in French by private message because my English is very bad .. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 22, 2009 Share Posted October 22, 2009 yes I want to make a INF that installs the application (.exe) installshield...you understand French? otherwise I ask you in French by private message because my English is very bad ..sorry i have been busy the couple of dayssorry i don't understand French well but ok can you tell me the name of the application so i can see what is the problem exactly Quote Link to comment Share on other sites More sharing options...
Geej Posted June 20, 2010 Share Posted June 20, 2010 Does inf shortcut allows shortcut syntax to launch application in Min,Max,Normal mode?If can, how to do it? Quote Link to comment Share on other sites More sharing options...
ricktendo Posted June 20, 2010 Author Share Posted June 20, 2010 Does inf shortcut allows shortcut syntax to launch application in Min,Max,Normal mode?If can, how to do it?I too am looking for how but have never found it...I wanted this when I made my Windows Search addon, because the startup shortcut was set to minimized or somethingIf you find out how please report back Quote Link to comment Share on other sites More sharing options...
Geej Posted July 8, 2010 Share Posted July 8, 2010 I too am looking for how but have never found it...I wanted this when I made my Windows Search addon, because the startup shortcut was set to minimized or somethingIf you find out how please report backI thought about this and think that Profileitems does not have the command to set it.So I thought using vbscript could do the job and after experimenting with it, it could do it only during T13.I hereby enclosed an sysoc.inf addon that run vbscript to create shortcut at begining of T13. (It runs silently)The vbscript creates 2 shortcut in Max mode. 1) Windows Movie Maker and 2) Program Files folder shortcut on desktopGeej_T13_VBSshortcut_addon.cabSize: 3.47 Kb (3,554 bytes)MD5: 04E6C90BCF9C1008969DC0E2AE813F3CCreateShortcuts.pdf for future referenceCreateShortcuts.zipSize: 38.93 Kb (39,864 bytes)MD5: 8C15321A2309F687A5EF9A3D7CFAF645Below screenshot is a test shown that at T13, actual vbs execution path is root drive. Also not all windows shortcut are ready. Only Windows Movie Maker etc.IE and WMP are not created by setup at T13. I have disabled the prompt message in the addon. inf code that self-delete after vbs execution.[Version]Signature=$Windows NT$[DefaultInstall]RegisterDLLs=Start.Register[Start.Register]11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %1%\vbs1test.inf,Install"[Install]RunPreSetupCommands=Create.EmptyDirectorysCopyFiles=vbs1.CopyAddReg =AddRegSectionRunPostSetupCommands =Del.i386[Create.EmptyDirectorys]CMD /Q/C MD """%1%\i386""" & COPY /D/Y """%1%\*.cab""" """%1%\i386"""[vbs1.Copy]CreateShortcuts.vbs[Install.Delvbs]DelFiles=vbs1.Copy,PNF.copyUpdateinis=Sysoc.EditSmartReboot=N ; Suppress reboot prompt at T13Cleanup=1[PNF.copy]vbs1test.PNF,,,1 ; this file can only be deleted after reboot (when setup completes and boots to user desktop)[Sysoc.Edit]%17%\sysoc.inf,Components,vbs1test=*[Del.i386]RUNDLL32 advpack.dll,DelNodeRunDLL32 %1%\i386,8[Optional Components]vbs1test[vbs1test]OptionDesc =vbs1testTip =%Tip0%Modes =0,1,2,3CopyFiles =vbs1.CopyAddReg =AddRegSection[SourceDisksNames.x86]1="Vbs shortcut Files","vbsShcut.cab",,"i386"[DestinationDirs]vbs1.Copy=10 ; copy .vbs files to C:\windowsPNF.copy=17[SourceDisksFiles]CreateShortcuts.vbs=1[AddRegSection]HKLM,"%VBSSC%","300",0x0,"%10%\CreateShortcuts.vbs"HKLM,"%VBSSC%","301",0x0,"rundll32.exe advpack.dll,LaunchINFSection vbs1test.inf,Install.Delvbs"[Strings]Tip0 = "Test vbScript via ROE at T13"VBSSC="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\VBSshortcut"vbs code is a bit long, so won't want to post the code here. See the addon for the actual detail. I hope it will be useful with this method. Quote Link to comment Share on other sites More sharing options...
phasma Posted September 24, 2010 Share Posted September 24, 2010 Does inf shortcut allows shortcut syntax to launch application in Min,Max,Normal mode?If can, how to do it?Has anyone found a way yet?Anyways, thank you Geej for the VBScript and if you or anyone is interested I implemented into a batchfilethat will search for your ShortCuts and output it to .vbs using your script as a template.This should eliminate (atleast for me) the use of alot of .inf and batchfiles.THX Quote Link to comment Share on other sites More sharing options...
ricktendo Posted September 25, 2010 Author Share Posted September 25, 2010 Nope, have not Quote Link to comment Share on other sites More sharing options...
Geej Posted July 16, 2011 Share Posted July 16, 2011 In profileitems, there is Hotkey=hotkey-value (ref)What is the exact syntax to set this value? (say I want it Ctrl+Alt+U)Where can I download "Windows SDK documentation" as mention in the above ref link?Anyone here knows? Quote Link to comment Share on other sites More sharing options...
ricktendo Posted July 16, 2011 Author Share Posted July 16, 2011 In profileitems, there is Hotkey=hotkey-value (ref)What is the exact syntax to set this value? (say I want it Ctrl+Alt+U)Where can I download "Windows SDK documentation" as mention in the above ref link?Anyone here knows?I think you can get this if you go to the properties of a LNK file and enter the keyboard shortcuts...then using the same values in the INF profileitemBTW I think the way you have it written (Ctrl+Alt+U) will work give it a try Quote Link to comment Share on other sites More sharing options...
Geej Posted July 17, 2011 Share Posted July 17, 2011 (edited) I think you can get this if you go to the properties of a LNK file and enter the keyboard shortcuts...then using the same values in the INF profileitemBTW I think the way you have it written (Ctrl+Alt+U) will work give it a tryHave tried before I ask here. Not working. Actually I asked because I encountered this challenge while making Pretty Run addon, which has "Ctrl + Alt + S" set as hotkey.Neverthless, I made some progress but still has no total solution to it.Hotkey syntax is hex-base keyboard code. (which I am unable to find any proper keyboard code thur googling)Here is a sample inf test if Pretty Run is installed.[Version]Signature=$Windows NT$[DefaultInstall]ProfileItems=Start.Shortcut1[Start.Shortcut1]Name =%ShortcutN1%SubDir =%ProfileSubdir%CmdLine =16422,Pretty Run,PrettyRun.exeWorkingDir=16422,Pretty Run;HotKey ="Ctrl + Alt + S" ;Desired hotkeyHotKey =0x200 ; Ctrl +;HotKey =0x14 ; got it as Caplock;HotKey =0x400 ; Alt +[Strings]ShortcutN1=PrettyRunProfileSubdir=Pretty RunAs you can see, hotkey is partially set only. Need to know how to do it exactly... If someone can throw some more light here, that will be great. Edited July 17, 2011 by Geej Quote Link to comment Share on other sites More sharing options...
ricktendo Posted July 17, 2011 Author Share Posted July 17, 2011 Heres something that could help if you know how to program http://www.experts-exchange.com/Programming/Languages/CPP/Q_21115259.htmlIm hope someone smart will see this and help Quote Link to comment Share on other sites More sharing options...
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.