I'm trying to see what I can do natively in AI without having to create my own custom action dll...
What I have to deal with...
I have some application extensions to install.
The application always installs a particular service.
The application version can be determined from the version number of the service executable.
There are different sets of files for different versions of the application.
The extension files should be installed to the same folder as the service executable.
The extension files are .NET and some need to be registered with installutil.
The same extension files are to be installed for both 32bit and 64bit computers. (Were compiled as "Any CPU")
The correct bitness installutil (\Windows\Microsoft.NET\Framework\ or \Windows\Microsoft.NET\Framework64\) needs to be used
What I have working so far...
Query registry for full path to service executable (Registry Search)
Query the state of the service (DetectService custom action)
My questions...
Given a full file path (C:\Program Files\OtherCompany\OtherProduct\TheService.exe), how can I extract the path and use it as a target folder?
Given a full file path, how can I extract the version number of the file and use PARTS of it in a condition (only major.minor for instance)
How can I cause the install to halt if the service isn't installed? (Service state = Not Found)
How can I cause the install to pause and wait (or just halt) for the service to be stopped? (The installer should NOT stop the service)
I know I can create a custom action DLL, but I'd like to see what can be accomplished without that.
FOLLOW US
Get the latest news in Application Packaging