ricktendo Posted November 19, 2009 Author Posted November 19, 2009 Check the equal sign, maybe it has a space or something in between (but I dont think this matters to UpdateInis)%17%\sysoc.inf,Components,EZSystems = * Quote
Geej Posted November 19, 2009 Posted November 19, 2009 Thanks Rick. Thanks DM. Just retest all possible syntax in VM after I re-arrange sysoc.inf entry first and then I test all the uninstall.%17%\sysoc.inf,Components,Rota=*,%17%\sysoc.inf,Components,Rota=*%17%\sysoc.inf,Components,EZSystems=*all tested ok. %17%\sysoc.inf,Components,EZSystems = *doesn't work. Entry not removed. Same kind of Error message if click 'Add/rem Windows Components'.Thanks for all the help. :thumbsup_anim: Quote
Guest Posted October 10, 2011 Posted October 10, 2011 (edited) and how to remove registry like this,with define new delete.AddDelReg in a uninstal sectionexample:[install section]AddReg =REGEntries.AddReg[uninstal section]AddReg =REGEntries.AddReg,delete.AddDelRegWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]"{AC67E92C-D916-4058-A7B8-0913746592F4}"="HiddenFilesToggle Extension"also how to delete thisWindows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithProgids]"SumatraPDF"=hex(0):when convert to inf and use delete every thingHKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"but i want just delete this value {AC67E92C-D916-4058-A7B8-0913746592F4} Edited October 10, 2011 by mona Quote
ricktendo Posted October 11, 2011 Author Posted October 11, 2011 In your uninstall section you have to change AddReg to DelRegAn to delete onl that guid you can try one of the Append or DelVal numbersREG_SZ = 0x00000000 (or 0)REG_BINARY = 0x00000001 (or 1)Reg_SZ_NOCLOBBER = 0x00000002 (or 2)REG_BINARY_NOCLOBBER = 0x00000003 (or 3)REG_MULTI_SZ_APPEND = 0x0001000AREG_MULTI_SZ = 0x00010000REG_DWORD = 0x00010001REG_MULTI_SZ_NOCLOBBER = 0x00010002REG_DWORD_NOCLOBBER = 0x00010003REG_MULTI_SZ_DELVAL = 0x00010006REG_ADDREG_APPEND = 0x00010008REG_EXPAND_SZ = 0x00020000REG_EXPAND_SZ_NOCLOBBER = 0x00020002 Quote
Geej Posted October 11, 2011 Posted October 11, 2011 Mona, I would use something like this for the uninstall[Version]Signature=$Windows NT$[Optional Components]MyRegTweaks[DefaultInstall]DelReg =REGEntries.DelReg[MyRegTweaks]OptionDesc =Registry EntriesTip =Registry Entries removalModes =0,1,2,3DelReg =REGEntries.DelReg[REGEntries.DelReg]HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved,{AC67E92C-D916-4058-A7B8-0913746592F4}HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithProgids,SumatraPDF Quote
Guest Posted October 11, 2011 Posted October 11, 2011 @Rickhow can use there value?seems to hard,if add some example its good,and add it to frist post@Geejthanks working,but see this correct or no.some time work some time not worki install this registry then via inf try to delete it.first time not working but second time workingWindows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\.pdf]@="SumatraPDF"for delreg,this correct or no?HKCR,.pdf,,,SumatraPDF Quote
Geej Posted October 12, 2011 Posted October 12, 2011 (edited) for delreg,this correct or no?HKCR,.pdf,,,SumatraPDFCorrect.Can also written asHKCR,.pdf,,0x0,SumatraPDF as they are basically the same thing.Usually, just export the .reg key, then convert it to inf using reg2inf. This will ensure the syntax stay correct before you tried to cut down some syntax for uninstalling purpose. Usually I don't manual code the reg inf syntax. I just use the conversion tool to do it for me. Edited October 12, 2011 by Geej mona 1 Quote
mooms Posted October 18, 2011 Posted October 18, 2011 Hi, inf experts!I have made an attempt to add uninstall to my QTAdressBar addon, but it fails at deleting files and folders, maybe because they are in use when uninstalling.Original post and addon is here:Can you take a look ?Thanks !! Quote
ricktendo Posted October 18, 2011 Author Posted October 18, 2011 Maybe if you kill explorer.exe it will work or set the files to delete on next boot Quote
mooms Posted October 19, 2011 Posted October 19, 2011 (edited) thanks rick, uninstall works with killing explorer, but i still have some bugs, see other thread.or set the files to delete on next bootHow to do that ? Edited October 19, 2011 by mooms Quote
mooms Posted October 19, 2011 Posted October 19, 2011 RunOnce or use ,,,1 flagDo you have an example ? Quote
ricktendo Posted October 19, 2011 Author Posted October 19, 2011 In the Delete/CopyFiles section you put the filename followed by ,,,1 this will tell windows to delete the file on reboot if it is in use[Copy.Delete.Files]Filename.Ext,,,1CopyFiles[CopyFiles-section-name]destination-file1-name(, source-file1-name)(, temporary-file1-name)(,flag)destination-file2-name(, source-file2-name)(, temporary-file2-name)(,flag)A list of the names of files to be copied from a source disk to a destination directory. The source diskand destination directory associated with each file are specified in other sections of the INF file. Thefile-list-section name must appear in the CopyFiles item of an Install section.Note that you can specify the copying of a single file in the CopyFiles item of the Install section itself,without building a CopyFiles section. To do this, use the special character "@" to force a single filecopy. An example of using the "@" character in a CopyFiles-type item is in the Install section referencetopic. Copying a single file in this way is somewhat limited because the source and destination filenamesmust be the same in this case and you cannot use a temporary file.destination-file-nameName of the destination file. If no source filename is given, this is also the name of the source file.source-file-nameName of the source file. If the source and destination filenames for the file copy operation are the same,this is not required.temporary-file-nameName of a temporary file for the file copy operation. The installer copies the source file but gives it thetemporary file name. The next time the operating system starts, it renames the temporary file to thedestination file name. This is useful for copying files to a destination which is currently open or in useby Windows.If the file is not in use by Windows, use flag 8 to force it to use the temporary name. This will onlywork if the file already exists in in the target folder. To get around this, first copy the file into the folder,then use flag 8 to copy it again.flagOptional parameter used to perform special actions during the installation process. Multiple flags can beused by adding the values to create the combined flag. The following valid flags can be used:Value Meaning1 On CopyFiles: Warn if user tries to skip file.1 On DelFiles: If file is in use, queue up delayed delete in wininit.ini. Otherwise an in-use filewill not be deleted.2 Setup Critical: don't allow user to skip file.4 Ignore version check and always copy file. This will overwrite a newer file.8 Force Rename (trick engine into thinking that file is in use). Note: Only happens if filealready exists on target.16 If file already exists on target, don't copy.32 Suppress version conflict dialog and don't overwrite newer files.This example copies three files:[CopyTheseFilesSec]file11 ; copies file11file22,, file23,8 ; copies file22, temporarily naming it file23file31, file32 ; copies file32 to file31 Quote
mooms Posted October 20, 2011 Posted October 20, 2011 (edited) thanks for the tipI also use these commands to delete folders[Cleanfolder]"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16420%\Assembly\GAC_MSIL\QTAddressBar""",8"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16420%\Assembly\GAC_MSIL\Interop.SHDocVw""",8"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16420%\Assembly\QTAddr3_v2.0.50727_32""",8Do you know how to execute those on next reboot ? Edited October 20, 2011 by mooms Quote
ricktendo Posted October 20, 2011 Author Posted October 20, 2011 Add a RunOnce/Ex to LaunchINFSection (new/separate INF section)[Post.Uninstall]DelFilesEtcBTW it should go like this[Cleanfolder]"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16420%\Assembly\GAC_MSIL\QTAddressBar"",8""rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16420%\Assembly\GAC_MSIL\Interop.SHDocVw"",8""rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16420%\Assembly\QTAddr3_v2.0.50727_32"",8" Quote
mooms Posted October 20, 2011 Posted October 20, 2011 Thank you, it works great !I will post the addon in his thread, feel free to check it ! (you are credited btw) Quote
Guest Posted November 8, 2011 Posted November 8, 2011 (edited) hii want run Uninstall.vbs with in inf file.how cam i do it?i try with RunPostSetupCommands but dont know why not work%16422%\Utility\someFolder\Uninstall.vbsalso any way Available to auto igonre installed file via inf?that mean just install none installed file and updated file and auto igonre installed file with same version Edited November 8, 2011 by mona Quote
ricktendo Posted November 8, 2011 Author Posted November 8, 2011 [RunPre/PostSetupCommand]cscript //B %16422%\Utility\someFolder\Uninstall.vbsFor the ignore thing try the copyfiles flag sum of 16+32=4816 If file already exists on target, don't copy.32 Suppress version conflict dialog and don't overwrite newer files.[CopyFiles]Filename.ext,,,48 Quote
Guest Posted November 8, 2011 Posted November 8, 2011 hi ricki try this but dont work[RunPre/PostSetupCommand]cscript //B %16422%\Utility\someFolder\Uninstall.vbs Quote
ricktendo Posted November 8, 2011 Author Posted November 8, 2011 You have to call the uninstall section with advpack.dll,LaunchINFSection, post your INF lets have a look what you are doing Quote
Guest Posted November 8, 2011 Posted November 8, 2011 (edited) [Version]Signature=$Windows NT$[Defaultinstall]CopyFiles = securAddreg = secur.addregProfileItems = secure,secure1[Optional Components]notepad[Notepad]OptionDesc = "T-Clock xp"Tip = "T-Clock"Modes = 0,1,2,3CopyFiles = securAddreg = secur.addregProfileItems = secure,secure1[SourceDisksNames.x86]1="Notepad2 Install Files","ShowDe.cab",,"i386"[DestinationDirs]secur = 16422,"Utility\SecureFolder"[SourceDisksFiles]secu1.txt =1secu2.txt =1secu3.txt =1secu4.txt =1secu5.txt =1secu6.txt =1secu7.txt =1secu8.url =1[secur]History.txt,secu1.txtlicense.rtf,secu2.txtReadMe.rtf,secu3.txtSecureFolder.exe,secu4.txtSettings.xml,secu5.txtUninstall.vbs,secu6.txtUpdate.exe,secu7.txtWebsite.url,secu8.url[secure]Name = Secure FolderCmdLine = 16422,"Utility\SecureFolder\SecureFolder.exe",SubDir = UtilityWorkingDir = 16422,Utility,SecureFolderInfoTip = "Lock/Unlock with Secure Folder"[secure1]Name = Secure Folder,0x00000008,9CmdLine = 16422,"Utility\SecureFolder",SecureFolder.exeSubDir = ToolsWorkingDir = 16422,Utility,SecureFolderInfoTip = "Lock/Unlock with Secure Folder"[secur.addreg]HKLM,"%RemoveM%\SecureF","Comments",0,"Lock, Hide and Encrypt folders with password."HKLM,"%RemoveM%\SecureF","DisplayIcon",0,"%16422%\Utility\SecureFolder\SecureFolder.exe"HKLM,"%RemoveM%\SecureF","DisplayName",0,"Secure Folder V5.4.0.0"HKLM,"%RemoveM%\SecureF","DisplayVersion",0,"5.4.0.0"HKLM,"%RemoveM%\SecureF","NoModify",0x00010001,01,00,00,00HKLM,"%RemoveM%\SecureF","NoRepair",0x00010001,01,00,00,00HKLM,"%RemoveM%\SecureF","Publisher",0,"Subin Ninan ™"HKLM,"%RemoveM%\SecureF","ParentDisplayName",0,"UltraPacK Software V3.2.1"HKLM,"%RemoveM%\SecureF","ParentKeyName",0,"UltraPack Software"HKLM,"%RemoveM%\SecureF","UninstallString",0,"rundll32.exe advpack.dll,LaunchINFSection UltrMona.inf,secureuninstall"HKLM,"%RemoveM%\SecureF","URLInfoAbout",0,"http://sites.google.com/site/securefolders/"HKLM,"%RemoveM%\SecureF","HelpLink",0,"http://sites.google.com/site/securefolders/"HKLM,"%RemoveM%\SecureF","URLUpdateInfo",0,"http://www.wincert.net/forum/index.php"[Strings]UninsQuestsecure = "Do You Want Uninstall SecureFolder?"UninsFinalsecure = "SecureFolder was successfully uninstalled!"RemoveM ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"[secureuninstall]BeginPrompt = BeginUnInsPromptsecureEndPrompt = EndUnInsPromptsecureRunPreSetupCommands = Kill.sd:1DelReg = secur.addreg,0secur.addregProfileItems = SecureFol.DelShortcut,SecureFol.DelShortcut2,secyre.DelShortcut1,Tool.DelShortcut13RunPostSetupCommands = securdel:1[Kill.sd]TASKKILL /F /IM SecureFolder.exetskill SecureFolderTASKKILL /F /IM Update.exetskill Update[securdel]cscript //B %16422%\Utility\SecureFolder\Uninstall.vbs[0secur.addreg]HKLM,"%RemoveM%\SecureF"HKLM,"%ARPCache%\SecureF"[SecureFol.DelShortcut]Name = Secure Folder,0x00000002SubDir = Utility[SecureFol.DelShortcut2]Name = Secure Folder,0x00000003SubDir = Utility[secyre.DelShortcut1]Name = Secure Folder,0x0000000A,9SubDir = Tools[Tool.DelShortcut13]Name = Secure Folder,0x00000003SubDir = Tools[BeginUnInsPromptsecure]Prompt = %UninsQuestsecure%Title = %UninsTitle%ButtonType = OKCANC[EndUnInsPromptsecure]Prompt = %UninsFinalsecure%Also about below i try and reportFor the ignore thing try the copyfiles flag sum of 16+32=48 Edited November 8, 2011 by mona Quote
Guest Posted November 8, 2011 Posted November 8, 2011 (edited) for this addon i used renamed file so must use two (,,) or Three(,,,)SecureFolder.exe,secu4.txt,,,48 Edited November 8, 2011 by mona Quote
ricktendo Posted November 8, 2011 Author Posted November 8, 2011 Two commas after secu4.txt, because you also count the comma before secu4.txtTry these different RunPost commands[securdel]"cscript //B ""%16422%\Utility\SecureFolder\Uninstall.vbs""";or"cmd /c cscript //B ""%16422%\Utility\SecureFolder\Uninstall.vbs"""Also try RegisterDLLs[regdll]11,,cscript.exe,,,"//B ""%16422%\Utility\SecureFolder\Uninstall.vbs""";or11,,cmd.exe,,,"/c cscript //B ""%16422%\Utility\SecureFolder\Uninstall.vbs""" Quote
Guest Posted November 8, 2011 Posted November 8, 2011 (edited) i test Four way but not work.also i copy cscript.exe to this folder and drag&drop Uninstall.vbs on itbut not work.just open cmd in Utility\SecureFolder and type Uninstall.vbs and enter work.also about 16+32=48 i test and work,but i not sure,seems if file Extension has the number it copyied.file,au3,some-file.au3,,48also with 48 if the source file newer than destination it not copy new file to destination.so i searched and found this link so for do this must use 64 ,so 64+48=112 i try but dont work?SecureFolder.exe,secu4.txt,,112can you tellme how it work? Edited November 8, 2011 by mona Quote
ricktendo Posted November 8, 2011 Author Posted November 8, 2011 Try just 64, that sounds like what you want to accomplish[securdel]"%11%\cmd.exe /c cd ""%16422%\Utility\SecureFolder\"" & %11%\cscript.exe //B Uninstall.vbs" mona 1 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.