NewsArchive
09-29-2008, 01:40 AM
Under XP, we used a folder like C:\programfiles\bbsoft\[PROGRAM] for both
program and data - Many of uour customers liked it, because of the very lean
install.
Under Vista, this is definately not a good idea.
So we have added a message, and changes the data directory to
C:\BBSOFT\[PROGRAMNAME]
I am aware of, that wista has its own data area - Has SB a variable for
this?
OK, but what with updates.
The data folder is changed to C:\BBSOFT\[PROGRAMNAME], but the data is left
in C:\programfiles\bbsoft\[PROGRAM].
OK, I wrote this:
! Wizard dialog definition(s)
Define Wizard Dialog "#2" (Password)
Define Wizard Dialog "LANGUAGE" (Radio Buttons) (%SFO%)
Define Wizard Dialog "#4" (License Agreement)
Define Wizard Dialog "CUSTOM" (Custom Install)
Define Wizard Dialog "#6" (Select Install Folder) (%_SB_INSTALLDIR%)
Define Wizard Dialog "#7" (Select Install Folder) (%DATAFOLDER%)
Define Wizard Dialog "KOPIERDATA" (Ready to Install)
! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard (Abort Dialog Active)
If %_SB_DIALOGID% Equals "$LANGUAGE$" Then
If %SFO% Equals "2" Then
Set Variable %_SB_INSTALLDIR% to
"%PROGRAMFILESDIR%\BBSOFT\aarsnorm"
Set Variable %DATAFOLDER% to "%_SB_INSTALLDIR%"
End
End
If %_SB_DIALOGID% Equals "$CUSTOM$" Then
If %WINDOWSVERSION% Equals "6" Then
Display Message Box "Vista har specielle krav til placering af
datafile..." -- "Vista"
Set Variable %DATAFOLDER% to "c:\BBSOFT\norm\DATA"
End
End
If %_SB_DIALOGID% Equals "KOPIERDATA" Then
If %WINDOWSVERSION% Equals "6" Then
Create Folder "%DATAFOLDER%"
Copy File(s) from "%_SB_INSTALLDIR%\*.tps" to "%DATAFOLDER%"
End
End
End
But it does not copy the data - Perhaps because they are hidden in Vista's
vituel data folders.
What to do?
Its pretty costly on Hot line.
Edvard Korsbæk
program and data - Many of uour customers liked it, because of the very lean
install.
Under Vista, this is definately not a good idea.
So we have added a message, and changes the data directory to
C:\BBSOFT\[PROGRAMNAME]
I am aware of, that wista has its own data area - Has SB a variable for
this?
OK, but what with updates.
The data folder is changed to C:\BBSOFT\[PROGRAMNAME], but the data is left
in C:\programfiles\bbsoft\[PROGRAM].
OK, I wrote this:
! Wizard dialog definition(s)
Define Wizard Dialog "#2" (Password)
Define Wizard Dialog "LANGUAGE" (Radio Buttons) (%SFO%)
Define Wizard Dialog "#4" (License Agreement)
Define Wizard Dialog "CUSTOM" (Custom Install)
Define Wizard Dialog "#6" (Select Install Folder) (%_SB_INSTALLDIR%)
Define Wizard Dialog "#7" (Select Install Folder) (%DATAFOLDER%)
Define Wizard Dialog "KOPIERDATA" (Ready to Install)
! The Wizard Loop displays the dialog screens that the user sees in the
installation
Loop Wizard (Abort Dialog Active)
If %_SB_DIALOGID% Equals "$LANGUAGE$" Then
If %SFO% Equals "2" Then
Set Variable %_SB_INSTALLDIR% to
"%PROGRAMFILESDIR%\BBSOFT\aarsnorm"
Set Variable %DATAFOLDER% to "%_SB_INSTALLDIR%"
End
End
If %_SB_DIALOGID% Equals "$CUSTOM$" Then
If %WINDOWSVERSION% Equals "6" Then
Display Message Box "Vista har specielle krav til placering af
datafile..." -- "Vista"
Set Variable %DATAFOLDER% to "c:\BBSOFT\norm\DATA"
End
End
If %_SB_DIALOGID% Equals "KOPIERDATA" Then
If %WINDOWSVERSION% Equals "6" Then
Create Folder "%DATAFOLDER%"
Copy File(s) from "%_SB_INSTALLDIR%\*.tps" to "%DATAFOLDER%"
End
End
End
But it does not copy the data - Perhaps because they are hidden in Vista's
vituel data folders.
What to do?
Its pretty costly on Hot line.
Edvard Korsbæk