cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
helenAtHoriba
Level 3

Registering 64-bit native DLL failed

I use InstallShield 2016  Professional edition. The project is InstallScript

Operating system: Windows 7 64-bit.

The COM-based DLL file is native 64-bit. I could not register as self-register, as few components are added at a later stage. So at the very end of installation I would like to run a batch file.  I use the code below to do the job without any success. The DLL failed to register as the command prompt is not running with elevated priviledges. If I execute the batch file manually "Run As Administrator", everything works as a charm.

What am I missing? If the DLL is 32-bit and the OS is 32-bit, there is no problem

 

szLaunchCmd = TARGETDIR ^ "regCOM_64.bat";


LAAW_SHELLEXECUTEVERB = "runas";
 retVal = LaunchApplication( szLaunchCmd, "", "", LAAW_STARTUPINFO.wShowWindow,
LAAW_PARAMETERS.nTimeOut, LAAW_OPTION_WAIT | LAAW_OPTION_FIXUP_PROGRAM  | LAAW_OPTION_USE_SHELLEXECUTE);

Labels (1)
0 Kudos
(17) Replies