A) Attempted to use a vbscript:
Code: Select all
regasm64 = Session.Property("REGASM_40_PATH_X64")
regasm32 = Session.Property("REGASM_40_PATH_X86")
dllFile = Session.Property("ClientShellDllLocation")
bits = GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'").AddressWidth
'MsgBox (bits)
'MsgBox (regasm64)
'MsgBox (dllFile)
Set UAC = CreateObject("Shell.Application")
if bits = 64 then
UAC.ShellExecute regasm64, "/codebase " & dllFile, "", "runas", 0
else
UAC.ShellExecute regasm32, "/codebase " & dllFile, "", "runas", 0
end if
B) I attempt to use a custom action "Launch File or open URL"(for x86) and "Launch File or open URL using 64-bit launcher" (for x64) with the following:
Code: Select all
[REGASM_40_PATH_X64] /codebase "[#Client.Shell.dll]"
Code: Select all
MSI (s) (D0:30) [15:53:46:789]: Doing action: RegisterCOM_x64
Action 15:53:46: RegisterCOM_x64.
Action start 15:53:46: RegisterCOM_x64.
CustomAction RegisterCOM_x64 returned actual error code 100 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (D0:30) [15:53:46:867]: Note: 1: 1722 2: RegisterCOM_x64 3: C:\Windows\Installer\MSIE972.tmp 4: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe /codebase "C:\Users\testuser\AppData\Roaming\MyProduct\MyProduct Client 1.0.0.0\bin\Client.Shell.dll"
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action RegisterCOM_x64, location: C:\Windows\Installer\MSIE972.tmp, command: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe /codebase "C:\Users\testuser\AppData\Roaming\MyProduct\MyProduct Client 1.0.0.0\bin\Client.Shell.dll"
C) I then attempted to use COM+ registration on the dll but I get the following error:
Code: Select all
MSI (s) (D0:64) [16:40:56:360]: Doing action: RegisterComPlus
Action 16:40:56: RegisterComPlus. Registering COM+ Applications and Components
Action start 16:40:56: RegisterComPlus.
MSI (s) (D0:64) [16:40:56:360]: Note: 1: 1324 2: Client~1.dll|Client.Shell.dll 3: 1
Error 1324. The folder path 'Client~1.dll|Client.Shell.dll' contains an invalid character.
MSI (s) (D0:64) [16:40:57:667]: Product: MyProduct Client -- Error 1324. The folder path 'Client~1.dll|Client.Shell.dll' contains an invalid character.
Action ended 16:40:57: RegisterComPlus. Return value 3.