/build/static/layout/Breadcrumb_cap_w.png

Adobe Reader X - Bat file /INSTALLDIR

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

Answers (4)

Posted by: anonymous_9363 13 years ago
Red Belt
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.
Posted by: marge_simpson 13 years ago
Orange Belt
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
Posted by: anonymous_9363 13 years ago
Red Belt
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.
Posted by: marge_simpson 13 years ago
Orange Belt
0
Cheers for the link
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ