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

Wheeler, Blaine (DSHS/DCS) BWheeler at dshs.wa.gov
Mon Jun 12 10:19:11 PDT 2017


Instead of a bat file I thnk you can use Heat to gather the info into a wxs.  Take a look at this StackOverflow answer https://stackoverflow.com/questions/364187/how-do-you-register-a-win32-com-dll-file-in-wix-3 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of rajesh keshri
Sent: Monday, June 12, 2017 6:42 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] RegAsm commands in batch file and running from wix As current user

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

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list