We would like to have two different installer versions of an application.
1). An installer has several prerequisites based on "Download single file from URL" approach. The installer size is small and it can download prerequisite files during installation and install them before application.
2). The second installer will be executed in the environment when an installer can't download prerequisites. Probably, prerequisite files should be included as resource files and used in the Prerequisite section as "Use files from disk". In this case, installer size is much bigger, but doesn't require an internet connection.
Since the app installer project has a lot of settings, custom actions and will be changed frequently, it is reasonable to have only one installer project. I am wondering what would be the best practice to handle such scenario?
Probably, I could add a different build, set different properties for each build. Can I add a file to Resource conditionally? For example, Build B has a large prerequisite file, a prerequisite setting use this optional file. Build A doesn't have a large file, prerequisite installation is disabled and overall installer size is smaller. Is it possible?