I am following How to run a ".bat" file during installation?
to run a registry clean up of my Visual studio installer project. Some add-ins were loaded into Excel, and at uninstalltion I would like to remove them from the Add-in dialog by removing the registry.
The cmd command however cannot execute
REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options" /v "OPEN"
because it does not have administrator right
'reg' is not recognized as an internal or external command, operable program or batch file
How do we run a batch file from a VS installation project as administrator ?