I am failing to register dll for interop using advanced installer. I followed thread from this forum ie.:
1. Created File Search: http://screencast.com/t/OVG99ncYSxz
2. Created Custom Action: http://screencast.com/t/WDezwHDrnxr
*tried both: checked "run as administrator" and unchecked
*I also tried "Launch file from property" custom action without brackets as described in documentation and it failed same as this one.
3. It fails with this dialog: http://screencast.com/t/IIsOop6jOZ
At the time Error dialog is displayed (while files are still in APP_DIR) manually executing command works: http://screencast.com/t/zWMVTicRsX (I copied codebase param from log file to avoid typo)
4. And with this error in log:
Code: Select all
CustomAction LaunchFile_1 returned actual error code -1 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (48:EC) [13:17:58:923]: Note: 1: 1722 2: LaunchFile_1 3: C:\Windows\Installer\MSI2D82.tmp 4: /RunAsAdmin "" /codebase "C:\Program Files (x86)\CompanyNameHere\ProductNameHere\QlmLicenseLib.dll"
MSI (s) (48:EC) [13:18:01:640]: Product: ProductNameHere -- 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 LaunchFile_1, location: C:\Windows\Installer\MSI2D82.tmp, command: /RunAsAdmin "" /codebase "C:\Program Files (x86)\CompanyNameHere\ProductNameHere\QlmLicenseLib.dll" Aside from this is it possible to use Enviroment variables in SEARCH for file? Like this: %SystemDrive%\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe
We already have users that do not have system on C drive.
FOLLOW US
Get the latest news in Application Packaging