Client Automation - Any Versions
First execution deploywrapper.exe adds following section in c:\windows\win.ini
[DeployWrapper]
SDState=1
SDCmdLine=DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLNEW /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\B35AA17E-475C-4276-AF9F-106220F889B1.res
SDNewCmd=DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLNEW /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\B35AA17E-475C-4276-AF9F-106220F889B1.res
There are 2 space characters at the end of sdcmdline and sdnewcmd ($#ec:10 $#ec:0 have been replaced by 2 space characters)
When second deploywrapper.exe is executed, it reads the lines in win.ini file and it seems that space characters at the end are automatically removed during reading.
When it compares the command line and the command line read, it detects a change and reset the SD State and do again the process from beginning.
3800: 2022-02-23 09:24:34 : cmd: <DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\B35AA17E-475C-4276-AF9F-106220F889B1.res >
But the command line read from file c:\windows\win.ini is not exactly the same :
3800: 2022-02-23 09:24:34 : SDCmdLine=<DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /SILENT /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\B35AA17E-475C-4276-AF9F-106220F889B1.res>
cmdLineCopy=<DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\B35AA17E-475C-4276-AF9F-106220F889B1.res >
3800: 2022-02-23 09:24:34 : SDNewCmd=<DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /CONFIRMBYPASS /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\B35AA17E-475C-4276-AF9F-106220F889B1.res>
3800: 2022-02-23 09:24:34 : SDState reset to 0 - old SDCmdLine DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\B35AA17E-475C-4276-AF9F-106220F889B1.res
4084: 2022-02-23 10:07:28 : SDCmdLine=<DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\141DE47B-F6E8-4239-B7D0-2BC98496E398.res>
cmdLineCopy=<DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\141DE47B-F6E8-4239-B7D0-2BC98496E398.res>
[DeployWrapper]
SDState=1
SDCmdLine=DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\141DE47B-F6E8-4239-B7D0-2BC98496E398.res
SDNewCmd=DeployWrapper.exe /INST ApplyPtfInstall /PTF=99111347.jcl /SILENT /INSTALLAGAIN /OUTPUTFILE=C:\PROGRA~2\CA\DSM\Agent\units\00000001\usd\sdjexec\141DE47B-F6E8-4239-B7D0-2BC98496E398.res