hormiai76
11-05-2008, 10:15 AM
Hi all,
I have a problem in installation process.
My script can create folders, can copy files but cannot modify or delete them and I don't know why...
I run the installer as an Administrator.
...
! CPM params in Export2CPM_WFActivity.xml file
If %INSTALLMODE% Equals "40" Then
If %CUSTOM_DFE% Equals "2" Then
Rename File/Folder "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_ProductionFlow.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
/* Copy Local Files from "C:\Maui Install\PrintStation\components\wf\cpm_export\Expo rt2CPM_WFActivity_ProductionFlow.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" */
Else
Rename File/Folder "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
/* Copy Local Files from "C:\Maui Install\PrintStation\components\wf\cpm_export\Expo rt2CPM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" */
End
Else
Rename File/Folder "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
/* Copy Local Files from "C:\Maui Install\PrintStation\components\wf\cpm_export\Expo rt2CPM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" */
End
/* Delete Local Files "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_Barak.xml" */
/* Delete Local Files "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_ProductionFlow.xml" */
Text File: Delete Line 7 from "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
Text File: Insert Line 7 to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" -- <_1>%CUSTOM_CPM_HOME%\cpm\conf\</_1>
Text File: Delete Line 8 from "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
Text File: Insert Line 8 to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" -- <_2>%CUSTOM_CPM_HOME%\lib</_2>
! Replace the path separator \ with /
/* Set File Attributes for "%_SB_INSTALLDIR%\config\log4j.xml" */
Set Variable %TEMP_SB_INSTALLDIR% to ScriptItem->Replace(%_SB_INSTALLDIR%, \, /)
Text File: Delete Line 7 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 7 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printstation.txt"/>
Text File: Delete Line 14 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 14 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printstation_debug.txt"/>
Text File: Delete Line 21 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 21 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printstation_verbose_debug.txt"/>
Text File: Delete Line 29 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 29 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printlog.txt"/>
...
I have a problem in installation process.
My script can create folders, can copy files but cannot modify or delete them and I don't know why...
I run the installer as an Administrator.
...
! CPM params in Export2CPM_WFActivity.xml file
If %INSTALLMODE% Equals "40" Then
If %CUSTOM_DFE% Equals "2" Then
Rename File/Folder "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_ProductionFlow.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
/* Copy Local Files from "C:\Maui Install\PrintStation\components\wf\cpm_export\Expo rt2CPM_WFActivity_ProductionFlow.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" */
Else
Rename File/Folder "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
/* Copy Local Files from "C:\Maui Install\PrintStation\components\wf\cpm_export\Expo rt2CPM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" */
End
Else
Rename File/Folder "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
/* Copy Local Files from "C:\Maui Install\PrintStation\components\wf\cpm_export\Expo rt2CPM_WFActivity_Barak.xml" to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" */
End
/* Delete Local Files "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_Barak.xml" */
/* Delete Local Files "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity_ProductionFlow.xml" */
Text File: Delete Line 7 from "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
Text File: Insert Line 7 to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" -- <_1>%CUSTOM_CPM_HOME%\cpm\conf\</_1>
Text File: Delete Line 8 from "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml"
Text File: Insert Line 8 to "%_SB_INSTALLDIR%\components\wf\cpm_export\Export2C PM_WFActivity.xml" -- <_2>%CUSTOM_CPM_HOME%\lib</_2>
! Replace the path separator \ with /
/* Set File Attributes for "%_SB_INSTALLDIR%\config\log4j.xml" */
Set Variable %TEMP_SB_INSTALLDIR% to ScriptItem->Replace(%_SB_INSTALLDIR%, \, /)
Text File: Delete Line 7 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 7 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printstation.txt"/>
Text File: Delete Line 14 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 14 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printstation_debug.txt"/>
Text File: Delete Line 21 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 21 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printstation_verbose_debug.txt"/>
Text File: Delete Line 29 from "%_SB_INSTALLDIR%\config\log4j.xml"
Text File: Insert Line 29 to "%_SB_INSTALLDIR%\config\log4j.xml" -- <param name="File" value="%TEMP_SB_INSTALLDIR%/logs/printlog.txt"/>
...