trockenasche Posted August 8, 2015 Report Share Posted August 8, 2015 (edited) I'm getting pretty much from every application the changelog with a variable.Also I run a C# code after updating an application: string downloadFolder = app.Variables.ReplaceAllInString("{download_folder}"); string appName = app.Variables.ReplaceAllInString("{appname}"); string version = app.Variables.ReplaceAllInString("{version}"); string changelog = app.Variables.ReplaceAllInString("{changelog}"); if (changelog == "{changelog}") { changelog = ""; } using (System.IO.StreamWriter w = System.IO.File.AppendText(downloadFolder + @"\changelogs.html")) { w.WriteLine("<hr size=10 noshade>"); w.WriteLine("<h1>{0} - {1}</h1>", appName, version); w.WriteLine(changelog); w.WriteLine("<br><br><br>"); } return; After updating my applications I'm getting a changelogs.html that look like: Adblock Plus - 2.6.9.1 * Slightly optimized performance, domain-specific filters will no longer affect overall performance.* Added extensions.adblockplus.suppress_first_run_page preference to allow administrators disable the first-run page if Adblock Plus is installed globally.* Fixed: $elemhide filter option doesn't consider website signatures correctly.Inkscape - 0.91Released on 2015-01-28. Cairo rendering for display and PNG export OpenMP multithreading for all filters C++ code conversion Major improvements in the Text tool Measure tool Type design features [1],[2] Symbol library and support for Visio stencils Cross platform WMF and EMF import and export Improved support for Corel DRAW documents, Visio importer Support for real world document and page size units, e.g. millimeters Numerous usability improvements Native Windows 64-bit build See Notable bug fixes There are now two ways to continue with this file: 1. Rename the file with the actual date and time as a command "after updating all applications"; move "{download_folder}\changelogs.html" "{download_folder}\changelog-{yyyy}-{MM}-{dd}T{HH}-{mm}.html" 2. sending the content from changelogs.html via e-mail to me therefore I made a powershell script: $smtpServer = "email.server.com" $file = "C:\YOUR\DOWNLOAD\FOLDER\changelogs.html" $body = "$(cat $file)" $from ="Ketarin <ketrain@server.com>" $to = "me@server.com" $subject = "Ketarin Updates" send-MailMessage -SmtpServer $smtpServer -To $to -From $from -Subject $subject -Body $body -BodyAsHtml -Encoding ([System.Text.Encoding]::UTF8) Forgot to mention, that mean you can run Ketarin as a task and you getting after an application update an email. Edited August 8, 2015 by trockenasche Link to comment Share on other sites More sharing options...
Guest mickythekiller Posted May 6, 2016 Report Share Posted May 6, 2016 hi, i haven't any changelog file created with this C# script... Link to comment Share on other sites More sharing options...
trockenasche Posted May 6, 2016 Author Report Share Posted May 6, 2016 Hi, Do you use a changelog variable or maybe changed the variable names as your case? Do you use the C# code for the event "After updating an application"? Link to comment Share on other sites More sharing options...
Guest mickythekiller Posted May 10, 2016 Report Share Posted May 10, 2016 No, How to use changelog variable ? Link to comment Share on other sites More sharing options...
Guest mickythekiller Posted May 19, 2016 Report Share Posted May 19, 2016 i've created changelog variable but no txt file is created Link to comment Share on other sites More sharing options...
Guest mickythekiller Posted May 19, 2016 Report Share Posted May 19, 2016 it's ok Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now