- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Registering 64-bit native DLL failed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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);