[wix-users] RegAsm commands running in Install.bat as Current User

rajesh keshri keshriraja at gmail.com
Wed Feb 15 06:45:13 PST 2017


Hi,

I am trying create a wix installer that is UI based and has option of
peruser and permachince installation. When i tried to run installer in
Admin console, it is running perfectly and registering the dll using
RegAsm(commands in install.bat) when i run wixcustom action to run the
install.bat.
.

*But same thing i am trying as current user and it not registering*. It is
giving below error.

RegAsm : error RA0000 : An error occurred while writing the registration
informa
tion to the registry. Administrator permissions are needed to use the
selected o
ptions. Use an administrator command prompt to complete these tasks.

I have used below custom action:

 <CustomAction Id="InstallBatPerUser"
ExeCommand="[Datastream_DFO_Addin_1]Install.bat
"[Datastream_DFO_Addin_1]\*" "[$(var.Product_Version)]"
"[INSTALLCASPOLMODEPERUSER]" "[OFFICEVERSION]"
"[OSARCHITECTURE]"" Directory="Datastream_DFO_Addin_1"
Execute="deferred" Return="asyncNoWait" Impersonate="yes"/>

    <CustomAction Id="InstallBatPerMachine"
ExeCommand="[Datastream_DFO_Addin_1]Install.bat
"[Datastream_DFO_Addin_1]\*" "[$(var.Product_Version)]"
"[INSTALLCASPOLMODEPERMACHINE]" "[OFFICEVERSION]"
"[OSARCHITECTURE]"" Directory="Datastream_DFO_Addin_1"
Execute="deferred" Return="asyncNoWait" Impersonate="yes"/>

Can we run the RegAsm without admin rights?



Thanks,
Rajesh


More information about the wix-users mailing list