/build/static/layout/Breadcrumb_cap_w.png
08/15/2019 200 views

Importing a .REG containing a reference to a property, e.g.

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]]
"StubPath"="MSIEXEC /FUP [ProductCode]" /QB!
"Version"="1,0,0,0"

results in a slightly mangled entry for the value:

MSIEXEC /FUP [\[]ProductCode[\]]" /QB!
0 Comments   [ + ] Show comments

Comments


All Answers

0
We believe this is the correct behavior. Escaping registry values in square brackets ( like [Value]​ > [\[]Value[\]]) ensures delivering the original registry values to the target system with the MSI package. During the MSI installation, the escaped value  [\[]Value[\]] will be installed to the system as [Value]​, that is fully corresponds to its original state. Not escaped values (like [Value]​) will be replaced with the property, if such property exists, otherwise with the empty string. In most cases, captured registry contains values in square brackets that do not correspond to standard MSI properties and escaping such values secures delivering original (unchanged) registry values to the target system.


If you want to integrate Active Setup to your MSI package during building, just tick one checkbox in MSI Generator settings and Active Setup will be added automatically. See section 4.8.6.8 'Add Active Setup' in https://pacesuite.com/release/5.3.0/PACE-Suite-5.3.0-Getting-started.pdf


If you want to import REG file with MSI properties and process them as properties without escaping square brackets, use Import registry wizard of MSI Editor for this. There you can control how to save such values. See section 4.7.6.4 'Import Registry' in https://pacesuite.com/release/5.3.0/PACE-Suite-5.3.0-Getting-started.pdf

Note that MSI Generator could not have such option because it is used for building not only MSI packages, but also MSIX, APPX, APPV, THINAPP.


Import registry wizard of MSI Editor:


P.S. It seems that your REG file has wrong format as /QB! parameter goes after the quotation mark. Correct REG file format is "Name"="Value".


Answered 08/21/2019 by: pace-support
2nd Degree Black Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share