My VS2005 setup project installer needs to check a specific date before it can be installed. I tried th开发者_JAVA百科is programatically by overriding the OnBeforeInstall but the installation proceeds first before it gets checked. I also tried the Launch Condition on the setup project (e.g., %Date > somedate) but I cannot find a good example on this. Can someone help please?
Thanks!
This is not supported by Visual Studio. You need a setup authoring tool which allows you to add your custom action before LaunchConditions action in InstallUISequence table.
Even then, you would need a win32 DLL or VBScript custom action to tell the installer to stop. For example, you could set an installer property which is used as a launch condition. This cannot be done with an installer class action.
Try re-examining why you need to check the date and ask a more specific question. Perhaps there are other solutions.
精彩评论