[Bug 47152] New: SIMATIC WinCC V15.1 Runtime installer needs 'Schtasks.exe ' to support '/SC <schedule>' option

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 10 04:49:50 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=47152

            Bug ID: 47152
           Summary: SIMATIC WinCC V15.1 Runtime installer needs
                    'Schtasks.exe' to support '/SC <schedule>' option
           Product: Wine
           Version: 4.7
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: taskschd
          Assignee: wine-bugs at winehq.org
          Reporter: focht at gmx.net
      Distribution: ---

Hello folks,

as it says. Resuming the installation after a simulated reboot doesn't happen
due to that (running installer again will mitigate this).

--- snip ---
$ pwd
/home/focht/Downloads/SIMATIC WinCC Runtime Advanced V15.1

$ WINEDEBUG=+loaddll,+process,+seh wine ./Start.exe >>log.txt 2>&1

...
0150:trace:process:CreateProcessInternalW app (null) cmdline L"\"schtasks.exe\"
/create /RU SYSTEM /sc onlogon /tn
\"ContinueAfterReboot_WinCC_Runtime_Advanced_V15.1_15.1.0\" /f /rl highest /tr
\"\\\"C:\\Program Files (x86)\\Common Files\\Siemens\\Automation\\Siemens
Installer Assistant\\406\\Start.bat\\\" \"" 
...
0150:trace:process:CreateProcessInternalW starting
L"C:\\windows\\system32\\schtasks.exe" as Win32 binary (400000-42c000, x86)
...
0150:trace:process:CreateProcessInternalW started process pid 0127 tid 017c
...
017c:fixme:schtasks:create_command Unsupported /ru option L"SYSTEM"
017c:fixme:schtasks:create_command Unsupported argument L"/sc"
...
--- snip ---

App installer log:

--- snip ---
...
11:43:39|..        |ExecutionEngine::StartNextStepAsync()   |(01) Getting next
step of execution: ImmediateReboot (), BeforeStart
11:43:39|..        |ExecutionEngine::StartNextStepAsync()   |(01) Creating
execution worker for the step...
11:43:39|          |ExecutionEngine::StartNextStepAsync()   |
11:43:39|          |ExecutionEngine::StartNextStepAsync()   |(01) START
executing step ImmediateReboot (), Executing
11:43:39|...       |ExecutionTime::OnStepStart()            |(01)   
OnStepStart: non existing stepImmediateReboot (), Executing
11:43:39|          |nstallation::CreateRestartEntryStartup()|
11:43:39|          |nstallation::CreateRestartEntryStartup()|(16)    START
creating restart entry
11:43:39|..        |nstallation::CreateRestartEntryStartup()|(16)      
Executable to use after restart: C:\Program Files (x86)\Common
Files\Siemens\Automation\Siemens Installer Assistant\406\Start.exe
11:43:39|..        |nstallation::CreateRestartEntryStartup()|(16)       Using
Task Scheduler 2.0 approach: 6.1.7601.65536
11:43:39|..        |nstallation::CreateRestartEntryStartup()|(16)       Start
creating task in the task scheduler. Name:
ContinueAfterReboot_WinCC_Runtime_Advanced_V15.1_15.1.0; EXE: C:\Program Files
(x86)\Common Files\Siemens\Automation\Siemens Installer
Assistant\406\Start.exe; ARGS: /afterreboot
/bundlepath=\"Z:\HOME\FOCHT\DOWNLOADS\SIMATIC WINCC RUNTIME ADVANCED
V15.1\InstData\"
11:43:39|INFO1     |TaskScheduler::CreateTask()             |(16)       Logged
user name mistatches impersonalized user name: SYSTEM and focht
11:43:39|INFO1     |TaskScheduler::CreateTask()             |(16)      
Impersonalized process detected - create batch file for restart
11:43:39|..        |TaskScheduler::RunSchtasksSilent()      |(16)      
Starting... schtasks.exe /create /RU SYSTEM /sc onlogon /tn
"ContinueAfterReboot_WinCC_Runtime_Advanced_V15.1_15.1.0" /f /rl highest /tr
"\"C:\Program Files (x86)\Common Files\Siemens\Automation\Siemens Installer
Assistant\406\Start.bat\" "
11:43:39|..        |TaskScheduler::RunSchtasksSilent()      |(16)      
Finished schtasks.exe. Return code: 1
11:43:39|INFO1     |TaskScheduler::CreateTask()             |(16)       Task
creation failed. Details: Error: 1; Details: 
11:43:39|INFO1     |nstallation::CreateRestartEntryStartup()|(16)       Task
creation failed.
11:43:39|.         |nstallation::CreateRestartEntryStartup()|(16)    END
creating restart entry
11:43:39|.         |nstallation::CreateRestartEntryStartup()|
11:43:39|..        |ExecutionEngine::WorkerCompleted()      |(01)    Result of
step execution: Result of 'InstallResultClass', Setup Succeeded: True; Reboot
Required: NoReboot; Child Results Count: 0; Details: Return Value = 0;
Recogrinzed as: Success
11:43:39|.         |ExecutionEngine::WorkerCompleted()      |(01) END executing
step ImmediateReboot (), Complete
11:43:39|.         |ExecutionEngine::WorkerCompleted()      |
11:43:39|...       |ExecutionTime::OnStepCompleted()        |(01)
OnStepCompleted: ImmediateReboot (), Complete
...
--- snip ---

Microsoft docs:

https://docs.microsoft.com/en-us/windows/desktop/taskschd/schtasks

--- quote ---
...

/SC schedule

    A value that specifies the schedule frequency. Valid values are: MINUTE,
HOURLY, DAILY, WEEKLY, MONTHLY, ONCE, ONLOGON, ONIDLE, and ONEVENT.

...

/MO modifier

    A value that refines the schedule type to allow for finer control over the
schedule recurrence. Valid values are:

        MINUTE: 1 - 1439 minutes.
        HOURLY: 1 - 23 hours.
        DAILY: 1 - 365 days.
        WEEKLY: weeks 1 - 52.
        ONCE: No modifiers.
        ONSTART: No modifiers.
        ONLOGON: No modifiers.
        ONIDLE: No modifiers.
        MONTHLY: 1 - 12, or FIRST, SECOND, THIRD, FOURTH, LAST, and LASTDAY.
        ONEVENT: XPath event query string.
--- quote ---

Wine source:

https://source.winehq.org/git/wine.git/blob/HEAD:/programs/schtasks/schtasks.c

$ sha1sum SIMATIC_WinCC_Runtime_Advanced_V15_1.exe
db1f97bb648b62fa1c5d974d7f2bcb6b4a9fd786 
SIMATIC_WinCC_Runtime_Advanced_V15_1.exe

$ du -sh SIMATIC_WinCC_Runtime_Advanced_V15_1.exe
1.3G    SIMATIC_WinCC_Runtime_Advanced_V15_1.exe

$ wine --version
wine-4.7-305-g9bcaf9769c

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list