[wix-users] RegAsm commands in batch file and running from wix As current user

rajesh keshri keshriraja at gmail.com
Mon Jun 12 06:42:14 PDT 2017


Hi All,

I am running a batch file after installing all files as part of msi, the
batch file has some arguments with it.

It is working for ALLUSERS installation in administrator command line, but
not working for CurrentUser when it is installed in normal command line.

How can we elevate the execution in normal command prompt to register the
dlls.


<Custom Action="InstallBatPerUser" After="InstallFiles">(NOT Installed) AND
(NOT ALLUSERS)</Custom>

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


Batch file conents:

regasm %path%AFO.SpreadsheetFormulas.dll" /codebase
regasm %path%AFO.DatastreamHelper.dll" /codebase
regasm %path%DFO.Excel12.COMHelperInterface.dll" /tlb:
%path%DFO.Excel12.COMHelperInterface.tlb" /codebase /silent



Thanks,
Rajesh


More information about the wix-users mailing list