I'm using Nant to make a MSI install package, but I have some problems when trying to execute an external executable that will install a windows service.
I've tried to use a to do the execution but I cannot get it to work. When the MSI is executed it says "Directory Manager not initialized."
This is the critical part of the script:
<customactions>
<!-- Sets the default installation directory -->
<customaction action="SetTargetDir" type="51" source="TARGETDIR" target="D:\" />
<customaction action="InstallService" type="34" source="D_WTI" target='"[D_WTI]\ServiceManager -f:[D_WTI]\WTIService.exe"' />
<customaction action="UnInstallService" type="34" source="D_WTI" target='"[D_WTI]\ServiceManager-u"' />
</customactions>
<sequences>
<sequence type="installexecute" action="SetTargetDir" value="120" />
<sequence type="installexecute" action="InstallService" value="130" />
<sequence type="installui" action="SetTargetDir" value="120" />
</sequences>
I read on MSDN where it says that its because some directory manager is not initialized? Well how can I initialize it? I searched everywhere trying to get this to work. Any suggestions?