Hi,
Windows cannot find 'C:\Program'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
You are encountering this behavior because in the command line of your custom action you are using a path (or a reference to a file) without enclosing it in quotation marks.
Please note that a path which contains blank spaces (like "C:\Program Files") cannot be recognized unless it is enclosed by quotes ("). Let me know if the problem persists after adding the quotation marks.
If I run this batch file from a command window using
InstallServices.bat %WINDIR%\assembly\gac_msi
Then the assemblies are correctly installed.
Please note that this can also be done in Advanced Installer. You can use a "Launch file or open URL" custom action (the only one which supports BAT files) scheduled after the "InstallFiles" standard action (you can see a standard action by using the "Show Standard Action" button on the toolbar in the "Custom Actions" page).
This custom action will have the "Command Line" field set to:
Code: Select all
[#InstallServices.bat] [WindowsFolder]assembly\gac_msi
Also, please make sure that the custom action is set as Immediate in order for it to have access to the [WindowsFolder] property.
Regards,
Cosmin