{"action":"created","issue":{"url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/12","repository_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions","labels_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/12/comments","events_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/12/events","html_url":"https://github.com/BTDF/CodePlexDiscussions/issues/12","id":277095006,"number":12,"title":"Discussion: \r\n                Running scripts before deployment\r\n            ","user":{"login":"tfabraham","id":10138276,"avatar_url":"https://avatars0.githubusercontent.com/u/10138276?v=4","gravatar_id":"","url":"https://api.github.com/users/tfabraham","html_url":"https://github.com/tfabraham","followers_url":"https://api.github.com/users/tfabraham/followers","following_url":"https://api.github.com/users/tfabraham/following{/other_user}","gists_url":"https://api.github.com/users/tfabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/tfabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfabraham/subscriptions","organizations_url":"https://api.github.com/users/tfabraham/orgs","repos_url":"https://api.github.com/users/tfabraham/repos","events_url":"https://api.github.com/users/tfabraham/events{/privacy}","received_events_url":"https://api.github.com/users/tfabraham/received_events","type":"User","site_admin":false},"labels":[{"id":762379456,"url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/labels/CodePlexMigrated","name":"CodePlexMigrated","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-27T17:05:19Z","updated_at":"2017-11-27T17:05:35Z","closed_at":null,"author_association":"OWNER","body":"<b>nfree25[1/6/2015 8:59:46 AM]</b>\nHi All,\r\n\r\nI have a scenario that requires me to run a script before my assemblies are gac-ed.\r\n\r\n\r\nHow should i go about doing this?\r\n\r\nI tried packaging the script with the msi and Execute command with:\r\nCustomDeployTarget\r\nCustomPreInitialize\r\nCustomRedist\r\n\r\n\r\n\r\nWhen i run the MSI, the biztalk deployment part cant find the .bat file (exited with code:3)\r\n```\n    <Exec Command=\"..\\Deployment\\ExternalDLL\\sn.bat\" ContinueOnError=\"True\" />\n    <Exec Command=\"$(RedistDir)\\ExternalDLL\\sn.bat\" ContinueOnError=\"True\" />\n```\r\nIs there a Propertiy name for current installed directory? or a better way of doing this?\r\n\r\n\r\nAlso, I have a project with maps and orchestration(schemas in another project), what ArtifactName should it have?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/comments/347250536","html_url":"https://github.com/BTDF/CodePlexDiscussions/issues/12#issuecomment-347250536","issue_url":"https://api.github.com/repos/BTDF/CodePlexDiscussions/issues/12","id":347250536,"user":{"login":"tfabraham","id":10138276,"avatar_url":"https://avatars0.githubusercontent.com/u/10138276?v=4","gravatar_id":"","url":"https://api.github.com/users/tfabraham","html_url":"https://github.com/tfabraham","followers_url":"https://api.github.com/users/tfabraham/followers","following_url":"https://api.github.com/users/tfabraham/following{/other_user}","gists_url":"https://api.github.com/users/tfabraham/gists{/gist_id}","starred_url":"https://api.github.com/users/tfabraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfabraham/subscriptions","organizations_url":"https://api.github.com/users/tfabraham/orgs","repos_url":"https://api.github.com/users/tfabraham/repos","events_url":"https://api.github.com/users/tfabraham/events{/privacy}","received_events_url":"https://api.github.com/users/tfabraham/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T17:05:34Z","updated_at":"2017-11-27T17:05:34Z","author_association":"OWNER","body":"<b>nfree25</b>\nHi Tom,\r\nThanks for the reply.\r\n\r\nFirst off, its awesome that you manage to keep this project going and documented alone(mostly?). :thumbs:\r\n\r\nAs you said, i am using copy to package the batch files into the MSI\r\n```\n<Target Name=\"CustomRedist\">\n    <Copy SourceFiles=\"..\\Deployment\\ExternalDLL\\sn_x32.exe\" DestinationFolder=\"$(RedistDir)\\ExternalAssemblies\" />\n    <Copy SourceFiles=\"..\\Deployment\\ExternalDLL\\sn_x64.exe\" DestinationFolder=\"$(RedistDir)\\ExternalAssemblies\" />\n    <Copy SourceFiles=\"..\\Deployment\\ExternalDLL\\sn.bat\" DestinationFolder=\"$(RedistDir)\\ExternalAssemblies\" />\n    <Copy SourceFiles=\"..\\bin\\Deployment\\sn_x32.exe\" DestinationFolder=\"$(RedistDir)\" />\n    <Copy SourceFiles=\"..\\bin\\Deployment\\sn_x64.exe\" DestinationFolder=\"$(RedistDir)\" />\n    <Copy SourceFiles=\"..\\bin\\Deployment\\sn.bat\" DestinationFolder=\"$(RedistDir)\" />\n  </Target>\n```\r\nTo run it I use Exec Command\r\n```\n  <Target Name=\"CustomDeployTarget\">\n    <Exec Command=\"\\ExternalAssemblies\\sn.bat\" ContinueOnError=\"True\" />\n    <Exec Command=\"\\sn.bat\" ContinueOnError=\"True\" />\n  </Target>\n```\r\nBut during the deployment stage im getting \r\n```\n\"D:\\Program Files (x86)\\BizTalk for BizTalk\\1.0\\Deployment\\Deployment.btdfproj\"\n (Deploy target) (1) ->\n(CustomDeployTarget target) ->\n  MSBUILD : warning MSB3073: The command \"\\ExternalAssemblies\\sn.bat\" exited with code 3.\n  MSBUILD : warning MSB3073: The command \"\\sn.bat\" exited with code 9009.\n```\r\nIm guessing code 3 is folder/file not found.\r\n9009 is command not found\r\n\r\nI also tried \r\n```\n<Exec Command=\"$(InstallDir)\\sn.bat\" ContinueOnError=\"True\" />\n<Exec Command=\"sn.bat\" ContinueOnError=\"True\" />\n```\r\nYou probably guessed what those scripts are for by now..\r\nI notice btdf is using x32 version of gacutil, but just to be safe...\r\n"}}
{"actor":{"display_login":"tfabraham"}}