Ken@fri Posted April 22, 2010 Share Posted April 22, 2010 (edited) Hi everybody!////////////////////////////// REQUEST #1 /////////////////////////////////////////I'm workin' on Nero 8.3.20.0 Lite/Micro true addon (english/french). One thing missing : i plan to check reg entries about nero previous versions(v7/v8).If ONE of these reg entries is found, a message will prompt user : "A previous version of Nero has been founded on your system. Please uninstall it before continuing.". This will abort addon installation.I'm tryin' to use CustomDestination directive to check Windows registry. But i'm little bit confused about its using.[install.Nero8Lite]11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %01%\Nero8L.inf,Install"[install]BeginPrompt = ...CustomDestination = Nero.PreviousVersions.DetectedRunPreSetupCommands = Create.i386:1,MSVC++2005.Check:1,Nero8PreInstall.Check:1[Nero.PreviousVersions.Detected]49000=Nero7Lite.Check,22[Nero7Lite.Check]"HKLM","SOFTWARE\Nero\Installation\Families\Nero 7","","%Nero7Lite_FOUNDED%.",""[strings]Nero7Lite_FOUNDED="A previous version of Nero has been founded on your system. Please uninstall it before continuing"Durant my tests, this above prompt message is shown, even there's no regentries for NERO.////////////////////////////// REQUEST #2 /////////////////////////////////////////I'm also workin' on an addon for Nero 9.4.26.0b. And i'm lookink for how to check if .NET Framework 3.0 (Registry check) is installed or not.PLEASE YOUR HELP, LINKS & ADVICES WILL VERY APPRECIATED. THANX Edited April 22, 2010 by Ken@fri Quote Link to comment Share on other sites More sharing options...
ricktendo Posted April 22, 2010 Share Posted April 22, 2010 This only works the other way around...if the program/reg-entry is NOT installed it will fail, only if it finds the registry entry will it installYes your second request is what this is used for, to check for a registry entry...if it finds .net 3.0 reg entry you specify ONLY then will it proceed Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted April 22, 2010 Share Posted April 22, 2010 He commend is possible to do the same with the process?If the process is mon_processus.exe then kill it and if it does not exist, ignores the command taskkill Quote Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 something likeRunpresetupcommands =Close.IDM:1[Close.IDM]"CMD /Q /C taskkill /f /t /im ""idman.exe""" Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted April 23, 2010 Share Posted April 23, 2010 Thanks Dark.It's correctly :[install]CustomDestination=RessourceHacker.Detected[RessourceHacker.Detected]49000=RessourceHacker.Check,1[RessourceHacker.Check]"HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111194}","","% %.","" RessourceHacker_FOUNDED[strings]RessourceHacker_FOUNDED = "Une version Ressource Hacker a Quote Link to comment Share on other sites More sharing options...
Guest Posted April 23, 2010 Share Posted April 23, 2010 Thanks Dark.It's correctly :[install]CustomDestination=RessourceHacker.Detected[RessourceHacker.Detected]49000=RessourceHacker.Check,1[RessourceHacker.Check]"HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111194}","","% %.","" RessourceHacker_FOUNDED[strings]RessourceHacker_FOUNDED = "Une version Ressource Hacker a Quote Link to comment Share on other sites More sharing options...
Ken@fri Posted April 23, 2010 Author Share Posted April 23, 2010 (edited) :welcome: :welcome: :welcome: @ ricktendo64, Alpha_95, DaRk MaDnEsSThanx 4 ur replies & contributions :thumbsup_anim: .I finally choose to use RunPreSetupCommands to solve my problem.Bye ! Edited April 23, 2010 by Ken@fri Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted April 23, 2010 Share Posted April 23, 2010 Ken@fri, si tu es meilleur que moi pour traduire, voici le texte en fran Quote Link to comment Share on other sites More sharing options...
Ken@fri Posted April 23, 2010 Author Share Posted April 23, 2010 HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111110}HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111111}HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111112}HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111113}HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111114}HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111115}HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111116}HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111117}Hello Alpha_95 !Dans le mod Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted April 23, 2010 Share Posted April 23, 2010 (edited) ah..... oups.....pourtant sur le net, on trouve que cela ajoute l'icône au panneau de configuration xDTu utilise quel clé alors toi ?Merci pour ton information !Edit: je suis confus ^^ les clés de registre pour le panel sont :HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\D14ED2E1-C75B-443c-BD7C-111111111294"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\D14ED2E1-C75B-443c-BD7C-111111111294",,,"Add My Prog to The Control Panel"Peut t'on les vérifier ? si elle existe peut t'on faire une modification avant de procéder à l'installation ? Edited April 24, 2010 by Alpha_95 Quote Link to comment Share on other sites More sharing options...
Ken@fri Posted April 26, 2010 Author Share Posted April 26, 2010 (edited) Salut Alpha_95 :welcome: !Les entrées de ton soft pour affichage dans le Panneau de configuration peuvent être SIMPLEMENT supprimées AVANT L'INSTALL (avant réécriture éventuelle) :[DefaultInstall]RegisterDlls = Install.TON_APPLI[install.TON_APPLI]11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %01%\TON_FICHIER_INF.inf,Install"[install]BeginPrompt = BeginInsPromptRunPreSetupCommands = Create.i386:1,PreInstall.Check:1CopyFiles = @TON_FICHIER_INF.inf,...AddReg = CPL.Entries.AddRegRunPostSetupCommands = Delete.i386[PreInstall.Check]DelReg = CPL.Entries.DelReg[CPL.Entries.DelReg]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\D14ED2E1-C75B-443c-BD7C-111111111294"[CPL.Entries.AddReg]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\D14ED2E1-C75B-443c-BD7C-111111111294"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\D14ED2E1-C75B-443c-BD7C-111111111294",,,"Add My Prog to The Control Panel"Voici, par exemple, comment j'ajoute/supprime une icône pour Nero ControlCenter dans le Panneau de config (le GUID a été généré à l'aide du soft M$ cité + bas) :[NeroControlCenter.CPL]HKCR,"CLSID\{28E478E3-EC15-4531-9BF2-64603C35AE7A}"HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{28E478E3-EC15-4531-9BF2-64603C35AE7A}"HKCR,"CLSID\{28E478E3-EC15-4531-9BF2-64603C35AE7A}",,,"Nero ControlCenter"HKCR,"CLSID\{28E478E3-EC15-4531-9BF2-64603C35AE7A}","InfoTip",,"Maintenez Nero à jour !"HKCR,"CLSID\{28E478E3-EC15-4531-9BF2-64603C35AE7A}\DefaultIcon",,,"%16427%\%Nero_Web%\SetupX.exe"HKCR,"CLSID\{28E478E3-EC15-4531-9BF2-64603C35AE7A}\Shell\Open\command",,,"""%16427%\%Nero_Web%\SetupX.exe"" MODE=""update"""HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{28E478E3-EC15-4531-9BF2-64603C35AE7A}",,,"Ajoute Nero ControlCenter au Panneau de configuration."Si t'as d'autres questions ou souhaites approfondir, RDV sur le sous-forum FR de wincert. Créés-y un nouveau topic et fournis moi le lien par MP, ou on se retrouve sur le site de Moebius ?//////////////////////////////////////////////////////////////////////////////////////////////////////////I use Microsoft Exchange Server GUID Generator (GUIDGen) to generate GUID's.If u've more questions, please let's continue this discussion in french on Wincert's French sub-forum or on Moebius' site. OK? Thanx :thumbsup_anim: . Edited April 26, 2010 by Ken@fri Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted May 7, 2010 Share Posted May 7, 2010 (edited) something likeRunpresetupcommands =Close.IDM:1[Close.IDM]"CMD /Q /C taskkill /f /t /im ""idman.exe"""Hello,I wanted to do the same to check if the program is installed then it will uninstall it and then proceed to normal installation :[Version]Signature = $ Windows NT $[Optional Components]My_Prog[My_Prog]OptionDesc = "My_Prog"Tip = "My_Prog"Modes = 0,1,2,3AddReg = Tweaks.DelReg,My_Prog.AddReg,RemoveCopyFiles = My_Prog.copy,My_Prog1.Copy,My_Prog2.CopyProfileItems = My_Prog.ShortCut, My_Prog.QLShortCut,My_Prog.SendTo.ShortCut[DefaultInstall]RegisterDLLs = Install.My_Prog[Install.Mon_Prog]11,, rundll32.exe,, 210, "advpack.dll, LaunchINFSection%01%\My_Prog.inf,Install"[Install]BeginPrompt = BeginInsPrompt; SoftInstall.Check: 1>> checked if the software are already installed mode silencieu; Create.Soft: 1>> Creation of empty directoriesRunpresetupcommands=Create.i386:1, SoftInstall.Check:1;Create.Soft:1AddReg = Tweaks.DelReg,My_Prog.AddReg,Remove; Added tweak for the reorganization of the start menuDelReg = Tweaks.DelRegCopyFiles = @My_Prog.inf,My_Prog.copy,My_Prog1.Copy,My_Prog2.CopyProfileItems = My_Prog.ShortCut, My_Prog.QLShortCut,My_Prog.SendTo.ShortCutRunPostSetupCommands = Delete.i386EndPrompt = EndInsPrompt; Creation of empty directories[Create.Soft]"CMD /Q /C MD ""%16422%\My_Prog\downloads" """CMD /Q /C MD ""%16422%\My_Prog\downloads\archive" """CMD /Q /C MD ""%16422%\My_Prog\screenshots" ""CMD /Q /C MD ""%16422%\My_Prog\videos[BeginInsPrompt]Title = "%% TitlePrmpt"Prompt = "%% BegPrmpt"ButtonType = YESNO[EndInsPrompt]Prompt = "%% EndPrmpt"[Create.i386]"CMD /Q /C MD" "%1%\i386" COPY & /D /Y ""%1% \ *.cab "" ""%1%\ i386 "COPY & /D / Y ""%1%\*.inf"" ""%1%\i386 """[Delete.i386]RUNDLL32 advpack.dll, DelNodeRunDLL32 %1%\i386, 8[SoftInstall.Check]"CMD /Q /C IF EXIST "%16422%\My_Prog\uninst.exe"" "RUNDLL32 advpack.dll, LaunchINFSection %1%\My_Prog.inf,Remove.Soft.1rst""[Remove.Soft.1rst]; You kill the process to launch the uninstallation program"CMD /Q /C taskkill /F /T /IM" My_Prog.exe"""; It executes the uninstall file mode silencieu (NullSoft installer)"CMD /Q /C" "% 16422%\My_Prog\uninst.exe" / S """; It removes the directory after the uninstall"DEL /F /Q ""%16422%\My_Prog"""[/ code]So the i386 are well established, the process is killed but removing the program does not work ...Yet in the command line:uninst.exe / S works very well ...I tested :[code]CMD /Q /C """%16422%\My_Prog\uninst.exe"" /S"or:CMD /Q /C %16422%\My_Prog\uninst.exe /Sor:CMD /Q /C %16422%\My_Prog\uninst.exe /S%10%\nircmd /cmdwait 120000nircmd >> C:\WindowsIt copies files, it ignores the syntax check or syntax is incorrect to uninstall ...Cordially Edited May 7, 2010 by Alpha_95 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2010 Share Posted May 7, 2010 not sure but what about testing with the cmdsomething like ""%16422%\My_Prog\uninst.exe" /S" Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted May 7, 2010 Share Posted May 7, 2010 doesn't work Quote Link to comment Share on other sites More sharing options...
Ken@fri Posted May 8, 2010 Author Share Posted May 8, 2010 Try this:"""%16422%\Mon_Prog\uninst.exe"" /S" Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted May 8, 2010 Share Posted May 8, 2010 """%16422%\Mon_Prog\uninst.exe"" /S""CMD /Q /C ""%16422%\Mon_Prog\uninst.exe /S""""CMD /Q /C ""%16422%\Mon_Prog\uninst.exe"" /S""CMD /Q /C "%16422%\Mon_Prog\uninst.exe /S""Doesn't Work... Quote Link to comment Share on other sites More sharing options...
Alpha_95 Posted May 10, 2010 Share Posted May 10, 2010 Solved Thanks Ken@fri 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.