Hello,
In which scenario it is suggested to use "exe with resources next to it" option
Usually, this option is used when the package size is over 4GB.
I have created an exe which also has prerequisites about 100-150 mb. If i create exe with resources inside, then all prerequisite files are inside the exe and the each next update is also of huge size of 150 mb. ideally I would only want my code to be part of the update and not prerequisite files?
In this case, you can add the prerequisites from an online location using the
[ New URL Prerequisite ] toolbar button from the
Prerequisites page.
So, the prerequisites will only be downloaded if they need to be installed, based on their
Install Conditions.
Please keep in mind that this type of prerequisite is created with default settings, so you need to configure it manually. The best way to see what install conditions you should use is to install the prerequisites on a clean machine and see what changes take place.
Usually the easiest way is to see changes that affect the registry hive, HKCU or HKLM. You can also see if certain files are installed on the machine, for example a specific DLL file or EXE and search for them in the Install
Conditions tab,
Searches group.
EDIT:
There is another solution.
Duplicate your build from the
Media page. This will create a new build with exactly the same settings and content. Content means: prerequisites, features, searches, launch conditions.
Then, you can chose to remove the feature from some builds. In the
Builds section from the
Feature properties you can specify the exact builds that will contain that feature.
Please take a look on the
Multiple Build Configurations article which will guide you in creating a project with multiple build configurations.
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging