{"action":"created","issue":{"url":"https://api.github.com/repos/jrsoftware/issrc/issues/173","labels_url":"https://api.github.com/repos/jrsoftware/issrc/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/jrsoftware/issrc/issues/173/comments","events_url":"https://api.github.com/repos/jrsoftware/issrc/issues/173/events","html_url":"https://github.com/jrsoftware/issrc/issues/173","id":95572639,"number":173,"title":"[feature proposal] Inject custom include file similar to the way ISPPBuiltins.iss works","user":{"login":"extensia","id":10408732,"avatar_url":"https://avatars.githubusercontent.com/u/10408732?v=3","gravatar_id":"","url":"https://api.github.com/users/extensia","html_url":"https://github.com/extensia","followers_url":"https://api.github.com/users/extensia/followers","following_url":"https://api.github.com/users/extensia/following{/other_user}","gists_url":"https://api.github.com/users/extensia/gists{/gist_id}","starred_url":"https://api.github.com/users/extensia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/extensia/subscriptions","organizations_url":"https://api.github.com/users/extensia/orgs","repos_url":"https://api.github.com/users/extensia/repos","events_url":"https://api.github.com/users/extensia/events{/privacy}","received_events_url":"https://api.github.com/users/extensia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-17T02:47:28Z","updated_at":"2015-07-17T08:12:42Z","closed_at":null,"body":"It would be very useful to have a pre-processor option for injecting a user supplied include file into a script similar to the way ISPPBuiltins.iss is added by the pre-processor. The use-case is to support tighter integration between Inno Setup and external build tools which invoke Inno Setup as part of a larger build process. This would enable a build runner to generate an include file on the fly containing build parameter #defines and have Inno Setup include the file automatically without requiring the user to explicitly add a #include statement to the script.\r\n\r\nI believe the implementation of this feature would be straightforward, but wanted to solict feedback before working on a pull request to add this feature. Any feedback good or bad would be appreciated.\r\n\r\nI currently have a working plugin for the Gradle build tool that we are using for automated Delphi, C# and Java builds. I am considering open sourcing the plugin if there is sufficent community interest to justify the effort.\r\n\r\nRegards,\r\nDavid"},"comment":{"url":"https://api.github.com/repos/jrsoftware/issrc/issues/comments/122212256","html_url":"https://github.com/jrsoftware/issrc/issues/173#issuecomment-122212256","issue_url":"https://api.github.com/repos/jrsoftware/issrc/issues/173","id":122212256,"user":{"login":"DeeHants","id":1443298,"avatar_url":"https://avatars.githubusercontent.com/u/1443298?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeHants","html_url":"https://github.com/DeeHants","followers_url":"https://api.github.com/users/DeeHants/followers","following_url":"https://api.github.com/users/DeeHants/following{/other_user}","gists_url":"https://api.github.com/users/DeeHants/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeHants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeHants/subscriptions","organizations_url":"https://api.github.com/users/DeeHants/orgs","repos_url":"https://api.github.com/users/DeeHants/repos","events_url":"https://api.github.com/users/DeeHants/events{/privacy}","received_events_url":"https://api.github.com/users/DeeHants/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T08:12:42Z","updated_at":"2015-07-17T08:12:42Z","body":"The DLL method of building a setup (used by ISCC and the IDE internally I believe) requires callers to feed in the script line by line, allowing the caller to modify it on demand.\r\n\r\nAn alternative method in your case is to have your \"`#include`\" file `#define` everything required THEN `#include` the original script. Your build tool then needs to compile the generated file."}}