Embed with InstallerLinker not executing

Dec 9, 2010 at 3:42 PM
Edited Dec 9, 2010 at 4:26 PM

Hello all

I'm using dotNetInstaller to deploy a single bootstrapper that contains some executables.

Now I need to embed an executable from command-line using the InstallerLinker.

The complete package seems to be complete with the new added file(using setup.exe /displayCab and /extractCab), but when I run it, the executable embedded with the InstallerLinker is not executing.

All the others executables, (added in the configuration file) are working good.

This is a fragment of my log file: "EXEC3.msi" is my dynamically added file and seems to be not executed...

Extracting embedded files for component '*': 1 CAB(s)
2010-12-09 15:59:00 Resolved CAB path 'C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}' for component '*'
2010-12-09 15:59:00 Extracting 'SETUP_1.CAB' for component '*'
2010-12-09 15:59:00 Extracting: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC1.exe
2010-12-09 15:59:00 Done: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC1.exe
2010-12-09 15:59:00 Extracting: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC2.msi
2010-12-09 15:59:14 Done: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC2.msi
2010-12-09 15:59:14 Extracting: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC3.msi
2010-12-09 15:59:16 Done: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC3.msi
2010-12-09 15:59:16 --- Component 'EXEC1.exe' (EXEC1.exe): EXECUTING
2010-12-09 15:59:16 Extracting embedded files for component 'EXEC1.exe': NO FILES EMBEDDED
2010-12-09 15:59:16 -- Executable: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC1.exe
2010-12-09 15:59:16 -- Additional command-line parameters: /SP-
2010-12-09 15:59:16 Executing: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC1.exe /SP-
2010-12-09 15:59:52 --- Component 'EXEC1.exe (EXEC1.exe): DIALOG CLOSED
2010-12-09 15:59:52 *** Component 'EXEC1.exe' (EXEC1.exe): SUCCESS
2010-12-09 15:59:55 --- Component 'EXEC2.msi' (EXEC2.msi): EXECUTING
2010-12-09 15:59:55 Extracting embedded files for component 'EXEC2.msi': NO FILES EMBEDDED
2010-12-09 15:59:55 -- Package: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC2.msi
2010-12-09 15:59:55 -- Additional command-line parameters: /qb-
2010-12-09 15:59:55 Executing: msiexec /i "C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}\EXEC2.msi" /qb-
2010-12-09 16:00:22 --- Component 'EXEC2.msi (EXEC2.msi): DIALOG CLOSED
2010-12-09 16:00:22 *** Component 'EXEC2.msi' (EXEC2.msi): SUCCESS
2010-12-09 16:00:22 Deleting temporary folder: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{010FC17C-EA3B-4D14-A0F0-7D5A172CDE37}
2010-12-09 16:00:22 dotNetInstaller finished, return code=0

Any ideas? Thanks

P.S: I'm using "/EmbedFolder" with "mypath\*.msi" to embed the file because if I use "/EmbedFile" I got this error

2010-12-09 17:19:07    Extracting: C:\DOCUME~1\ADMINI~1.000\IMPOST~1\Temp\1\{A088D209-38E9-4B62-ABB5-BB78ADE616B3}\C:\My_Path_To_External_Installer\EXEC3.msi
2010-12-09 17:19:07    *** Failed to install one or more components: Error extracting 'SETUP_1.CAB': Failure writing to target file
Error 123: The syntax of the file name, directory or volume is incorrect.

Coordinator
Dec 10, 2010 at 4:02 PM

I don't see anything about exec3 in your log. If you want to execute it, you need a component that executes it - embedding is unrelated to executing.

Generally, instead of using EmbedFolder, add embedded files in the configuration under the components. This will avoid the whole extraction and only extract what you need.

For the EmbedFile problem, can you please file a bug with the exact command line that you use, the configuration file and a log file? Thx.

Dec 10, 2010 at 4:42 PM
dblock wrote:

I don't see anything about exec3 in your log. If you want to execute it, you need a component that executes it - embedding is unrelated to executing.

Generally, instead of using EmbedFolder, add embedded files in the configuration under the components. This will avoid the whole extraction and only extract what you need.

Ok, thanks.  I'm going to use the standard way.

I've fixed the other problem by specifing the "/AppPath" in the command line.