NewsArchive
10-15-2009, 02:48 AM
Ok, i realize this is unusual, but i have a situation where I am trying to
install a set of support files in multiple locations.
I have a %PATH_LIST% variable (path1|path2|path3).
I tried setting a loop around the Install File lines, but I get a
decompression error on the second pass.
Any ideas?
Currently I have:
Loop (%INSTALL_LOOP_COUNTER% Times)
Set Variable %INSTALL_LOOP_POSITION% to (Increment Variable by 1)
! Set up for Single/Looped installation
Set Variable %_SB_INSTALLDIR% to FUNCTION:List Item:
Get("%INSTALLPATHLIST%", "%INSTALL_LOOP_POSITION%")
Set Progress Status Text #1 to "Please wait while the Setup Wizard
installs [PRODUCTNAME] |to %_SB_INSTALLDIR%"
Display Setup Progress Dialog
::Create Folder "%_SB_INSTALLDIR%\YADA1" (Always Install)
Delete Files "%_SB_INSTALLDIR%\Templates\yada*.yyy"
Install File "C:\dev\MyStuff\Install\YADA1\MyFile.mfi" to
"%_SB_INSTALLDIR%\YADA1\MyFile.mfi" (Always Install)
Close Setup Progress Dialog
End
! End of InstallLoop. Install Loop will install once for each path when
"All" option selected.
[ Finalize Setup ]
! Register all queued pending file operations
Register all pending file operations
! Register all queued Clarion Template files
Register all pending Clarion Templates
[ Final User Interface ]
! Final wizard dialog definition(s)
Define Wizard Dialog "#1" (Finish)
! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard (Abort Dialog Active)
End
Glenn Paschal
install a set of support files in multiple locations.
I have a %PATH_LIST% variable (path1|path2|path3).
I tried setting a loop around the Install File lines, but I get a
decompression error on the second pass.
Any ideas?
Currently I have:
Loop (%INSTALL_LOOP_COUNTER% Times)
Set Variable %INSTALL_LOOP_POSITION% to (Increment Variable by 1)
! Set up for Single/Looped installation
Set Variable %_SB_INSTALLDIR% to FUNCTION:List Item:
Get("%INSTALLPATHLIST%", "%INSTALL_LOOP_POSITION%")
Set Progress Status Text #1 to "Please wait while the Setup Wizard
installs [PRODUCTNAME] |to %_SB_INSTALLDIR%"
Display Setup Progress Dialog
::Create Folder "%_SB_INSTALLDIR%\YADA1" (Always Install)
Delete Files "%_SB_INSTALLDIR%\Templates\yada*.yyy"
Install File "C:\dev\MyStuff\Install\YADA1\MyFile.mfi" to
"%_SB_INSTALLDIR%\YADA1\MyFile.mfi" (Always Install)
Close Setup Progress Dialog
End
! End of InstallLoop. Install Loop will install once for each path when
"All" option selected.
[ Finalize Setup ]
! Register all queued pending file operations
Register all pending file operations
! Register all queued Clarion Template files
Register all pending Clarion Templates
[ Final User Interface ]
! Final wizard dialog definition(s)
Define Wizard Dialog "#1" (Finish)
! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard (Abort Dialog Active)
End
Glenn Paschal