Hello all

I am trying to prepare Adobe Reader X for deployment. I need to copy the registry data from HKEY_CURRENT_USER to HKEY_USERS\deuser, normally this is done via a bat file which is incorporated into the Adobe Reader MSI using AdminStudio.

However it appears that INSTALLDIR is needed for some of these entries, instead of writing the actual value of INSTALLDIR it just saves it to the registry it as shown below
For example...
reg.exe add "HKEY_USERS\deuser\SOFTWARE\Netscape\Netscape Navigator\Viewers" /v "application/vnd.adobe.xdp" /t REG_SZ /d "[INSTALLDIR]\\Reader\\Acrord32.exe" /f

This correctly creates the key named application/vnd.adobe.xdp but the value is [INSTALLDIR]\\Reader\\Acrord32.exe instead of the actual installation directory.

I appreciate that the bat file does not have INSTALLDIR defined, however I thought (probably naively!) that as the MSI invokes the bat file it would understand the INSTALLDIR variable.

I have also tried using <INSTALLDIR> as the value but the value is set to <INSTALLDIR>

Any help appreciated - thank you.

Marge
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
The method of passing data to a Custom Action depends on where in the sequence the CA appears. Since this is a CA which changes the system, it belongs in the deferred sequence. Thus, you need to use the special property CustomActionData. Rather than repeat them here, look up the details on MSDN.

Next, the .DefaultUser registry hive is only used to create a profile for new local users so, if you're hoping to propogate the settings to domain users newly logging in to the machine, you're going to be out of luck.

Next, avoid using REG to add registry data in an MSI. Use the Registry table! I understand what you're trying to do here, though.You need to use either self-healing (if the MSI has an advertised entry-points such as an advertised shortcut) or Active Setup.
Answered 02/01/2011 by: VBScab
Red Belt

Please log in to comment
0
Thanks for the response [:D]
It wasn't actually .default registry i wanted to update, it was a different hive (for domain users).

I actually ended up cheating with a simple workaround - as the bat file was being run from the INSTALLDIR, I added
Set CURRENTDIR=%CD%
then set the key value as
%CURRENTDIR%\Reader\Acrord32.exe

With regards to not using REG.exe to add registry data to the MSI, instead using AdminStudio I only see how to update the regular registry keys and not other hives - am I missing something?
I have had a look via the Direct Editor and cannot see how I would edit other hives
Answered 02/03/2011 by: marge_simpson
Orange Belt

Please log in to comment
0
I have had a look via the Direct Editor and cannot see how I would edit other hivesSee this MSDN article about the Registry table. Make sure you bookmark the main WI page on MSDN: it's one of the best resources.
Answered 02/03/2011 by: VBScab
Red Belt

Please log in to comment
0
Cheers for the link
Answered 02/04/2011 by: marge_simpson
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity