wix - At what step of MSI (InstallExecuteSequence) UAC is prompted? -


when execute msi uac on uac not prompted time. trying read registry entry in custom action before "costfinalize". registry read function consider default value if registry entry not found. in case registry entry there fails read because key doesn't have read permission "user". although admin have full permission.

registry read seems happening before uac prompt. how can make sure uac prompted @ start registry read can successful.

issue explanation

we have old installer written in wix. writing registry entry install location this

hklm\software\companyname\product\install\compinstalldir = [installdir]\product\component.

this registry entry have permission admin user doesnt have read permission dont know why (i didnt write code). there other entries under hklm\software\companyname\product\install

now have make changes in installer code upgrade. in have read install location i.e., [installdir]product\component , trim [installdir]. have existing custom action (from previous installer code only) reads registry , sets property installdir, other properties , backup of config files. custom action under "installexecutesequence" per understanding should prompt uac if required. custom action called before "costfinalize".

the thing should have been there in old installer writing registry entry containing [installdir] wasn't in place. due custom action in place not way of doing, being legacy code have maintain :(

hope able explain problem :)

in this thread explain how uac prompts triggered.. basically, need bootstrapper, , in manifest set execution level accordingly.

regarding custom action read registry. why don't use built in support windows installer make registry search, using appsearch , reglocator tables? general rule, not recommended reinvent wheel. default value search can specified defining property (name of search) in property table.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -