NewsArchive
09-11-2009, 01:22 AM
I finally figured out (using the /e debugger text) that %CURDIR% is the full
path I am installing from... I was trying to do a copy
%SRCDRV%\%CURDIR%\histcom.dat .... so, now that I have that solved, I want
to INSTALL the histcom.dat file IF there is not a histcom.dat in the folder
I am installing from.
like:
if error %CURDIR%\histcom.dat
install histcom.dat
else
copy %CURDIR%\histcom.dat
..
How can I check to see if the file is there.. and determine what to do.. my
current code is:
! *** Histcom.dat File ***
#ifcompvar [VMT_INSTALL_TYPE] Equals "REAL" Then
If Feature "Main Program" selected Then
Copy File(s) from "%CURDIR%\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat"
Set File Attributes for "%_SB_INSTALLDIR%\histcom.dat"
End
#else
Install File "F:\ALLVDLUX\Windows\delinst\DemoCD\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat" (Always Install)
#end
I know the install above is the result of a compiler variable.. I want
almost the same thing.. just trying to find the commands:
! *** Histcom.dat File ***
#ifcompvar [VMT_INSTALL_TYPE] Equals "REAL" Then
If Feature "Main Program" selected Then
! ***** if the file exists in curdir
Copy File(s) from "%CURDIR%\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat"
Set File Attributes for "%_SB_INSTALLDIR%\histcom.dat"
! else
Install File "F:\ALLVDLUX\Windows\delinst\DemoCD\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat"
! end
End
#else
Install File "F:\ALLVDLUX\Windows\delinst\DemoCD\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat" (Always Install)
#end
Hope I'm explaining myself well.
Thanks,
Ray Rippey
VMT Software - http://www.vmtsoft.com
path I am installing from... I was trying to do a copy
%SRCDRV%\%CURDIR%\histcom.dat .... so, now that I have that solved, I want
to INSTALL the histcom.dat file IF there is not a histcom.dat in the folder
I am installing from.
like:
if error %CURDIR%\histcom.dat
install histcom.dat
else
copy %CURDIR%\histcom.dat
..
How can I check to see if the file is there.. and determine what to do.. my
current code is:
! *** Histcom.dat File ***
#ifcompvar [VMT_INSTALL_TYPE] Equals "REAL" Then
If Feature "Main Program" selected Then
Copy File(s) from "%CURDIR%\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat"
Set File Attributes for "%_SB_INSTALLDIR%\histcom.dat"
End
#else
Install File "F:\ALLVDLUX\Windows\delinst\DemoCD\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat" (Always Install)
#end
I know the install above is the result of a compiler variable.. I want
almost the same thing.. just trying to find the commands:
! *** Histcom.dat File ***
#ifcompvar [VMT_INSTALL_TYPE] Equals "REAL" Then
If Feature "Main Program" selected Then
! ***** if the file exists in curdir
Copy File(s) from "%CURDIR%\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat"
Set File Attributes for "%_SB_INSTALLDIR%\histcom.dat"
! else
Install File "F:\ALLVDLUX\Windows\delinst\DemoCD\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat"
! end
End
#else
Install File "F:\ALLVDLUX\Windows\delinst\DemoCD\histcom.dat" to
"%_SB_INSTALLDIR%\histcom.dat" (Always Install)
#end
Hope I'm explaining myself well.
Thanks,
Ray Rippey
VMT Software - http://www.vmtsoft.com