Jump to content
Ketarin forum

rainroom

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by rainroom

  1. == Following 2 lines I have in settings 'after update of application' :

    echo %date% - %time% // {appname} v{version} - {file:targetpath} >> "{root}\centralfiles"\KetarinHistory.txt
    echo {category:replace:&:^&} /// {appname:replace:&:^&} {version:replace:&:^&} >> Ketarinlog.txt

    == Following 3 lines as is 'after updating ALL applications' :

    SwithMail.exe /s /from "emailsender@gmail.com" /pass "myexactpassword" /server smtp.gmail.com /p 25 /to "emailreceiver@gmail.com" /subject "KetarinToolbox update" /body "All application has been updated, error is in the log file attachment."
    ping 0.0.0.0 -n 1 -w 10000 >nul
    IF %errorlevel%==1 ECHO.Something is wrong with sending email.

    I see no sending nor receiving email in both diff. email accounts.

    I copied these lines from this forum somewhere.  Swithmail.exe is located in the ketarin.exe folder.

  2. Hi all, 

    I have following in my command after updating all apps.  Swithmail.exe is placed in the katerin folder.  I do not have it as variable in the global commands.

    Should I do it ?  like this ?  variable = swithmail  content = "C:\portable files\ketarin\swithmail.exe"  ? 

    My problem is that the below does not work...  Where is the error ?  a changed the port also from 25 to 465.  non of them work.

    Quote

    SwithMail.exe /s /from "myemailadres1@gmail.com" /pass pwofemail1 /server smtp.gmail.com /p 465 /to "myemailadres2@gmail.com" /subject "KetarinToolbox update" /body "All application has been updated, error is in the log file attachment."
    ping 0.0.0.0 -n 1 -w 10000 >nul
    break > "{startuppath}Ketarinlog.txt"

    Thanks in advance for the support of possible solution.

  3. Dears,

    exploring and using Ketarin more and more I want to go further in automation after my first round of downloads.

    However what is not really clear to me is when to use setup commands and/or when to use commands after download ?

    Let me try to explain.  I have Ditto.exe running and what I would like to achieve is a download of a new version, extract the zip and install as well copy over the existing settings file which is located in another folder and copy this over the setting file from the just extracted zip so I can get my own settings again.

    Today I have in the setup section 3 commands.  

    1) {NirCmd} killprocess Ditto.exe   << where {NirCmd} as a globel var. has "U:\Portable Files\nircmd.exe"

    2) 7Z.exe  x "{file}" -o"C:\Portable Files\" -y   <<  this is going well

    3) "c:\portable files\Ditto\ditto.exe"  << to start Ditto again after extract

    The issue is that the kill process does not work.  Ditto is not closed.  this is I guess resulting in an error when using the install option from Ketarin.

    In the commands after download I have the following:

    xcopy U:\CentralFiles\ditto.settings "c:\portable files\Ditto\"
    xcopy U:\CentralFiles\mycopy.xml "c:\portable files\Ditto\Themes\"

     

    Any help on doing this better is appreciated as will with a explanation when to use the setup and when the commands after download or even when to use both the same time....


     

    Quote

     

    <?xml version='1.0' encoding='utf-8'?>
    <Jobs>
      <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="e25ac9a1-20cc-422a-83a8-44f044c9e658">
        <Category>Utilities</Category>
        <WebsiteUrl>http://ditto-cp.sourceforge.net/beta/</WebsiteUrl>
        <UserAgent />
        <UserNotes>RD /S /Q "c:\portable files\Ditto"</UserNotes>
        <LastFileSize>15959318</LastFileSize>
        <LastFileDate>2017-06-19T15:31:53+02:00</LastFileDate>
        <IgnoreFileInformation>false</IgnoreFileInformation>
        <DownloadBeta>Default</DownloadBeta>
        <DownloadDate xsi:nil="true" />
        <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
        <VariableChangeIndicator>version</VariableChangeIndicator>
        <HashVariable />
        <HashType>None</HashType>
        <CanBeShared>true</CanBeShared>
        <ShareApplication>true</ShareApplication>
        <ExclusiveDownload>true</ExclusiveDownload>
        <HttpReferer />
        <SetupInstructions>
          <SetupInstruction xsi:type="CustomSetupInstruction">
            <Code>{NirCmd} killprocess Ditto.exe</Code>
            <Type>Batch</Type>
          </SetupInstruction>
          <SetupInstruction xsi:type="StartProcessInstruction">
            <EnvironmentVariables />
            <FileName>7Z.exe </FileName>
            <Parameters>x "{file}" -o"C:\Portable Files\" -y</Parameters>
            <WaitForExit>true</WaitForExit>
          </SetupInstruction>
          <SetupInstruction xsi:type="StartProcessInstruction">
            <EnvironmentVariables />
            <FileName>"c:\portable files\Ditto\ditto.exe"</FileName>
            <Parameters />
            <WaitForExit>false</WaitForExit>
          </SetupInstruction>
        </SetupInstructions>
        <Variables>
          <item>
            <key>
              <string>version</string>
            </key>
            <value>
              <UrlVariable>
                <RegexRightToLeft>false</RegexRightToLeft>
                <VariableType>StartEnd</VariableType>
                <Regex />
                <Url>http://ditto-cp.sourceforge.net/beta/</Url>
                <StartText>&lt;b&gt;Ditto beta, version </StartText>
                <EndText>.0&lt;/b&gt;
    &lt;br&gt;&lt;br&gt;
    </EndText>
                <Name>version</Name>
              </UrlVariable>
            </value>
          </item>
          <item>
            <key>
              <string>setup</string>
            </key>
            <value>
              <UrlVariable>
                <RegexRightToLeft>false</RegexRightToLeft>
                <VariableType>Textual</VariableType>
                <Regex />
                <TextualContent>Yes (c:)+AD</TextualContent>
                <Name>setup</Name>
              </UrlVariable>
            </value>
          </item>
          <item>
            <key>
              <string>versionurl</string>
            </key>
            <value>
              <UrlVariable>
                <RegexRightToLeft>false</RegexRightToLeft>
                <VariableType>StartEnd</VariableType>
                <Regex />
                <Url>http://ditto-cp.sourceforge.net/beta/</Url>
                <StartText>&lt;a href="DittoPortable_</StartText>
                <EndText>.zip"&gt;Ditto Portable&lt;/a&gt;&lt;br&gt;
    </EndText>
                <Name>versionurl</Name>
              </UrlVariable>
            </value>
          </item>
        </Variables>
        <ExecuteCommand>xcopy U:\CentralFiles\ditto.settings "c:\portable files\Ditto\"
    xcopy U:\CentralFiles\rainroom69_v2.xml "c:\portable files\Ditto\Themes\"</ExecuteCommand>
        <ExecutePreCommand />
        <ExecuteCommandType>Batch</ExecuteCommandType>
        <ExecutePreCommandType>Batch</ExecutePreCommandType>
        <SourceType>FixedUrl</SourceType>
        <PreviousLocation>U:\Computer-Repair\Portable\Utilities\Ditto Beta_v3.21.175.zip</PreviousLocation>
        <DeletePreviousFile>false</DeletePreviousFile>
        <Enabled>true</Enabled>
        <FileHippoId />
        <LastUpdated>2017-06-19T19:07:10.5263183+02:00</LastUpdated>
        <TargetPath>{root}Computer-Repair\Portable\{category}\{appname:regexreplace: \(.*\):}_v{version}.{url:ext}</TargetPath>
        <FixedDownloadUrl>http://ditto-cp.sourceforge.net/beta/DittoPortable_64bit_{versionurl}.zip</FixedDownloadUrl>
        <Name>Ditto Beta (Portable)</Name>
      </ApplicationJob>
    </Jobs> 


     

     

  4. I would like to have some add. info whether a package has a setup or not?  Would like to add 1 add. column 'setup' and have this filled with Y or N depending if setup instructions are available or not.  Not sure how to achieve this?  I would think of setting a variable and fill this with 'Y' or 'N' as textual content but that seems not the work this way.

    Any assistance/guidance is welcome.

    Thanks in advance. 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.