cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
poul_eker
Level 2

[InstallDir] in registry

I want to register a key in the registry on the destination computer like this:

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\AddIns\SikkerMail]
"Description"="SikkerMail"
"FriendlyName"="SikkerMail"
"Loadbehavior"=dword:00000003
"Manifest"="C:\Program Files (x86)\Comendo Security\Sikkermail Outlook Addin\Sikkermail.vsto"

When I enter this through the IS registry pane for the destination computer, everything is fine , the manifest installs upon launching Outlook.

What I really want to do, is something like this:

"Manifest"="%InstallDir%Sikkermail.vsto".

but this just installs a key in the destination where the Manifest value is the same STRING as above, "%Installdir%" is not replaced by the full path
as expected and the mainfest does not install. How can I obtain this?

I've also tried to use [INSTALDIR] and the older version [TARGETDIR]. No result.
0 Kudos

(1) Reply
chiranjeevi
Level 7 Flexeran
Level 7 Flexeran

Hello,

Please, try avoid using(if any) "" marks while Writing Property Values to the Registry.

in your case, provide registry value data as [INSTALLDIR]Sikkermail.vsto for Manifest registry value and check if achieved required behavior.

Only for Windows Installer based projects, you can use Windows Installer properties in registry values to store information for later use by your product. At run time, Windows Installer automatically expands expressions of the form [PropertyName] in registry data to the value of the property called PropertyName. Any property defined in the Property Manager can be used in this way.

For example, if you would like to store the destination location of your software, create a registry value whose data is [INSTALLDIR]. At run time, when your installation creates the registry value, the data for that registry value is set to the location where your application is installed.

You can use the same format for registry key names and value names. For example, if you want a key name to be the name of your company, enter [Manufacturer] for the name of the key.

Regards,
Chiranjeevi
0 Kudos