Jump to content

[REQUEST] How to using CustomDestination Directive ?


Ken@fri

Recommended Posts

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.Detected

RunPreSetupCommands = 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 by Ken@fri
Link to comment
Share on other sites

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 install

Yes 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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

:welcome: :welcome: :welcome:

@ ricktendo64, Alpha_95, DaRk MaDnEsS

Thanx 4 ur replies & contributions :thumbsup_anim: .

I finally choose to use RunPreSetupCommands to solve my problem.

Bye !

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

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

Link to comment
Share on other sites

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 = BeginInsPrompt

RunPreSetupCommands = Create.i386:1,PreInstall.Check:1

CopyFiles = @TON_FICHIER_INF.inf,...

AddReg = CPL.Entries.AddReg

RunPostSetupCommands = 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 by Ken@fri
Link to comment
Share on other sites

  • 2 weeks later...

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...