If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

Checking Local Version to overwrite file

I am using automatic updates (wupdate) and would like to install a new file only if the customer is on a version prior to 23.01.27 (the file will contain critical data if the customer is on a version after that). I have done the following:

! at top of script where all variables are registered:
Set Variable %_SB_PARAM5% to FUNCTIONetect Previous Version ("{7D3B3610-30D4-11DD-66BB-048967B36443}")

! Under Install Files:

If %_SB_PARAM5% Less Than or Equal "23.01.26" Then
Install File(s) "C:\32bitpabp\Flashver23\data\UsPayTab.adt" to "%_SB_INSTALLDIR%\flash\data\UsPayTab.adt" [Feature:Always Install]
Install File(s) "C:\32bitpabp\Flashver23\data\paytable.adi" to "%_SB_INSTALLDIR%\flash\data\paytable.adi" [Feature:Always Install]
Install File(s) "C:\32bitpabp\Flashver23\data\paytable.adt" to "%_SB_INSTALLDIR%\flash\data\paytable.adt" [Feature:Always Install]
End

Even if I set the Local_Version flag in the registry to 23.01.27 the file is still overwritten. Any one know what I am missing?